At work, we use panel meters in our product. I end up getting a fair number of "bad" meters with things like a flickering decimal point or weak segments that I figure I can use. They are all 3.5 digit, 5V driven, and accept ±2V full-scale. I thought it would be neat to use them as volt meters (which is trivial) and current meters (not).
I figured I could use a current sense amplifier and picked up a few
MAX9928 high-side bidirectional current-sense amplifiers. They are designed to interface to a microcontroller like in the typical circuit below, but I wanted to get a positive and negative output, so I used a digital switch to listen to the SIGN output and toggle between an inverting and non-inverting amplifier (I devised it without assistance and think it's pretty clever, although I'm sure it's been done before).
Unfortunately the output drifts all over the place, varying by ±0.1V at <2Hz seemingly randomly (next step is to hook up the 'scope). I am making a simple virtual ground and trying to sink the output current (from a current mirror, see the datasheet internal circuitry, below) to that virtual ground rather than to the 0V of the main supply. Could using a virtual ground be causing my problem? Is the virtual ground unstable?
The datasheet doesn't offer an answer, only to say that the output voltage can swing as high as VCC-0.1V, so I figured I was safe to use a virtual ground at approximately VCC/2. There aren't application notes that talk about using this chip. One option, I know, would be either to design the circuit as in the typical circuit and level-shift the resulting voltage, or to run the MAX9928 from the the virtual ground to VCC, but the chip is only specified to 2.5V, and that's precisely where +5V to +2.5V lay. But I'd like to be sure the design is the problem first.