SunFounder Rotary Encoder Module for Arduino and Raspberry Pi

Application 
The module can count by rotation the pulses output both clockwise and counterclockwise. Different from potentiometer, the counting is unrestricted. It can be restored to the original state by the button on the module, i.e. counting from 0. 

Application 
It is widely applied in fields such as steel, harbor machinery, hoisting machinery, pressure machinery, glass machinery, packaging machinery, etc. 

Component List 
- 1 * Rotary Encoder module 
- 1 * 5-Pin anti-reverse cable 

Rotary Encoder - Illuminated (Red/Green)

Rotary encoders are used similarly to potentiometers. They’re different from potentiometers in that an encoder has full rotation without limits. They output gray code so that you can tell how much and in which direction the encoder has been turned.

This encoder is especially cool because it has a red/green LED built in, as well as a push-button. Look below for the clear knob that goes with this potentiometer.