LCD interfacing with arduino

In this tutorial we’ll be looking at how to connect interface parallel LCD to an Arduino. We are using 16 char x 2 Line LCD known as 16×2 LCD, you can usually identify this display by the 16-pin interface. You only need to solder 10 of the 16 wires to use the LCD, but this will only enable you to use the 4-bit interface. 4-Bit interface helps us to reduce required IO lines, there are various displays available such as 16×2, 16×4, 20×2, 20×4 LCD Display.

Step 1: Components Required

  1. 16×2 LCD
  2. Arduino Board
  3. Connecting wires
  4. 1K Ohm Resistor

Step 2: Circuit diagram/connections

  1. Most of the time we don’t need to read the display so we always write on the display. Pin 5 RD/WR  when it is connected to logic 0, It is write operation, to reduce IO requirement we connect it to GND (Logic 0 Always Write)
  1. Contrast setting, LCD contrast can be adjusted by setting proper voltage at Pin 3. Connecting variable resistor takes lot of space and possibility of setting wrong contrast value due to change in resistance with change in atmospheric condition. I use 1KOhm resistor between GND and Pin 3. It gives perfect contrast setting.

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 (1K Ohm resistor to GND)
Pin 4 – Register Select
Pin 5 – Read/Write (Connect to GND)
Pin 6 – H/L Enable
Pin 11 – DB4
Pin 12 – DB5
Pin 13 – DB6
Pin 14 – DB7

As shown in the picture below:

Pin 1 to GND
Pin 2 to 5V
Pin 3 to (1K Ohm resistor to GND)
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

Read More: LCD interfacing with arduino


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

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

Scroll to Top