I am trying to read in wind speed from an anampmeter, into my Mega 2560. The output from the anamometer is a con stant frequency and 2.5V peak (not peak to peak). However as the anamometer rotates it passes a read switch which forces the wave low (0V). I must count how many times the anamometer passes the read switch.
How would i count this?
I was thinking about using AC-DC rectification (4 diodes and a capacitor - but this sound like allot of effort because i must have this done for tuesday and i dont have a capacitor). After the rectification i simply use a innterupt to generate whenever there is a falling edge. But the rectified signal will be bouncy giving errornous falling edges???
Does anyone know of a way in which i can do this.
Heres is a simplfied example of the output