Frequency/Pulse Measurement

Thanks Nick,

I'll give these pages a read tonight and see how I get on! I've been looking at the pulseIn() function to try and read frequency, but starting to warm towards using a combination of attachInterrupt(), millis() and detatchInterrupt() functions.

I'll be attempting to read and log the values of three other sensors on the same system as this: 2 thermistors (already programmed) 1 analog reading from a set of strain gauges, and then this anemometer. I'm just hoping the interrupt won't cause issues with reading data from the other sensors... like half way through reading a thermistor value, the interrupt gets called :S

Would detatchinterrupt() stop this from happening?

  • Heim