PDA

View Full Version : Counting Pulses



Tobias
- 5th September 2008, 13:49
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

b1arrk5
- 5th September 2008, 15:40
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.

Tobias
- 5th September 2008, 15:46
Thank you I will look into it.
Toby

Charles Linquis
- 5th September 2008, 17:09
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?

Tobias
- 5th September 2008, 17:35
3000 hz would be the absolute fastest.