-
Counting Pulses
I am needing to calculate four axle rpms. I have twenty counts per rev on each axle. If I use the COUNT command, I eat up alot of time. I am considering using the PULSIN command. A friend of mine told me about the http://www.awce.com/pak7.htm
It looks like it will do the trick. Does anyone else manufacturer a product similiar? Or are there any other options?
Thanks
Toby
-
Do a search for Frequency Counting, and you will find a great example that Bruce did for someone using Darrel Taylor's Instant Interrupts to trigger on a rising edge, and then trigger again later on the falling edge. I think you can easily modify it for your project, and by using interrupts you'll free up a lot of microprocessor time.
Good Luck!
Jerry.
-
Thank you I will look into it.
Toby
-
Which method you choose depends a lot on how fast those pulses are coming in. What is the maximum RPM of the shafts you are trying to measure the speed of?
-
3000 hz would be the absolute fastest.