Interfacing LCD with arduino Uno is an easy but very necessary task. Here we will see how to display some simple test to display in our lcd like our website name NBCAFE. For that we have to know two things hardware connection and necessary Arduino code for that. First we should know different pin of our lcd here we use LM016L LCD. If you have any doubt in what is arduino uno and how it work then please go through my previous post on what is Arduino UNO? In bellow we will see the different pin of LCD LM016L.

Interfacing LCD with arduino Uno

VSS : For ground for LCD.

VDD : For giving Vcc (+5 volt).

VEE : For adjusting brightness of lcd screen. We can use rheostat to give variable voltage to change the brightness.

RS : RS stands for resister select. If RS is HIGH then data at data bus treat as a data or if RS is LOW data at data bus treat as a command.

E : E stand for lcd enable pin.

D0-D7 : D0-D7 are data pin.

Now see the interfacing of LCD with Arduino Uno

Interfacing LCD with arduino Uno

Now we look some important Arduino command to display our data at LCD.

begin():  this begin() command is used for initializes the LCD screen, and specifies the dimensions of the display. The important thing we should remember that begin() command needs to be called before any other LCD library commands.

Syntax: lcd.begin(cols, rows)

print() : This print() command is used to prints text to the LCD.

Syntax: lcd.print(data), lcd.print(data, BASE)

clear() : Clear() command is used to clears the LCD screen and set the cursor positions in the upper-left corner.

Syntax: lcd.clear()

write()  : write() command is used to write a character to the LCD.

Syntax: lcd.write(data)

rightToLeft() : By using this command we can flow text to the left from the cursor.

leftToRight() : By using this command we can flow to the right from the cursor.

setCursor() : this command used for set the position the LCD cursor.

Syntax: lcd.setCursor(col, row)

 So in our project Interfacing LCD with arduino Uno we want to display “NBCAFE” in first row and our website address WWW.NBCAFE.In at second raw. In bellow see the complete programming of our project Interfacing LCD with arduino Uno.

Embedded C Code
// Name : Interfacing LCD with arduino Uno
// Author : Subham Dutta
// Date : 12-01-16
// Website :
#include// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);void setup() {
// set up the LCD’s number of columns and rows:
lcd.begin(16, 2);}void loop() {
lcd.setCursor(5, 0);
// Print a message to the LCD.
lcd.setCursor(1, 1);
// Print a message to the LCD.