Connecting An LCD To The Arduino
Connecting An LCD To The Arduino
jsp) Contests
Login
let's (/contest/) | Sign
(/account/login)
make Community (/community/)
Up (/account/gopro?sourcea=header)
(/)
share what you make >
(/)
(/editInstructable/)
License:
88,700 views
73 favorites
crocboy
(/member/crocboy/)
Follow 7
(/member/crocboy/)
Bio: I love to build stuff.
More by crocboy
(/id/UsingWiiChuckAdapter
withArduino)
(http://cdn.instructables.com/FWL/VJOV/G68GYB78/FWLVJOVG68GYB78.LARGE.jpg) (/id/ParacordLadderw
WoodenRungs)
Tags:
In this instructable we’ll be looking at how to connect a parallel LCD to an lcd (/tag/typeid/categorytechnology/keywordlcd/)
Arduino. The LCD that I am using uses the common HD44780 interface. Many arduino (/tag/typeid/categorytechnology/keyword
LCDs have this, you can usually tell by the 16pin interface. You only need to arduino/)
solder 10 of the 16 wires to use the LCD, but this will only enable you to use the
connect (/tag/typeid/category
4bit interface.
technology/keywordconnect/)
hd44780 (/tag/typeid/category
Materials:
technology/keywordhd44780/)
10 Jumper wires
(http://cdn.instructables.com/F78/MLNB/G68GYB3B/F78MLNBG68GYB3B.LARGE.jpg)
The first step we need to do is connect the pins to the LCD. For those
interested, you can find the datasheet here
(http://www.sparkfun.com/datasheets/LCD/GDM1602K.pdf).
I got my LCD from sparkfun, and you can buy one here
(http://www.sparkfun.com/commerce/product_info.php?products_id=255).
As I mentioned before, you only need to connect 10 pins. Solder jumpers to
these wires:
Pin 1 Ground
Pin 2 +5V
Pin 3 Contrast Adjustment
Pin 4 H/L Register Select
Pin 5 H/L Read/Write
Pin 6 H/L Enable
Pin 11 DB4
Pin 12 DB5
Pin 13 DB6
Pin 14 DB7
Pin 1 to GND
Pin 2 to 5V
Pin 3 to wiper
Pin 4 to Arduino pin 12
Pin 5 to GND
Pin 6 to Arduino pin 11
Pin 11 to Arduino pin 5
Pin 12 to pin 4
Pin 13 to pin 3
Pin 14 to pin 2
Because we will only be writing, pin 5 will be dropped to ground to show that
there will be no reading. For those who wish to use the backlight, connect LCD
pin 16 to GND and LCD pin 15 to +4.2V.
Connect one side of the pot to GND, the opposite to +5v, and the center to LCD
pin 3. Now you're in business.
Step 2: Opening the IDE
(http://cdn.instructables.com/FZU/3702/G68GYB31/FZU3702G68GYB31.LARGE.jpg)
Now, you need to open up the Arduino IDE. (For those who are lost click on the
icon!) Then click File > Examples > LiquidCrystal > HelloWorld. Open the
sketch and dowload it to the Arduino board.
Connecting an LCD
View Allto the
Steps Arduino by crocboy (/member/crocboy/)
(/id/ConnectinganLCDtotheArduino/?ALLSTEPS)
Download (/id/ConnectinganLCDtotheArduino/?download=pdf)
Make Comment
can i get a code for displaying 12 images in a LCD TFT touchscreen ??????
(/member/Niveditanive/)
jdoeson (/member/jdoeson/)
1 year ago Reply (CMEW5UEHH2VJV2K)
Awesome instructable!
(/member/jdoeson/)
I was able to get everything running smoothly on my ATmega328 (Arduino Uno)
and a TM204A1 LCD screen I got from Amazon. I thought I would be spending
days learning how to figure this out, but after soldering the DIP pins on the LCD I
was able to get this up in 30 minutes!
I also used a mini breadboard for the LCD (the red one) to make things easier.
(http://cdn.instructables.com/FAO/66ZL/HH2VM4GN/FAO66ZLHH2VM4GN.LARGE.jpg)
Hi, I have followed the following configuration and can see my message on
the screen, vaguley
(/member/monsur/) (http://www.hacktronics.com/Tutorials/arduino
characterlcdtutorial.html (http://www.hacktronics.com/Tutorials/arduino
characterlcdtutorial.html))
You have mentioned opening pin 13 on the IDE, how is this done?
I am using an arduino pro mini and have followed the following link to get the
message
(/member/monsur/) to display on my 16*2 LCD.
(http://www.hacktronics.com/Tutorials/arduinocharacterlcdtutorial.html
(http://www.hacktronics.com/Tutorials/arduinocharacterlcdtutorial.html))
I have managed to upload it with no problem but cannot seem to clearly see the
writing that is visible, it is very dim and cannot understand why. The issue may be
related to my 10k potentiometer as it does not adjust when I turn it.
From the uploaded pic you can just make out ' Hello World' on the top and
'Hackatronics.com' on the bottom.
Any suggestions?
(http://cdn.instructables.com/FNG/EHRZ/HR3EOIOO/FNGEHRZHR3EOIOO.LARGE.jpg)
Hi there,
(/member/irtiq7/)
I tried everything but I am still getting those black boxes when I set my
potentiometer high.
followed the guide and i only get some weird signs on it but no hello world
(/member/Jeff_/)
hi ! can u plz tell me the link to the software with the help of which i can boot a
programe/code
(/member/prateekk/) into my arduino...??
like i hav avr for atmel micro controllers.
plz help!!
Thanks, great instructable, I just got my arduino today and this was my first
project!
(/member/andy70707/)
i wired mine just like this and the lcd wont light up or show any thing
if any one
(/member/anselmi/) could help me i would really appreciate it
I set it up right but all i get are boxes. What should i do?
3 years ago Reply (CLFMO01GELSBW4S)
(/member/Robot+Lover/)
Help! I did all you said but I only get black boxes on the LCD. What should I
(/member/Derin/)do?
May I recommend hooking the backlight led to a pwm pin via a resistor, or with
a protection
(/member/frollard/) resistor via a transistor (if the backlight pulls too much current for
the atmega pin to handle). Variable brightness ftw!
Good writeup!
Make Comment
About Us Find Us
Who We Are (/about/) Facebook (http://www.facebook.com/instructables)
Advertise (/advertise/) Youtube (http://www.youtube.com/user/instructablestv)
Contact (/about/contact.jsp) Twitter (http://www.twitter.com/instructables)
Jobs (/community/PositionsavailableatInstructables/)
Pinterest (http://www.pinterest.com/instructables)
Help (/community?categoryGroup=Help)
Google+ (https://plus.google.com/+instructables)
Tumblr (http://instructables.tumblr.com)
iOS
(https://itunes.apple.com/app/instructables/id586765571)
Windows
(http://apps.microsoft.com/windows/en
us/app/7afc8194c771441a9590
54250d6a8300)