LCD interfacing with Arduino Uno Proteus Simulation

We are going to learn 16*2 lcd interfacing with Arduino UNO. To interface with 8051 Microcontroller click the link: Lcd interfacing with 8051 microcontroller and follow the guide. The circuit here is created on Proteus ISIS software. We have simulated the circuit and tested on the arduino board. For more details about click this HERE.

Arduino is equipped with lot’s of amazing inbuilt functions which helps one to easily interface different electronic components. One of them is a LCD. LCD’s are generally used as a display in many applications as they are easy to use then seven segment displays. 16*2 LCD are alphanumeric LCD’s which can display alphabets, numbers and some special characters. They are easily operated using commands which are hexadecimal values. This commands in arduino can be provided using the codes.

New to Arduino- Learn Here: Getting Started with Arduino

Header File: LiquidCrystal.h

LiquidCrystal.h is an inbuilt file provided with the Arduino Software. So adding #include<LiquidCrystal.h> easily helps to use all LCD functions in the code.  Following are some functions which automatically gets initialized once this header file is included.

  • lcd.begin();
  • lcd.print();
  • lcd.cursor();
  • lcd.home();
  • lcd.write();
  • lcd.display();
  • lcd.blink();
  • lcd.autoscroll();
  • and many more…

Circuit Diagram of LCD interfacing with Arduino Uno:

Lcd interfacing with Arduino uno
LCD interfacing circuit diagram

 

Connections:

  • RS- Pin2
  • RW- Gnd
  • E- Pin3
  • D4-D7- Pin4- Pin7

Note: D0-D3 pins are not connected as we are using the LCD in 4 bit mode. Last two pins of LCD are for back light. They are not available in Proteus.

Arduino Code:

#include<LiquidCrystal.h>
LiquidCrystal lcd(2, 3, 4, 5, 6, 7); // sets the interfacing pins
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
}

void loop() {
lcd.begin(0,0);
lcd.print(“HELLO WORLD”);// Displays HELLO WORLD on LCD
delay(2000);
lcd.print(“elexfocus.com”);//Displays the string from second line.
delay(2000);
}

Output Window:

Output- Lcd interfacing with Arduino
Output- Lcd interfacing with Arduino

The above circuit can be easily implemented on arduino boards and is used in almost all applications.

 

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here