I just started to get a ardunio nano set up as a mast head unit running. I use a NRF24l01+ on the ardunio to send wind speed and it will turn the anchorli on and off via a Mosfet. The rpi openplotter has a switch wired into GPIO25 that sends message to mast to turn on/off anchor light. The Pi /openplotter receives sensor data and sends this to siglnalK ie environment.wind.speedApparent.
here is the code i use to send data from pi to SignalK
It works and i am just sending the minimal data via the nrf24. Much lower power then WiFi. I now just have to send 12 dc up the mask to power unit. It appearers to use about .220a/hr when Anchor light is on.
I think a mesh network of low power sensors run on batteries could clean up the system. "Sensor pucks" Eh! they take a lickin and keep on tickin..
I would like a SignalK Display modules ie 3"/3" that could read the stream and display selected data wired or wireless and sunlight readable.
here is the code i use to send data from pi to SignalK
Code:
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
SignalK = '{"updates": [{"source": {"type": "wind","src" : "arduino"},"values":['
SignalK += '{"path": "environment.wind.speedApparent","value":'+str(aws)+'}'
SignalK += '{"path":.....add more here
SignalK += ']}]}\n'
sock.sendto(SignalK, ('localhost', 55559))
sock.close()
It works and i am just sending the minimal data via the nrf24. Much lower power then WiFi. I now just have to send 12 dc up the mask to power unit. It appearers to use about .220a/hr when Anchor light is on.
I think a mesh network of low power sensors run on batteries could clean up the system. "Sensor pucks" Eh! they take a lickin and keep on tickin..
I would like a SignalK Display modules ie 3"/3" that could read the stream and display selected data wired or wireless and sunlight readable.