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?
#6
I think the easiest solution is to get it into the node-red via the serialport and convert the signals from there.
I have ordered a Victron Energy MTTP regulator for my solarpanels, this regulator also have the possibility to connect to an Ras-pi, so hopefully I can extract the datas I need from that to my 12v system. If not I will do the same as you and use and arduino.

For now I have a sketch that reads diesel level, water level and waste level. If I set ut to update to fast the readings are floating. This is because the arduino only have one ADC and get unstable when switching pin to read.
Therefor I now read every sensor two times and discard the first reading.
I will also look in maybe use one arduino for each sensor if that makes it more stable. (They are so cheap so doesnt matter how many you use Smile ).

I havent testet yet, but if you connect more than one arduino to the ras-pi. Will it not just get new names? like ttyUSB1, ttyUSB2 etc?
If so, when you import the arduino to node-red you choose wich port you want it to listen to, so in my mind I think you can have as many as you want..
(Have 5xarduino on the way by mail so will test this as soon as they arrive).
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 dreuf - 2017-01-17, 12:25 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)