Rotary Encoder Using Arduino
by hIOTron IoT in Circuits > Arduino
1261 Views, 3 Favorites, 0 Comments
Rotary Encoder Using Arduino
The rotary encoder supports the user to interact with the system and in this project, we interface it with Arduino.
Supplies
Hardware Supplies
Arduino Uno
Potentiometer 10k ohms
Rotary Encoder (KY-040)
16 x 2 LCD
Connecting wires
Software Supplies
Arduino IDE
About Project
A Rotary Encoder basically is an electromechanical transducer that converts mechanical movements into electronic pulses. It contains a knob which when moves step by step and generates a sequence of pulse trains with a predefined width
The various types of encoders are rated depends upon the Output signal and sensing technology. The Encoder utilized here is an Incremental type of Encoder.
Rotary Encoder with Arduino
Once the hardware is ready, you need to just upload the code to the Arduino board and power up the Arduino Board. Power it with the help of the USB cable or a 12V adapter. When it gets powered the LCD should display the message and then get blank.
Then rotate the rotary encoder and you can see the value start incremented or decremented depends on the direction you rotate. You can see the below image. And when the button is pressed, the second line will display that the button is pressed.
Learn more about IoT Concepts with the help of IoT Course.