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.