I Encoder Algorithm

Rotary encoders are used in a wide range of applications that necessitate monitoring or control, or both, of mechanical systems, including industrial controls, robotics, photographic lenses, computer input devices such as optomechanical mouse and trackball, operated stress rheometers, and rotating radar platforms. The output of an incremental encoder provides information about the movement of the shaft, which typically is processed elsewhere into information such as position, speed and distance.

I Encoder source code, pseudocode and analysis