I am trying to develop a battery monitoring for a solar system. I have a shunt which is rated at 500 A, 50 mV. and I want to measure current in both directions here. I plan to use the amplifier by AdaFruit ADS1015 to amplify my signal to the Arduino.
The problem is that the shunt sees current in both directions while charging the battery, the current flows to the battery and while discharging, the current flows from the battery to the system.
If I ground one side of the analog output of the shunt, then I would only get single direction of current flow.
How do I wire up a two way current sensing circuit to an Arduino or AVR?