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
Anyone sending Signal-k from Arduino?
#10
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
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.
Reply


Messages In This Thread
Anyone sending Signal-k from Arduino? - by LarsD - 2018-02-05, 05:14 PM
RE: Anyone sending Signal-k from Arduino? - by ddelorme - 2018-02-18, 03:53 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)