Close
0%
0%

Arduino Nano: Rotary Encoder with Visuino

Connect Rotary Encoder to Arduino, and program it - quick and easy

Similar projects worth following
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.

VisuinoRotaryEncoderInstructable.zip

Visuino project file

x-zip-compressed - 874.00 bytes - 07/16/2016 at 17:55

Download

  • 1 × Arduino Nano
  • 1 × Rotary Encoder

  • 1
    Step 1

    Components

    1. One Arduino compatible board (I use Arduino Nano, because I have one, but any other will be just fine)
    2. One Rotary Encoder module I got from this cheap 37 sensors set.
    3. 4 Female-Female jumper wires
  • 2
    Step 2

    Connect the Rotary Encoder to Arduino

    1. Connect Ground(Black wire), Power(Red wire), Direction(Brown wire), and Clock(White wire) to the Rotary Encoder Module (Picture 1)
    2. Connect the other end of the Power wire(Red wire) to the 5V power pin of the Arduino board(Picture 2)
    3. 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)
    4. Connect the Direction wire(Brown wire) to Digital pin 3 of the Arduino board(Picture 3)
    5. 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!

    The Visuino: https://www.visuino.com also needs to be installed.

    1. Start Visuino as shown in the picture
    2. Click on the "Tools" button on the Arduino component in Visuino:
    3. When the dialog appears, select Arduino Nano :

View all 7 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates