0% found this document useful (0 votes)
170 views

Interfacing LCD With Arduino Nano Board

This document discusses interfacing a 16x2 LCD display with an Arduino Nano board. It describes the pins and connections required, including 8 data pins, 2 power pins, a contrast control pin, and 3 control pins. It provides the code to print a message across two rows on the LCD when the sketch is uploaded to the Arduino board. The LCD is successfully interfaced and displays the message as intended.

Uploaded by

poornarithik
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views

Interfacing LCD With Arduino Nano Board

This document discusses interfacing a 16x2 LCD display with an Arduino Nano board. It describes the pins and connections required, including 8 data pins, 2 power pins, a contrast control pin, and 3 control pins. It provides the code to print a message across two rows on the LCD when the sketch is uploaded to the Arduino board. The LCD is successfully interfaced and displays the message as intended.

Uploaded by

poornarithik
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Interfacing LCD with Arduino Nano Board

February 21, 2022

In this tutorial, we are going to learn about Interfacing LCD with Arduino Nano


Board. LCD’s are generally used as a display in many applications as they are easy to
use then seven segment displays.

LCD stands for Liquid Crystal Display. 16×2 LCD is named so because; it has 16


Columns and 2 Rows.16*2 LCD are alphanumeric LCD’s which can display
alphabets, numbers and some special characters. They are easily operate using
commands which are hexadecimal values. There are a lot of combinations available
like 8×1, 8×2, 10×2, 16×1, etc. But the most used one is the 16×2 LCD. So, it will
have 16×2 = 32 characters in total and each character will be made of 5×8 Pixel Dots.

In 16×2 LCD there are 16 pins over all if there is a back light, if there is no back light
there will be 14 pins. One can power or leave the back light pins. Now in the 14 pins
there are 8 data pins (7-14 or D0-D7), 2 power supply pins (1&2 or VSS&VDD or
GND&+5v), 3rd pin for contrast control (VEE-controls how thick the characters
should be shown), and 3 control pins (RS&RW&E).

Features of the 16×2 LCD display:

 Voltage in between 4.7V to 5.3V.


 Current 1mA (without backlight).
 Alphanumeric LCD display (alphabets, number, special characters).
 Consists of two rows and each row print 16 characters.
 Each character is built by a 5×8-pixel dots.
 Working with both 8-bit and 4-bit mode.
 Available in Green and Blue Backlight.

Component Required:

 Arduino Nano × 1
 16×2 LCD × 1
 Potentiometer × 1
 Jumper Wires × 1
 Breadboard × 1
Connection required:

The connections which are for LCD are given below:

 PIN1 or VSS and PIN5 or RW (Read/Write) are commonly to ground.


 PIN2 or VDD or VCC to +5v power.
 PIN4 or RS (Register Selection) to PIN 12 of board.
 PIN6 or E (Enable) to PIN 10 of board.
 PIN11 or D4 to PIN 5 of board.
 PIN12 or D5 to PIN 4 of board.
 PIN13 or D6 to PIN 3 of board.
 PIN14 or D7 to PIN 2 of board

Arduino Sketch
#include <LiquidCrystal.h>

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(" WELL-COME TO");
lcd.setCursor(0,1);
lcd.print(" MICRODIGISOFT ");
}

void loop() {
}

Result:

After uploading the Arduino code LCD display will start showing the characters as
shown in below figure:

https://create.arduino.cc/projecthub/Shubham_Desai/interface-lcd-display-i2c-module-with-arduino-
uno-e68a9e

You might also like