Combine voltage divider with shunt for solar monitor

arduinovoltage divider

I have a basic 12V solar panel system set up with a basic (non-PPT) charge controller(anode/cathode for Panels-Battery-Output). I would like to monitor/control the system with an arduino-based external controller.

Specs on the panel system (let me know if I left anything out)

12V DC –
20A Max current –
12V 35Ah lead-acid –
Panel output: 100W

I am looking for Wh left in the battery and W currently being used.

To achieve this:

  • Voltage divider on battery
  • Shunt on charge controller output line.

Can I combine these circuits into one?

Best Answer

No, you can't - the current shunt has to be in line with the current flow and very low value, while the voltage divider is high resistance and out of the main current path.

There are a number of devices like the very neat INA226 that support both current and voltage monitoring in a single device, however. The INA226 has an I2C interface, is extremely accurate, and will even calculate power usage for you.