0% found this document useful (0 votes)
12 views48 pages

What Is An LCD?

Uploaded by

lunaevangeline31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views48 pages

What Is An LCD?

Uploaded by

lunaevangeline31
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 48

WHAT IS AN LCD?

LIQUID CRYSTAL DISPLAY


❖LCD is a flat-panel display or an
electronically modulated optical device that
uses the light-modulating properties of liquid
crystals combined with polarizers.
-Backlight
-Polarizer
-Liquid
Crystal

Polarizer

Color Filter
Liquid
Crystal orient
themselves
in random
direction.
The liquid crystal
can be twisted
in a predictable
patterns
Liquid
Crystal
The electrodesorient
canthemselves
control the
in random
orientation of
the direction.
liquid crystal
By adjusting the
electricity that
flows in the
electrodes, the
amount of light
that can pass
through the LCD
can be controlled.
L CD 1602
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

1
PAR T s
LCD 1602 with I2C module

I2C is a communication protocol that allows you to


communicate with multiple devices using only a few pins.
LCD 1602 with I2C module
LCD 1602 with I2C module
SDA - Serial Data
This line is used for both transmit and
receive.
SCL - Serial Clock
This is a timing signal synchronize the data
transfer between the devices
Interface:
O E

C D S
1. INCLUDE LIBRARY

A library code provides extra functionality for sketches. It is a set


of codes that was previously written and Arduino environment
can be extended through the use of libraries. Libraries allow us to
manipulate data and work with the hardware.
•To include a library go to to SKETCH,
then select include Library
•Wire
•Liquid Crystal LCD_I2C
Wire This library allows you to communicate with I2C/TWI
devices
The LiquidCrystal_I2C library allows you to program an
Arduino to print messages to an LCD screen using an I2C
backpack
2. SETTING LCD ADDRESS AND COLUMN
AND ROWS FOR LCD WITH I2C

LiquidCrystal_I2C lcd (LCD Address, columns, row)


LCD ADDRESS
3. COMMANDS FOR THE SET –UP FUNCTION
•Liquidcrystal()
Sets the pins the arduino uses to
connect to the LCD
lcd.setCursor(0, 1);
•Set the cursor at column 0 and
row
•lcd.clear()
This function clears any text or data
displayed on the LCD.
lcd.print();

Displays the message that


we see on the first line of the
screen
•lcd.write()
Used to write a character to the
LCD.
•lcd.home()
Places the cursor in the upper left
hand corner of the screen and
prints any subsequent text from that
position
CODES USED FOR LCD

•lcd.blink()
Creates a block style cursor that
blinks on and off at approximately
500 milliseconds
CODES USED FOR LCD

•lcd.display()
Turns on any text or cursor that
have been printed to the LCD
Screen
CODES USED FOR LCD

•lcd.scrollDisplayLeft()
Takes anything printed to the LCD
and moves it to the left
Should be in the void loop with a
delay command.
CODES USED FOR LCD

•lcd.scrollDisplayRight()
Takes anything printed to the LCD
and moves it to the left
Should be in the void loop with a
delay command
CODES USED FOR LCD

•lcd.createChar ()
Allows you to create your own
custom character
CUSTOM
CHARACT ERS
LCD_I2C’s Commands
Used to communicate with I2C
devices

Allows you to program an Arduino to display to an


LCD screen using an I2C backpack

Used to declare the address of the LCD, and the


numbers of rows and columns
Used to create the character that will be
displayed on the LCD screen using binary
numbers (0 and 1).

Used to declare the name of the character.

byte variablename [ ] = {

}
https://maxpromer.github.io/LCD-
Character-Creator/
Used to initialize the lcd.

Used to turn on the backlight of the LCD.

This is used to assign the index value of the character.


CG-RAM
• Character Generated Random Access Memory
• memory in LCD that stores the custom characters
• Size is 64 bytes
• Each character occupies 8-bytes.
Sets the position (columns and
rows) of the character on the lcd
screen

This is used to print the character at the desired position. Write () is


used instead of print(). Write () writes binary data to the serial port.
This data is sent as a byte or series of bytes.
What are the applications of LCD? Where can we find
LCDs?
What are the applications of LCD? Where can we find
LCDs?
What are the applications of LCD? Where can we find
LCDs?
LCDs are commonly used for portable electronic games, as
viewfinders for digital cameras and camcorders, in video
projection systems, for electronic billboards, as monitors
for computers, and in flat-panel televisions.

You might also like