The AEAT-601B is a low-cost rotary quadrature encoder that converts the rotation of a shaft to a series of pulses on 3 digital output channels. A suitable microcontroller can calculate angular position, speed and rotational direction from the two signals