Basic LCD Project (Arduino LCD 16x2 Display)




Introduction: Basic LCD Project (Arduino LCD 16x2 Display)

LCD (Liquid Crystal Display) screen is an electronic display module and find a wide range of applications. A 16x2 LCD display is very basic module and is very commonly used in various devices and circuits. These modules are preferred over seven segments and other multi segment LEDs. The reasons being: LCDs are economical; easily programmable; have no limitation of displaying special & even custom characters (unlike in seven segments), animations and so on.

A 16x2 LCD means it can display 16 characters per line and there are 2 such lines. In this LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers, namely, Command and Data.

Step 1: Components Required

All we need are as follow:

  1. Arduino UNO
  2. 16 x 2 LCD module
  3. Potentiometer
  4. Pins Wires
  5. Breadboard

Step 2: Connection

To wire your LCD screen to your board, connect the following pins:

  1. LCD RS pin to digital pin 12
  2. LCD Enable pin to digital pin 11
  3. LCD D4 pin to digital pin 5
  4. LCD D5 pin to digital pin 4
  5. LCD D6 pin to digital pin 3
  6. LCD D7 pin to digital pin 2

Step 3: Code


const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;

LiquidCrystal lcd(rs, en, d4, d5, d6, d7);

void setup() {

lcd.begin(16, 2);

lcd.print("hello, world!");


void loop() {

lcd.setCursor(0, 1);

lcd.print(millis() / 1000);


Be the First to Share


    • Make It Bridge

      Make It Bridge
    • Game Design: Student Design Challenge

      Game Design: Student Design Challenge
    • For the Home Contest

      For the Home Contest



    1 year ago

    Thanks for sharing. The LCD backlight was not turning on using only the connections shown in your wiring diagram. I figured 5 volts probably is not enough to fully power an 1602a LCD. The LED backlight finally turned on though when I added two more connections: (1) one wire from the Arduino UNO 3.3V power output pin to my LCD's "A" pin and (2) a wire connecting the LCD's "K" pin to the LCD's VSS pin (i.e. the Arduino's ground pin).


    5 years ago

    Thanks for sharing :)

    md iqbal
    md iqbal

    5 years ago

    any queries plz ask