If you are a novice to rotary encoders for human-machine interface, there is a potential pit-fall. Otherwise called quadrature encoders, they deliver two-bit gray-scale binary on rotation, with the phases of the two square-waves at 90° – hence quadrature. Being Gray, it is posible to determine which direction the shaft is being rotated by looking …
This story continues at Quadrature encoder wisdom
Or just read more coverage at Electronics Weekly