Hey,
I've come across a very interesting problem. I'm sure I'm overlooking something and the solution is quite simple, but I'm really intrigued right now.
So say I want to measure current somewhere in a circuit, and act on it in a microcontroller, or use it as an analog feedback signal. Now this somewhere is anywhere but close to the ground rail, maybe it's an audio output or a driver or something. The load is either non-ohmic or of unknown resistance.
I put a resistor with a small known, precise value in the signal path, or create a measurement shunt if necessary, and get the voltage between the two terminals of our measurement resistor.
Now let's say for example's sake that I'm using a .1% 10Ohm resistor, and I have a 20mA current across the load. The positive rail is 5V from ground. The voltage at the hot terminal of the resistor is 2.1 Volts (right now - otherwise it's assumed to be variable and unpredictable, and potentially dependent on whatever control actions I'll perform based on this measurement), and due to the voltage drop at 20mA, voltage at the cold terminal is 1.9V.
What I am struggling to find out is how would I go ahead and create a voltage follower configuration with multi-megohm impedance on both inputs that would take these two voltages, and output a .2 Volts (for the 20mA) for me to feed into the ADC and drive some control logic off of.