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
Windvane weather sensors with display virtual serial port connectivity
#21
(2020-02-01, 06:51 PM)Twdee Wrote:
(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!

my code or Seans'  I used a esp32 feather due to the size and I had one. the ADC is 12bit and accepts a larger range of voltage. I would like to rewrite some  of the code. So the default web page could also display the values as well as set up the wifi connection to the Sk server. I had to add code to deal with the voltage ref fuse was not calibrated on my feather this should not be necessary on newer chips esp32 chips.
The paddle repair is a work in progress I had to get smaller less powerful magnets. I could spin it by hand but when i tried the water via tap the magnet would hold the paddle in position like the death stars tractor beam.
I am just getting my printer tuned in to print with PETG. May be the next print will work.
Reply


Messages In This Thread
RE: Windvane weather sensors with display virtual serial port connectivity - by ddelorme - 2020-02-13, 02:24 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)