
One 10K ohm resistor (DK P10KBACT-ND, SFE COM-08374).One 150K ohm resistor (DK P150KBACT-ND).Two XBee shields (Seeed Studio SLD01103P, Arduino A000065, SF WRL-10854).
MONITOR BATTERY VOLTAGE ARDUINO SERIAL
MONITOR BATTERY VOLTAGE ARDUINO PRO


Easy enough to measure in itself except that it will be at battery voltage above ground. The voltage across the shunt will be just millivolts. So yes you can tap off the voltage before and after the shunt to measure current. The resistance of the shunt will be in milli ohms while the input of the measuring will be in meg ohms. I would have thought that monitoring the shunt voltage once a second, and assuming constant current over that period would be as good as a formal integration and a lot easier (for me) to code.Īnybody done anything similar - other than buy a battery level monitor which obviously does much the same thing!įirstly it would be impossible to load a shunt with more take offs of sensing voltage. I suspect that this use of an Arduino will surely already have been realised by the solar/wind folks who are charging 12v rather than FIT-ing! But an initial search has failed to turn up anything. O be useful the Arduino needs to be hot wired so that it monitors battery state even when boat is vacated for weeks. The potential spanner in the works is: will attaching (paralleling) the battery shunt leads to the Arduino affect the voltage read across the shunt by the battery monitor -i.e.

It struck me that I could use an Arduino to monitor the voltage difference on each shunt, calculate the amps being used and either formally integrate it or more simply just take small time slices and add up how much power has been used since the last re-set.

So it can take some guesswork to decide at what point to stop drawing power! The problem is that whilst power is being drawn, the voltage will dip below the resting voltage- typically it needs 15minutes of zero power draw to establish a steady state resting voltage. The manufacturer of the unit (Adverc) suggests that end-users use "resting voltage” as an indicator of the battery capacity remaining, with 12.2v being approx. This is done by measuring the voltage across a shunt in the battery positive supply cable, so effectively there is a simple linear relationship between voltage across the shunt and the current being drawn at the time. I have a battery monitor that displays voltage of any one of up to 4 sources (I only have two,) and also the amps being drawn at any given instant.
