Pulse Counting for Pulse Train with Missing Pulses

Dear All,

I know this question has been asked around the forum: How to count pulses using Arduino? This is especially useful for calculating rotational speed in a mechanism. Here (http://forum.arduino.cc/index.php?topic=151067.0), Nick Gammon suggested that we look at the code provided at Gammon Forum : Electronics : Microprocessors : Timers and counters .

If one wants to know angular speed as well as angular displacement, people use gears with missing tooth. Standard is 60 tooth gear with 2 missing tooth. (30-1) gear is also standard.

I think the above code is not for determining rotational speed+angle from a pulse train with missing pulses. This is a pretty standard algorithm and I would be surprised if the code is not available. If anyone has any info, please let me know.

Anyone interested, please see: http://cache.freescale.com/files/32bit/doc/app_note/AN2897.pdf
or just search “couting tooth pulse missing freescale” @ google.com

Thanks
Bugaboo

Interesting question, need to think this one over as it is not trivial.
The missing teeth can be interpreted as sudden slowing down.
Also when the direction changes one looses count.

Under restricted conditions (always same direction, no sudden speed changes) it is doable, not trivial...