Home▸Engineering & Materials▸Rotary Encoder: Quadrature Signals and M/T Speed Error (2D)

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

A slow-motion encoder disk with the quadrature waveforms of channels A and B, and the relative speed error of the counting and timing methods against shaft speed. The same shared model as the 3D scene.

Engineering & Materials2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Rotary Encoder: Quadrature Signals and M/T Speed Error (2D) ↗ Open standalone

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.

⚙ Under the hood

A slow-motion encoder disk with the quadrature waveforms of channels A and B, and the relative speed error of the counting and timing methods against shaft speed. The same shared model as the 3D scene.

Rotary EncoderQuadrature DecodingSpeed MeasurementQuantisation ErrorSensors

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)