2017-01-17, 10:52 AM
I'm going to want to measure 12v battery status on my Openplotter at some time in the future too.
I have been monitoring 12v battery voltage with an Arduino for some time. The sketch monitors the stand-alone solar power system in our house, and high voltage (when the battery is approaching full) triggers a relay to turn on a small inverter that I use to pump water. The circuit is easy with the Arduino analog pins; just wire up a voltage divider and measure the voltage in the middle. All you need is a couple of resistors. I have the Arduino drive a LCD display to provide monitoring of the operation.
Now I want to do this again on the boat, and push the data into Openplotter and out on an instrument panel like your example.
I'm new to Openplotter, so I can not help with how to get this data across from the Arduino into the Rpi and Openplotter. I have read about using COMs (RX/TX) through the serial pins on both devices (I've done this already with Arduino and the battery management system on my lithium cells), or by USB or the I2C interface. While the USB comms seems to be simple, it is limiting in terms of the number of ports as I may want to use more than one Arduino in my system.
Chris
I have been monitoring 12v battery voltage with an Arduino for some time. The sketch monitors the stand-alone solar power system in our house, and high voltage (when the battery is approaching full) triggers a relay to turn on a small inverter that I use to pump water. The circuit is easy with the Arduino analog pins; just wire up a voltage divider and measure the voltage in the middle. All you need is a couple of resistors. I have the Arduino drive a LCD display to provide monitoring of the operation.
Now I want to do this again on the boat, and push the data into Openplotter and out on an instrument panel like your example.
I'm new to Openplotter, so I can not help with how to get this data across from the Arduino into the Rpi and Openplotter. I have read about using COMs (RX/TX) through the serial pins on both devices (I've done this already with Arduino and the battery management system on my lithium cells), or by USB or the I2C interface. While the USB comms seems to be simple, it is limiting in terms of the number of ports as I may want to use more than one Arduino in my system.
Chris