Summary of Arduino LCD
This tutorial guides users in connecting a 16x2 HD44780-compatible LCD to an Arduino Uno, preparing the display by soldering headers if necessary, and running built-in IDE examples. It details wiring the circuit in 4-bit mode, utilizing a potentiometer for contrast adjustment and a resistor for backlight current limiting, while emphasizing correct pin alignment to prevent hardware damage.
Parts used in the Arduino LCD Project:
- Arduino Uno board
- USB cable
- Wire links
- Breadboard
- 47 ohm resistor (yellow - violet - black)
- 10k potentiometer
- 16x2 character LCD (HD44780 compatible)
- 16 way single in-line pin header
A 16×2 character LCD is the quickest way to make an Arduino show you something without a computer: a status, a sensor reading, a counter. This page shows how to wire one to an Arduino Uno with six signal wires, why the screen is often blank on the first try, a short sketch to prove it works, and when an I2C display is the better choice.
Datasheet verified by us. Pin names, the 4-bit wiring and the command behaviour were checked against the HD44780 controller documentation. Page numbers are quoted where each figure is used, and the datasheets are linked in the resources box below.
Simulated in Proteus 9.0 SP2, run by us. We built the circuit and ran the sketch ourselves in Proteus 9.0 SP2 Professional (Build 40482). The screenshots and the files we used are on this page. The sketch was run on a simulated ATmega328P at 16 MHz with an LM016L 16×2 display. The first line showed “Hello, Arduino” with the heart character in the last column, and the second line counted seconds once per second. The simulation is also what showed that the cursor must be reset with lcd.setCursor(0, 0) after createChar(), which is why that line is in the sketch. See the screenshots and download the files.
- Any 16×2 display with the HD44780 controller works with the LiquidCrystal library that ships with the Arduino IDE.
- In 4-bit mode you need six Arduino pins: RS, E and four data lines, plus 5 V, GND and a 10 k contrast pot.
- A blank screen or a row of solid blocks is nearly always the contrast pot, not a dead display.
- If you are short of pins or want fewer wires, an I2C backpack uses only two (see the comparison below).

Our Proteus simulation: schematic, screenshots and files
We ran the sketch from this page in Proteus 9.0 SP2 Professional on a simulated ATmega328P at 16 MHz with an LM016L 16×2 display. These are our own screenshots. Click any screenshot to enlarge it. The simulation also showed that the cursor must be reset after createChar(), which is why lcd.setCursor(0, 0) is in the sketch.


Zip with the compiled .hex, the Arduino sketch, the Proteus project (.pdsprj) and a README. Open the .pdsprj in Proteus 9.0 SP2 or newer, check the Program File path points to the .hex, and press Play.
What this proves: the code and the 4-bit wiring logic. What it does not: the contrast pot, the backlight resistor or the Uno board itself (the Proteus LCD model has no backlight pins).
How the display works
Each character cell on the screen is a grid of 5 by 8 dots. The HD44780 chip on the back of the display knows the shapes of the letters, so the Arduino only sends it character codes, not dots. It talks to the Arduino over a parallel bus. The chip can run in 8-bit mode (eight data lines) or 4-bit mode, where each byte is sent as two 4-bit halves on lines D4 to D7 (datasheet p. 22). The four low lines, D0 to D3, are simply left unconnected. That saves four Arduino pins at almost no cost in speed, which is why this build, and most Arduino LCD tutorials, use 4-bit mode.
Besides the four data lines you need two control lines. RS (register select) tells the chip whether the byte is a command or a character (datasheet p. 8). E (enable) is the clock pulse that makes the chip read the data. The R/W pin chooses read or write. The library only ever writes, so R/W goes straight to GND.
What you need
Breadboard and jumper wires
16×2 HD44780 LCD (with or without backlight)
10 k potentiometer (contrast)
47 ohm resistor (backlight only)
16-way pin header
We simulated a standard 16×2 module. Any “16×2” display with 16 pins and the HD44780 (or a compatible) controller will do. Most bare LCD modules arrive without pins, so solder a 16-way header into the display first, then it plugs straight into the breadboard. The 47 ohm resistor limits the current to the backlight LED. Skip it if your display has no backlight, and leave it out if your module already has a resistor next to the backlight pin.
Wiring
Connection table
| Arduino | LCD pin | What it does |
|---|---|---|
| Pin 12 | RS | Command or character |
| Pin 11 | E (Enable) | Clock pulse |
| Pin 5 | DB4 | Data |
| Pin 4 | DB5 | Data |
| Pin 3 | DB6 | Data |
| Pin 2 | DB7 | Data |
| 5V | VDD, one pot end, BLA through 47 ohm | Power, contrast, backlight |
| GND | VSS, R/W, BLC, other pot end | Ground, write-only, backlight return |
The pot’s middle pin (the wiper) goes to the LCD’s V0 pin. Check your display’s datasheet for pin names, because some modules number the pins in a different order or put them along the top edge.

Three details that stop this build working
The code
The LiquidCrystal library is already in the Arduino IDE, so there is nothing to install. The first line of the sketch tells it which Arduino pins you used, in the order RS, E, D4, D5, D6, D7. Our sketch prints a message, draws one custom character and shows a seconds counter, so you can see at once that writing, positioning and updating all work.
// duino4projects.com
#include <LiquidCrystal.h>
// RS, E, D4, D5, D6, D7 (matches the wiring table above)
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte heart[8] = {
0b00000, 0b01010, 0b11111, 0b11111,
0b11111, 0b01110, 0b00100, 0b00000
};
void setup() {
lcd.begin(16, 2); // 16 columns, 2 rows
lcd.createChar(0, heart); // store a custom character in slot 0
lcd.setCursor(0, 0); // go back to the screen (createChar leaves the LCD writing to character memory)
lcd.print("Hello, Arduino");
lcd.setCursor(15, 0); // last column of the first row
lcd.write(byte(0)); // draw the heart
}
void loop() {
lcd.setCursor(0, 1); // first column of the second row
lcd.print("Seconds: ");
lcd.print(millis() / 1000);
}
Each row of the heart array is five dots wide, and a 1 lights a dot. The chip can store eight such 5 by 8 characters (datasheet p. 19). In the IDE, File, Examples, LiquidCrystal also has ready-made sketches for scrolling text, a blinking cursor, custom characters and showing text typed into the Serial Monitor, and they are worth running once your wiring works.
If it does not work
| What you see | Likely cause | What to do |
|---|---|---|
| Backlight on, screen blank | Contrast too low | Turn the pot through its whole range |
| Top row of solid blocks, bottom row empty | Display powered but not initialised | Check the sketch uploaded, and RS, E and the data wires |
| Garbled or random characters | A data wire swapped or loose | Recheck D4 to D7 against the table, and the breadboard contacts |
| Text on the wrong row, or only half shown | Wrong size in lcd.begin |
Match it to your display, for example lcd.begin(16, 2) |
| Nothing at all, no backlight | No power or wrong backlight wiring | Check 5V and GND, and the 47 ohm resistor on BLA |
Parallel or I2C: which suits you?
| LCD connection | Arduino pins used | Good for | Watch out for |
|---|---|---|---|
| 4-bit parallel (this build) | 6 signal pins | Learning, any pins you like, no extra parts | Many wires, uses about half your digital pins on an Uno |
| 8-bit parallel | 10 signal pins | Rarely needed | Four more pins for almost no gain in speed |
| I2C backpack (PCF8574 serial adapter board) | 2 (SDA, SCL), plus 5 V and GND | Saving pins, tidy wiring, sharing the bus with other I2C parts | Needs the LiquidCrystal_I2C library and the right address (commonly 0x27 or 0x3F) |
Our view: build this parallel version once, because it shows what RS, E and the data lines actually do. For a finished project with other sensors, move to an I2C backpack. On an Uno the I2C pins are A4 and A5, so keep those free.
Project variants: other ways to use a 16×2 LCD
- DIY Arduino Unit Converter: How to use LCD: a unit converter that shows its results on an LCD
- Cheap lcd screen for the Arduino: a cheaper LCD screen for the Arduino
- Arduino Joystick Breadboard with LCD Output: a joystick breadboard with LCD output
- Arduino Controlled Can Crusher With LCD Readout: a machine with an LCD readout
Related projects: other displays
- Multiplexing 7 Segment displays with Arduino and Shift Registers: seven-segment displays with shift registers
- OLED on the Cheap!: a small OLED display on the cheap
- Self-contained 16-Digit display – Arduino & Attiny85: a 16-digit display with an ATtiny85
- Displaying Images on 4D OLEDS using Arduino: images on 4D OLED displays
Quick answers
Check your own build
Power up and turn the pot until you see the first row of rectangles, then upload the sketch. You should see “Hello, Arduino” with a heart at the end of the first line, and a seconds counter on the second line that goes up once per second. If the text is there but too faint or too dark, adjust the pot a little at a time.
Project resources and downloads
Datasheets and documents for the parts in this build. Page numbers quoted on this page refer to these files.
- 💾 Schematic and simulation files (zip)
Zip. Our circuit schematic as a Proteus project (.pdsprj), the program that ran in it and a README, from our run in Proteus 9.0 SP2. - 📄 HD44780U LCD controller datasheet (Hitachi)
PDF, 60 pages, about 322 KB, document ADE-207-272, Rev. 0.0. The controller on the display: pin functions (page 8), 4-bit transfer (page 22), custom characters (page 19). - 📚 Arduino guide: LCD displays
Web page. Official wiring and the HelloWorld sketch, on the same pins as this page. - 📦 LiquidCrystal library source and examples
GitHub repository. The library that ships with the Arduino IDE. - 💾 Arduino code and ready-to-upload program (zip)
Zip, a few KB. The Arduino program from this page, the compiled file ready to upload, and a README. Shows a hello message, a custom heart character and a seconds counter on a 16×2 LCD. Open it in the Arduino IDE, pick your board and upload.
Quick Solutions to Questions related to Arduino LCD Project:
- What is recommended before starting this tutorial?
Beginners should complete all Arduino tutorials up to Tutorial 10. - How do I prepare an LCD without existing connections?
You must solder wires or a pin header to the display. - Which pins on the Arduino connect to the LCD data lines?
Pins 2, 3, 4, and 5 connect to DB7, DB6, DB5, and DB4 respectively. - Why are the first four data pins of the LCD left disconnected?
The LCD runs in 4-bit mode where DB0 to DB3 are not needed. - What is the function of the 10k potentiometer?
It adjusts the LCD contrast. - When is the 47 ohm resistor required?
It is only needed if using the LCD backlight to limit current. - Which Arduino pin connects to the LCD Enable pin?
Arduino Pin 11 connects to the LCD E (Enable) pin. - Where does the LCD R/W pin connect?
It connects directly to the Arduino GND.
