Hi all,

I'm working on a project where I need to take two input pulses and calculate the difference in speed expressed as a percentage, something similar the the way ABS works, compares the speed of front and rear wheels based on pulses.

The pulses will be fairly frequent as the item being measured will be spinning somewhere in the realms of 4000RPM max, I suspect there will be ~16 pulses per revolution.

I suspect I will have to count the number of pulses over a given time (or since the last count) find the difference and convert it into a percentage.

I'm just not sure the best way to accomplish the last bit, any help/ideas would be appreciated :)