Rotary and linear optical encoders are common in position and motion sensing. Here, a disc or plate containing opaque and transparent segments passes between an LED and detector to interrupt a light ...