This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do I add water and diesel sensor?
#5
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
Reply


Messages In This Thread
How do I add water and diesel sensor? - by dreuf - 2016-12-28, 11:47 AM
RE: How do I add water and diesel sensor? - by SBZ - 2017-01-17, 10:52 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)