2017-01-17, 12:25 PM
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 ).
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).
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 ).
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).