Close

April 27, 2018

Learn: Display Characters on an LCD

OVERVIEW

An LCD display can replace your Serial Monitor as a display module. This is useful for standalone projects, where the Arduino runs on its own power supply and is not connected to a computer.

PART 1: ASSEMBLE THE LCD

NOTE: For proper soldering technique, see Guide: Soldering Technique.

 

Pin Name Function
1 Vss GND
2 Vcc 3.3V to 5V
3 Vo Contrast — GND: high contrast; Vcc: low contrast)
4 RS Register Select — 0: command; 1: data
5 R/W Read/Write — 0: write; 1: read
6 E Clock — falling edge triggered
7 DB0 Bit 0 (not used in 4-bit operation)
8 DB1 Bit 1 (not used in 4-bit operation)
9 DB2 Bit 2 (not used in 4-bit operation)
10 DB3 Bit 3 (not used in 4-bit operation)
11 DB4 Bit 4
12 DB5 Bit 5
13 DB6 Bit 6
14 DB7 Bit 7
16 LED+ Backlight (+)
17 LED– Backlight (–)

 

PART 2: ASSEMBLE THE CIRCUIT

LCD display — circuit

 

LCD display — breadboard

 

PART 2: PROGRAM THE ARDUINO

Upload this program to Arduino. You should see a message appear on the LCD display.

 

 

NOTE:

  • In the circuit, VO is permanently connected to GND to get the highest contrast. If you wish, you can use a potentiometer to adjust the voltage between GND (high contrast) and VCC (low contrast).
  • You can turn on the backlight of the display by connecting pin LED+ to 5V and LED– to GND. To reduce power consumption, you could include a circuit to automatically turn on the backlight only when it’s dark.

Leave a Reply

Your email address will not be published. Required fields are marked *