Using Rotary Encoders with Arduino
Rotary encoders are versatile devices that can be used both as controls and as instruments to measure the rotation of a DC motor
How to Use Rotary Encoders