Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By penatenjoe
#42413 In my case I read a water flow meter which has a hall sensor. That sensor gives 5880 pulses per liter, so in my case coeff = 1./5880. I was interested in flow as well as overall volume. Your problem is pretty much the same except that you're only interested in wind speed so you need not reset the counter.
In your case you need to know how many turns / sec you get for a certain windspeed, say in m/s. Ideally you have the manufacturer specification for your sensor. Otherwise you have to use an anemometer for calibration. If you don't have access to one then you build what is called a ping-pong ball anemometer (see e.g. http://www.education.com/science-fair/article/earth-science_building-anemometer/. Otherwise you set the coeff to 30 and just report the rpm of your sensor.