7/21/2017

Interfacing LCD With Arduino Microcontroller

In this tutorial we are going to interface a Liquid Crystal Display (LCD) with Arduino MicrocontrollerLiquid Crystal Display are used in many devices.

Liquid Crystal Display LCD


Components Required


Hardware: 

ARDUINO UNO, 
power supply (5v),  
16X2 Liquid Crystal Display  (LCD)

Software: 

Arduino IDE

Pin Configuration

Liquid Crystal Display LCD
Pin 1GND
Pin 2+5V
Pin 3Mid terminal of potentiometer (for brightness control)
Pin 4Register Select (RS)
Pin 5Read/Write (RW)
Pin 6Enable (EN)
Pin 7DB0
Pin 8DB1
Pin 9DB2
Pin10DB3
Pin 11DB4
Pin 12DB5
Pin 13DB6
Pin 14DB7
Pin 15+4.2-5V
Pin 16GND


Description Of Pin

Register Select : RS pin is used to select the register.


RW selects either read or write mode.
Enable: E enables the LCD module.

Data Pins: Pin7 to Pin14 are data Pins.
Logic High (1) – Activates Data register.
Logic Low (0) – Activates  Instruction register.
Logic High (1) – Activates Read mode.
Logic Low (0) – Activates Write mode.
Vss: It is the Ground Pin of the module.
Vdd : It is the supply pin of the module.
VEE : Pin3 is used for controlling the brightness of the LCD. Normal setting of this pin is between 0.4V to 0.9V.A 10 k pot is connected to adjust the brightness of the screen.

Circuit Diagram:

Liquid Crystal Display LCD
Arduino Code:-


 #include
LiquidCrystal lcd (5, 4, 3, 2, 1, 0);  

Void setup ()
{
 lcd.begin(16, 2);  
}

Void loop ()
{
  lcd.setCursor (0, 0);         
  lcd.print ("Hello World"); 
  lcd.setCursor (0,1);       
  lcd.print ("16X2 LCD");     
}




No comments:

Post a Comment

Interfacing LCD With Arduino Microcontroller

In this tutorial we are going to  interface a  Liquid Crystal Display (LCD)  with Arduino Microcontroller .  Liquid Crystal Display are us...