Hi,
I’ve setup a windmeter type adafruit anemometer. It has an analog output . The range is 0.4V = 0m/s
and 2V = 32m/s
Here’s the code I use in ESPHome
I multiply it by 3.3. I 've seen somewhere that the Wemos has a build in voltage divider. I think this is correct because of the measured voltage of 0.41572V when the meter is not spinning.
0.41572 is the voltage that is measured by the A0 pin in ESPhome (not multimeter)
The extra calibration is conversion to km/h
The problem is that I never measure windspeeds higher then let’s say, 20km/h
Hello, thx for looking at it.
The values I get do not match the windspeeds measured at a nearby airport. 2km away
At the airport 26km/h at this moment, I measure +/- 4 km/h
I’ve never seen it measure more than 20km/h
The logs of ESPhome sensor show:
21:15:07][D][adc:056]: ‘Windsnelheid’: Got voltage=0.14V
[21:15:07][D][sensor:092]: ‘Windsnelheid’: Sending state 2.35980 km/h with 2 decimals of accuracy
[21:15:08][D][adc:056]: ‘Windsnelheid’: Got voltage=0.14V
[21:15:08][D][sensor:092]: ‘Windsnelheid’: Sending state 2.83172 km/h with 2 decimals of accuracy
[21:15:09][D][adc:056]: ‘Windsnelheid’: Got voltage=0.14V
[21:15:09][D][sensor:092]: ‘Windsnelheid’: Sending state 2.35980 km/h with 2 decimals of accuracy