Skip to main content

Subsection 11.6.4 Counting Pulses: the Arithmetic

The conversion. For a wheel of \(N\) slots and a count of \(PPS\) pulses taken over one second, \(RPM = 60 \times PPS / N\text{,}\) and for the 20-slot wheel in the kit that is \(3 \times PPS\text{.}\) The expression holds only if the program counts one edge per slot. Counting both edges doubles the count, and the denominator then has to become \(2N\) or the answer comes out at twice the true speed.
The same count as an angle. Each pulse is one slot going past, so each pulse is \(\Delta\theta = 2\pi/N\) radians, or \(360/N\) degrees, or \(1/N\) of a revolution. The pulse count times \(\Delta\theta\) is how far the shaft has turned since counting started, a position, and one relative to wherever the shaft happened to be at that moment.
The measurement’s own resolution. Counting whole pulses in a one-second window quantizes the answer: one pulse of miscount is \(60/N\) rpm, which on a 20-slot wheel is 3 rpm. At 180 rpm the window holds 60 pulses and one pulse is under 2 % of the reading; at 30 rpm it holds 10 and one pulse is 10 %. Three ways to do better, and what each costs: a two-second window halves the quantization and doubles how long the display takes to notice a change; counting both edges halves it too, and needs \(2N\) in the denominator; and timing the interval between two pulses instead of counting them inverts the trade entirely. At 3 rpm the interval is about a second and a 1 ms tick resolves it to about a tenth of a percent, where counting sees a single pulse in its whole window; at 180 rpm the interval is about 17 ms and the same tick gives about 6 %, which is worse than counting. Counting wins at speed, interval-timing wins at rest, and a real instrument does both and crosses over.