RGB-Liquid-Crystal-Display-Tutorial.pdf
(
929 KB
)
Pobierz
RGB Liquid Crystal Display Tutorial
RGB Liquid Crystal Display
Tutorial
Written By: Jaden Gani
TOOLS:
Arduino IDE (1)
Computer (1)
Soldering iron and solder (1)
PARTS:
Arduino (1)
Jumper wires (1)
RGB 16*2 display (1)
SUMMARY
This is something that almost every maker that is interested in easy electronics should know
how to do. It is great for decorating or just experimenting for starters.
I am doing this tutorial because I had bought an RGB display from the Maker Shed and it
was hard to track down the instructions. First I will teach you how to connect it to the
Arduino and then I will show you the code required.
This isn't my very own tutorial; I am just making the information easily accessible for
everyone.
© Make Projects
www.makeprojects.com
Page 1 of 6
RGB Liquid Crystal Display Tutorial
Step 1 — RGB Liquid Crystal Display Tutorial
We will start off by gathering all of the parts together. Then open the package. Inside, you
will find the display, contrast pot, and header pins. Solder the header pins on the same
side that I did.
Step 2
Now we will prepare everything to start connecting to the Arduino. Insert the display into
the breadboard with the pot next to it. Then connect 5V and GND to the breadboard rails as
I have done. Good.
© Make Projects
www.makeprojects.com
Page 2 of 6
RGB Liquid Crystal Display Tutorial
Step 3
Now we will hook up the contrast pot. Connect one side of the pot to GND and the other to
5V. Then hook the middle of the pot to pin 3 on the display.
Step 4
Connect pin 1 of the display to GND, pin 2 to 5V, and pin 5 to GND.
© Make Projects
www.makeprojects.com
Page 3 of 6
RGB Liquid Crystal Display Tutorial
Step 5
Connect pin 15 to 5V and then connect either pin 16, 17, or 18 to GND depending on what
color you want for your backlight. I picked pin 16 which will make it light up red.
Step 6
Now we will start connecting the Arduino to the display. Connect pin 4 of the display to pin
7 on the Arduino; pin 6 to pin 8; pin 11 to 9; 12 to 10; 13 to 11; and pin 14 on the display to
pin 12 on the Arduino.
© Make Projects
www.makeprojects.com
Page 4 of 6
RGB Liquid Crystal Display Tutorial
Step 7
The setup should look something like this.
Step 8
Now you have connected the display to the Arduino. For the code, navigate in the Arduino
environment to
Examples® Liquid crystal® Hello world.
Change the line of code that
®
®
says:
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
to
LiquidCrystal lcd(7,
8, 9, 10, 11, 12);.
A wiring diagram is included here.
© Make Projects
www.makeprojects.com
Page 5 of 6
Plik z chomika:
Amiga789
Inne pliki z tego folderu:
r4simplyexplained_1608.gif
(7 KB)
r4simplyexplained_1608.pdf
(193 KB)
r4simplyexplained_1608.jpg
(48 KB)
r4simplyexplained_1608_abbyy.gz
(25 KB)
r4simplyexplained_1608_jp2.zip
(817 KB)
Inne foldery tego chomika:
0-9
A
B
C
D
Zgłoś jeśli
naruszono regulamin