0% found this document useful (0 votes)
163 views10 pages

LCD Pinout and Arduino Setup Guide

The document describes the pins on an LCD screen and how they connect and interact with an Arduino board. It lists the pin numbers, names, and descriptions. It then discusses features of a 16x2 LCD like operating voltage, current consumption, alphanumeric display capabilities, and backlight options. Finally, it provides an overview of some common LCD display functions in the LiquidCrystal library like initializing the LCD, clearing the display, and printing text.

Uploaded by

Mikaela Mosquera
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)
163 views10 pages

LCD Pinout and Arduino Setup Guide

The document describes the pins on an LCD screen and how they connect and interact with an Arduino board. It lists the pin numbers, names, and descriptions. It then discusses features of a 16x2 LCD like operating voltage, current consumption, alphanumeric display capabilities, and backlight options. Finally, it provides an overview of some common LCD display functions in the LiquidCrystal library like initializing the LCD, clearing the display, and printing text.

Uploaded by

Mikaela Mosquera
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

THE PINS ON THE LCD

PINS ON THE LCD


Pin No: Pin Name: Description
1 Vss (Ground) Ground pin connected to system ground
2 Vdd (+5 Volt) Powers the LCD with +5V (4.7V – 5.3V)
Decides the contrast level of display. Grounded to get maximum
3 VE (Contrast V)
contrast.

4 Register Select Connected to Microcontroller to shift between command/data register

5 Read/Write Used to read or write data. Normally grounded to write data to LCD

Connected to Microcontroller Pin and toggled between 1 and 0 for data


6 Enable
acknowledgement
Pin No: Pin Name: Description
7 Data Pin 0
8 Data Pin 1
Data pins 0 to 7 forms a 8-bit data line. They can be connected to
9 Data Pin 2 Microcontroller to send 8-bit data.
10 Data Pin 3 These LCD’s can also operate on 4-bit mode in such case Data pin
11 Data Pin 4 4,5,6 and 7 will be left free.
12 Data Pin 5
13 Data Pin 6
14 Data Pin 7
15 LED Positive Backlight LED pin positive terminal
16 LED Negative Backlight LED pin negative terminal
FEATURES OF 16×2 LCD MODULE
 Operating Voltage is 4.7V to 5.3V
 Current consumption is 1mA without backlight
 Alphanumeric LCD display module, meaning can display alphabets and
numbers
 Consists of two rows and each row can print 16 characters.
 Each character is build by a 5×8 pixel box
 Can work on both 8-bit and 4-bit mode
 It can also display any custom generated characters
 Available in Green and Blue Backlight
LCD DISPLAY OPTIONS

 There are 19 different functions in the


LiquidCrystal library available for us to use.
 These functions do things like change the position
of the text, move text across the screen, or make
the display turn on or off.
LiquidCrystal()
 The LiquidCrystal() function sets the pins the Arduino uses to connect to the LCD.
 You can use any of the Arduino’s digital pins to control the LCD.
 Just put the Arduino pin numbers inside the parentheses in this order:
 LiquidCrystal(RS, E, D4, D5, D6, D7)

 RS, E, D4, D5, D6, D7 are the LCD pins.


 For example, say you want LCD pin D7 to connect to Arduino pin 12. Just put “12” in
place of D7 in the function like this:
 LiquidCrystal(RS, E, D4, D5, D6, 12)

 This function needs to be placed before the void setup() section of the program.
lcd.begin()

 This function sets the dimensions of the LCD.


 It needs to be placed before any other LiquidCrystal function in
the void setup() section of the program.
 The number of rows and columns are specified
as lcd.begin(columns, rows).
 For a 16×2 LCD, you would use lcd.begin(16, 2), and for a 20×4 LCD you
would use lcd.begin(20, 4).
lcd.clear()

 This function clears any text or data


already displayed on the LCD.
 If you
use lcd.clear() with lcd.print() an
d the delay() function in the void
loop() section, you can make a
simple blinking text program:
ACTIVITY 2:

 Using the Tinkercad.com, Create


an Arduino and LCD circuit.
 Program it that will display your
name in a blinking manner.
Sample video below.
 In the classwork, submit a video
of your output along with the
code that you programmed.

You might also like