I bought a Adafruit anemometer recently to integrate it into my system (esp8266+batteries and weather sensors).
since i prefer to use pulse sensors instead of the voltage sensing (it involved using a boost power module to increase voltage to at least, 7V, (because i plan to use it with solar panel and batteries) and to keep it simple, i open the anemometer, solder 3 cables to the hall sensor (3.3v,Gnd,Data) to make use of it, bypassing the other components and allow me to power it with 3.3v from my Nodemcu lolin esp8266.
The problem is with the code, as i can’t get it right.
The nodemcu has EspHome and making use of pulse counter sensor it seems i can’t understand it very well how i to code the right values for it.
From the specs list, is says:
For voltage sensing (not using it): Wind speed value = (output voltage -04)/1.6*32.4
For pulse sensing: Output signal: Pulse ( 0.88m/s per pulse)
Range: 0~60m/s (plan to read at km/h)
It gives 2 pulses for one full spin, from what i could understand.
Height (base to center): 105mm / 4.1" Center out to Cup: 102mm / 4" Arm Length: 70mm / 2.8" Weight: 111.8g
can someone give me a tip how to code it right for this values?