Encoder disk and quadrature channels A and B
Speed error: counting vs timing

Rotary Encoder: Quadrature Signals and M/T Speed Error (2D)

Spin a slotted optical encoder disk and decode its two quadrature channels into position and direction, then estimate the shaft speed either by counting pulses in a fixed gate (M method) or by timing the interval between edges (T method). Change the lines per revolution, speed, gate time and timer clock to see the quantisation error of each method and the crossover speed where one overtakes the other. A Blender-built disk, motor and optical fork sensor, with numerical checks built in.

Made with 🟠 Blender