The Rotary encoders are very useful precise rotation sensors, also often used as user controlled input devices instead of potentiometers. They are easy to connect to Arduino, and with the help of Visuino - an easy to use graphical development environment for Arduino, they are equally easy to program.
Details
Files
VisuinoRotaryEncoderInstructable.zip
Visuino project file
x-zip-compressed -
874.00 bytes -
07/16/2016 at 17:55
Connect Ground(Black wire), Power(Red wire), Direction(Brown wire), and Clock(White wire) to the Rotary Encoder Module (Picture 1)
Connect the other end of the Power wire(Red wire) to the 5V power pin of the Arduino board(Picture 2)
Connect the other end of the Ground wire(Black wire) to Ground pin of the Arduino board(Picture 2) Connect the Clock wire(White wire) to Digital pin 2 of the Arduino board(Picture 3)
Connect the Direction wire(Brown wire) to Digital pin 3 of the Arduino board(Picture 3)
Picture 4 shows where are the Ground, 5V Power, Digital 2 and Digital 3 pins of the Arduino Nano.
3
Step 3
Start Visuino, and select the Arduino Board type
To start programming the Arduino, you will need to have the Arduino IDE installed from here: http://www.arduino.cc/ .
Please be aware that there are some critical bugs in Arduino IDE 1.6.6. Make sure that you install 1.6.7 or higher, otherwise this Tutorial will not work!