Frequency/Pulse Measurement

robtillaart:

I was also thinking of using "pulsein()" to measure the length of the pulses (as they also vary with wind speed), would this be a suitable method? would it cause any problems?

But you need a pulse to measure, so for very low speeds it might time out before you get your pulse. And does timeout means 0 pulse or 1 pulse that is not finished yet?

Okay, say if I'm doing:

pulsein(6, HIGH, 1000)

this will give the pulse length of a High reading from pin 6, but will timeout after 1000ms, will it still time out if the initial signal is High and doesn't change?