Hi all,
I'm developing a power monitor for a retro computer that will sit in between it's PSU and logic board to measure voltage / current of it's power supply lines.
The logic board runs on 3 voltages, +5V, +12V and either -5V or -12V (some versions use -5V some versions use -12V).
My monitor is based around an Arduino pro-mini (mostly because they are cheap and are a convenient way to get an AVR plus crystal, reset switch and resistors
as an all in one package). However though I'm using the arduino bootloader I'm programming it in plain AVR-GCC.
Measuring the current / voltage on the +5V and +12V lines is easy I've got a couple of INA219 IIC voltage / current sensors hooked up whcih do the job without problems.
However the INA219 will not cope with voltages below 0V.
I have used an LM358 opamp in differential inverting mode to measure the -ve voltage with the ADC as this provides a +ve voltage directly proportional to the -ve voltage at the input.
Measuring the current is proving to be a bit involved. The -5V / -12V line is only expected to draw between 0 and -100mA. I have treid using an ACS712 Hall sensor, but it seems that
the output in mV / A is way too small to detect at the the current levels that I will have flowing.
Does anyone have any suggestions as to how to measure the current in the -ve rail. Quite happy to considder a sensor module that can be controlled by IIC/SPI or provide an analog
voltage that the AVR can read.
Cheers.
Phill.