How To Work With 16/2 LCD Display

In this article, we are going to see how to work with 16/2 LCD Display using Arduino. We are going to display "Hello World" cursor from left to right. 

“The world will know you when you display what you are to the world.”

Requirements are,

  1. LCD Display 16/2.
  2. Arduino UNO
  3. Arduino Software
  4. Bread Board
  5. Jumper cables

Working

We have LCD 16/2 Display and the pin configurations are:

1st pin and 16th pin are Ground pins

2nd  and 15th pins are Vcc pins

3rd pin is contrast control pins

4th  pin is Registry select pins

5th pin is Read and Write pins, High to this pins is for the Read function and Low to this pin is Write function. We use Low here.

6th pin is Enable pin which enables the Liquid Crystal.

There are 8 Data pins from the  7th pin to 14th pin. It can be operated from the 8-bit mode and 4-bit mode. In our case, 4-bit mode can do everything. That is using Pins 11 to 14 of the Liquid Crystal.

Circuit Diagram

As per the Circuit Diagram, we have to give the connection and move on to the Arduino Software.

IoT

Steps to follow

Step 1

 Open the Arduino Software.

IoT

Step 2

Include Liquid Crystal Header File.

IoT

Step 3

Initialize the library with the number of Interface pins.

IoT

Step 4

Setup number of rows and columns and print the message.

IoT

Step 5

In Void Loop, turn on and off the cursor with delay of 500 milliseconds.

IoT

Step 6

Verify the code and upload it to the Arduino.

IoT

Summary

From this article, we have learned how to use Liquid Crystal with Arduino. We also learned how to display a message in the LCD display. We have learned about the pins of the Liquid Crystal.

Up Next
    Ebook Download
    View all
    Learn
    View all