Go Down

Topic: ANN: A frequency measuring subroutine (Read 971 times) previous topic - next topic

tkbyd

Looking for a subroutine to check for a fairly regular stream of "on" and "off" inputs to a pin? Want to avoid doing it with interrupts?

I've recently put something together. It isn't well tested yet, but you are welcome to it, if it is of use to you.

It will return, even if there is no pulse train. Actually, it returns the length of a full cycle, but that's inversely proportional to the frequency, isn't it?

Details at....

http://sheepdogguides.com/arduino/art3ptrain.htm

I hope it is useful to you!

(Developed in connection with the DirtCheapDumbWireless project, DCDWireless.com)

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy