I want to be able to measure and log low currents (from 10-200ma) with accuracy to within 5ma.
However the problem is the circuit can occasionally have current spikes anywhere from 1-30A.
I thought of using a microcontroller to measure the voltage across a shunt (amplified to give me 0-5V), but if I set it so that 5V equals 30A (my max current) then I will get poor resolution at the current levels I want to log (below 200ma).
I guess what I'd like is a circuit that outputs 0-4V for 0- 200ma and 4-5V for 200ma-30A. This would give me precision for low currents while still being able to measure larger current. Or am I approaching this the wrong way?
However the problem is the circuit can occasionally have current spikes anywhere from 1-30A.
I thought of using a microcontroller to measure the voltage across a shunt (amplified to give me 0-5V), but if I set it so that 5V equals 30A (my max current) then I will get poor resolution at the current levels I want to log (below 200ma).
I guess what I'd like is a circuit that outputs 0-4V for 0- 200ma and 4-5V for 200ma-30A. This would give me precision for low currents while still being able to measure larger current. Or am I approaching this the wrong way?