How can I see wind speed (& direction) with digital (& analogic)wind sensor in OP&SK? - Printable Version +- OpenMarine (https://forum.openmarine.net) +-- Forum: OpenPlotter (https://forum.openmarine.net/forumdisplay.php?fid=1) +--- Forum: How do I...? (https://forum.openmarine.net/forumdisplay.php?fid=3) +--- Thread: How can I see wind speed (& direction) with digital (& analogic)wind sensor in OP&SK? (/showthread.php?tid=2034) |
How can I see wind speed (& direction) with digital (& analogic)wind sensor in OP&SK? - pol.bob - 2019-10-13 Hi to all ! Openplotter ver 1.2.0 on RPi 3B+, wind sensor like this : https://www.argentdata.com/files/80422_datasheet.pdf I connected the anemometer to the RPI via gpio5 and I can see the switc 1/0 on SignalK panel. I would like to be able to convert the values 1/0 to a speed value that can be displayed on the signalK panel. I would also like to be able to do this with the analog sensor, after appropriate conversion of the signal via ADC MCP3008 to digital signals. Is this possible? I am not a programmer and I am getting lost among the various Openplotter manuals, opencpn, SignalK, node red, Kplex, etc.. Could you give me a starting point and which manuals to focus on in order to find a solution? Even the ready-made solution would be welcome Thanks in advance Paolo How can I see wind speed (& direction) with digital (& analogic)wind sensor in OP&SK? - tkurki - 2019-10-15 My advice: first get your sensors working. With a bit of help from Google you should be able to create a pulse counter and get your ADV working. Once you have the data you can send it to SK server via udp for example. This way you can concentrate on what matters: getting the data in so you can do something with it. And forget all the concepts you mentioned for the time being. Sent from my iPhone using Tapatalk RE: How can I see wind speed (& direction) with digital (& analogic)wind sensor in OP&SK? - pol.bob - 2019-10-15 Thanks for your reply. The sensors actually work, or rather, the anemometer currently works. I have a program in pyton that, as a function of impulses in time, calculates the distance traveled, so I have speed. The step I miss is how to extract data from the program in python (better traduceing it in NMEA0183 sentence?) and send it via UDP (or better TCP?) so that it is displayed in the dashboard. I know, I'm so noob, but stubborn .. I will try Anyway this is "my" code, how could I send calc_speed ? Code: from gpiozero import Button RE: How can I see wind speed (& direction) with digital (& analogic)wind sensor in OP&SK? - pol.bob - 2019-10-26 I finally succeeded, this is the code I used to send NMEA0183 sentences to SignalK. Now I'm able to display speed in instrument panel.This is just the beginning, now I have to do the same thing with the wind direction, but now I have good hopes Code: from gpiozero import Button |