Рет қаралды 28,686
This tutorial shows how to use an I2C 16x2 Character LCD and a KY-040 Rotary Encoder for local control and readout with an Arduino Uno. The parts cost less than $10 and can be assembled with no soldering. I believe that this makes it the simplest, cheapest, and easiest way to create a local user interface for an Arduino project.
Feel free to skip ahead to the section that is of most interest to you.
1:04 - Purchasing the Parts
4:12 - Assembly of the Hardware
7:38 - Walkthrough of the Arduino Sketch
11:44 - Demonstration
The Arduino sketch shown in this video can be found at:
github.com/jpsrmiller/rotary-...
For a written version of these instructions, refer to:
buildmusic.net/tutorials/user...
The Arduino sketch uses the following external libraries:
OneButton: github.com/mathertel/OneButton
Liquid Crystal I2C: github.com/fdebrabander/Ardui...
The sketch also utilizes code from Simon Merrett’s instructable “Improved Arduino Rotary Encoder Reading”
www.instructables.com/id/Impr...
Parts for this project were purchased from Ali Express (www.aliexpress.com/) and Adafruit (www.adafruit.com/).
Check out my other Arduino projects that use the I2C LCD and Rotary Encoder as described in this video:
Toastmasters Automatic Timing Light - autotiminglight.com/
Build Your Music - Robotic Xylophone - buildmusic.net/