Battery Monitor

Go to the Manuals for this modification
3Prev Next4

One of the more challenging aspects of living aboard a sailboat is energy management. Unlike at home where a flick of the switch brings immediate power all the time and the only downside of using too much energy is a hefty electrical bill at the end of the month, on a boat one needs to be careful in ensuring that there are always sufficient energy reserves present in the battery bank(s). The easiest method is to look at the voltage in the battery bank and that can be used as a very rough guide to the state-of-charge but the instantaneous value depends upon many factors (drain at time of measurement, heavy use just prior to measurement, trickle charging by solar, and a myriad of other possible items) and is not very accurate. If one measures the total number of Amp-Hours running into and out of the battery bank and combines that with a bit of programming logic then one gets a basic battery monitor. There are a couple of mathematical formulas that need to be applied, since when charging batteries not all of the Amp-Hours actually get “recharged”. Battery capacity is rated as a certain constant rate of energy use (common are 10 and 20 hours), if energy is consumed faster than that rate the capacity of the battery is less than rated. There's a Peukert law in there as well and then there are line and heat losses to account for. All in all the battery monitors do a pretty good job of calculating in all those factors and most of them also “learn” about the battery bank over time and become more accurate.
I use a Xantrex LinkPro aboard Zanshin and it provides very useful information, although at the moment I am still working on fine-tuning it. I don't know how I would manage my power consumption without the battery monitor, since my energy use varies quite a bit from day to day and just running the generator willy-nilly depending on the battery bank voltage isn't a very efficient use of energy.

The Xantrex LinkPro has a documented output serial interface which I've tapped into in order to store detailed battery state information over time. The serial output is at a TTL level (which means one can't just plug it into a PC serial port or Serial-USB converter) but that voltage is exactly what the Arduino system can use. So I put together a breadboard with a real-time-clock chip and an SD card output and wrote a program which continuously collects the data once a second and writes 30-seconds averages to the SD card. The breadboard has a little Bluetooth add-on which I can query directly from the PC and get the collected data for use in an Excel chart, so I don't have to unplug the SD card and can retrieve data on the fly at any time.
While the Xantrex might be a bit optimistic about the state-of-charge, mainly because the solar panels taper off the charge quite early and trigger the Xantrex to assume that a “float” condition has been reached prematurely, it is fairly accurate overall and I'm quite pleased with the solar panel's ability to keep up with my daily power requirements. On average I run either the engine or generator about 70 minutes a day, which is more than I thought; but most of that runtime consists of the engine being on while I lift the anchor and motor out of an anchorage and when I motor into an anchorage and set the anchor. If I take that into account then my actual generator runtime is quite minimal, mainly when I run it for over an hour to do things like run the washing machine and/or dishwasher or heat up items in the oven.

Powerful charging current The generator is going through the Victron charger and pumping in over 100 Amps (at 24V, that's equivalent to 200 Amps at 12V!) into the battery bank while in bulk mode.
(2014-02-09 08:41:56 NIKON D7100 with a "18.0-250.0 mm f/3.5-6.3" lens. [f/11.0, 1/30s] ISO 3200)
Powerful charging current
Xantrex charging display In bulk mode the charger pushes up to 120A into the battery bank, I've limited it to 110 and this picture was taken after about 10 minutes of charging and the current is slowly going down already.
(2014-02-09 08:42:01 NIKON D7100 with a "18.0-250.0 mm f/3.5-6.3" lens. [f/11.0, 1/50s] ISO 6400)
Xantrex charging display
Main Battery Voltage Main Battery Voltage
(2011-05-11 08:25:18 NIKON D7000 with a "18.0-200.0 mm f/3.5-5.6" lens. [f/5.0, 1/15s] ISO 400 Focus 0.50m)
Main Battery Voltage
Charging Amps Charging Amps
(2011-05-11 08:25:25 NIKON D7000 with a "18.0-200.0 mm f/3.5-5.6" lens. [f/5.0, 1/13s] ISO 400 Focus 0.50m)
Charging Amps
Battery Amp-Hours used Battery Amp-Hours used
(2011-05-11 08:25:32 NIKON D7000 with a "18.0-200.0 mm f/3.5-5.6" lens. [f/5.0, 1/15s] ISO 400 Focus 0.50m)
Battery Amp-Hours used
Battery State-of-Charge Battery State-of-Charge
(2011-05-11 08:25:38 NIKON D7000 with a "18.0-200.0 mm f/3.5-5.6" lens. [f/5.0, 1/20s] ISO 400 Focus 0.50m)
Battery State-of-Charge
Zanshin power consumption A chart of Zanshin's main battery bank state-of-charge and voltage over a period of time.
Zanshin power consumption
329 views since 2017-02-04, page last modified on 2017-04-18.