You are on page 1of 29

LIQUID CRYSTAL DISPLAY

(LCD)
Quarter 3_Week 1
GAME TIME!!!
GESG
SCRAMBBLED EGGS
STAND
________________

I UNDERSTAND
JACK
JACK IN THE BOX
R
O
ROADS
D
S
CROSSROADS
STA4NCE
FOR INSTANCE
LIQUID CRYSTAL DISPLAY
(LCD)
Quarter 1_Week 2
LIQUID CRYSTAL DISPLAY (LCD)
❖ Liquid Crystal Display (LCD)
is a thin , flat panel display
device used for
electronically displaying
information such as text
,images and moving picture.
LIQUID CRYSTAL DISPLAY (LCD)

❖ LCD is used in Computer monitors,


Televisions , Instrument panels, Gaming
devices etc.
❖ Polarization of lights is used here to
display objects.
LIQUID CRYSTAL DISPLAY (LCD)

❖ 1602 LCD is a basic 16 character by 2 line


display. Black text on Green/Blue background.
Interface code is freely available. You will need 7
or 11 general I/O pins to interface to this LCD
screen. Includes LED backlight.
LIQUID CRYSTAL DISPLAY (LCD)
LIQUID CRYSTAL DISPLAY (LCD)
❖ Liquid crystals Liquid crystals are liquid chemicals in a state that has
properties between those conventional liquid and solid crystals. That is
a liquid crystal may flow like a liquid, but its molecules may be oriented
in a crystal like way.
❖ Liquid crystals molecules can be aligned precisely when subjected to
electric fields, as like as in the way metal shavings line up in the field of
a magnet. When properly aligned, the liquid crystals allow light to pass
through.
HOW DOES LCD WORK?
How does it work?

❖ How LCDs work Liquid crystals can adopt a twisted up


structure and when we apply electricity to them, they straighten
out again. This is the key how LCD displays turn pixels on and
off. The polarization property of light is used in LCD screen to
switch its colored pixels on or off.
How does it work?

❖ At the back of the screen, there is a bright light that shines out
towards the viewer. In front of this, there are the millions of
pixels, each one made up of smaller areas called sub-pixels,
that are colored Red, Green, or Blue.
How does it work?
❖ Each pixel has a polarizing glass filter behind it and another in front of
it at 90 degrees. Normally the pixels looks dark. In between the two
polarizing filters there is a tiny twisted, nematic liquid crystal that can
be switched on or off electronically.
❖ When it is switched on, it rotates the light passing through it through
90 degrees, effectively not allowing light to flow through the two
polarizing filters and making the pixel look dark.
LIQUID CRYSTAL DISPLAY (LCD)
LIQUID CRYSTAL DISPLAY (LCD)
CONTROLS
❖ Auto-scroll: Shift text right and left.
- autoscroll(); This will move the text one space to the left
whenever a new character is added.
- noAutoscroll(); Turns off auto scrolling.

❖ Cursor: This allows you to turn off and on the underscore cursor.
- noCursor(); Turns off the underscore cursor.
- Cursor(); Turns on the underscore cursor.
❖ Blink: Turns on and off the blinking of the block cursor.
- noBlink(); Turns off the blinking cursor.
- blink(); Turns on the blinking cursor.

❖ Display: Make the display go blank without losing the current text.
- noDisplay(); Turns off the display.
- display(); Turns on the display.
❖ Scroll: Allows you to scroll the text both left and right.
- scrollDisplayLeft(); Will scroll one position to the left.
- scrollDisplayRight(); Will scroll one position to the right.

❖ Set Cursor: Sets the cursor to a specific position. (Location, Line)


- setCursor(0, 0); Will set the cursor to be at the top left.
- setCursor(15, 1); Will set the cursor to be at the bottom right.
❖ Text Direction: Allows you to tell which way the text should flow from
the cursor.
- rightToLeft(); Forces the text to flow from the left of the cursor.
- leftToRight(); Forces the text to flow from the right of the cursor.
TINKER TIME!!!
Scrolling LCD Display
This sketch prints "Robotics IV!" to the LCD and uses the scrollDisplayLeft() and
scrollDisplayRight() methods to scroll the text.

The circuit:
* LCD RS pin to digital pin 12
* LCD Enable pin to digital pin 11
* LCD D4 pin to digital pin 5
* LCD D5 pin to digital pin 4
* LCD D6 pin to digital pin 3
* LCD D7 pin to digital pin 2
* LCD R/W pin to ground
* 10K resistor:
* ends to +5V and ground
* wiper to LCD VO pin (pin 3)
Blinking Text in LCD Display
● Connect the "GND" of the arduino uno board to "VSS" , "R_W" and "K"
LCD.
● Connect the "5V" of the arduino uno board to "VDD" ,and "A" LCD.

Pin Connect

● Connect the "pin number 7" of the arduino uno board to "RS" LCD.
● Connect the "pin number 6" of the arduino uno board to "E" LCD.
● Connect the "pin number 5" of the arduino uno board to "DB(4)" LCD.
● Connect the "pin number 4" of the arduino uno board to "DB(5)" LCD.
● Connect the "pin number 3" of the arduino uno board to "DB(6)" LCD.
● Connect the "pin number 2" of the arduino uno board to "DB(7)" LCD.

You might also like