(2020-01-28, 10:31 PM)ddelorme Wrote: You need code to connect the 2. the davis pinout is on Sean's site i think.
there are 4 pins. 1 analogue wind direction 1 digital the wind speed a ground pin and a power pin. I sent 5 volts to power mine but i think Sean's is 12V. i built a Esp32 version that sends data via wifi and controls the masthead light. It uses NMEA for the wind sensor and sk for the anchor light. So i just need to send 12V up the mast. I did not include the BME XXX as i did not see much sense in putting the sensor in a sealed box. if your curious I would read though Sean's site. The davis does have a dead spot so I aligned mine so the dead spot is to the front of the boat. this way dead spot does not really interfere with the boats navigation. I previously had used a cheap Chinese wind sensor but it broke in one season and was much heaver. SK converts the NMEA to display in SK. Writing code for a boat is a bit more work then most iot applications as on the boat we are reading the device @10 hz where iot stuff is in the 1 to 5 second range.
I started porting to NodeMCU(esp8266), which should be compatible with esp32 but immediately ran into library differences.
Think i resolved those; curious what libs were used - source/version?
Then ran into some compliler error(s). Is the code on github Up-To-Date.
Ideally, i would like to convert to a Solid-State w/WIFI acquisition method for getting wx/wind-info into OpenCPN/OpenPlotter/Pypilot.
Additionally, to retrofit a speed-through-water(paddle-wheel) sensor; acquiring via voltage or pulse.
Any feedback would be appreciated!