In this tutorial we are going to interface a Liquid Crystal Display (LCD) with Arduino Microcontroller. Liquid 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
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:
|
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