0% found this document useful (0 votes)
49 views

LCD Arduino - V2

The document summarizes the interface and functionality of an LCD display module that can be controlled by an Arduino board. It describes the various pins on the LCD interface like RS, Enable, data pins, and their functions. It also provides information on the LCD dimensions, initializing the LCD library, printing text to the LCD at a given position, and example code for common LCD operations. Links to documentation and tutorials for the LCD library are also included.

Uploaded by

Ismael Suarez
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views

LCD Arduino - V2

The document summarizes the interface and functionality of an LCD display module that can be controlled by an Arduino board. It describes the various pins on the LCD interface like RS, Enable, data pins, and their functions. It also provides information on the LCD dimensions, initializing the LCD library, printing text to the LCD at a given position, and example code for common LCD operations. Links to documentation and tutorials for the LCD library are also included.

Uploaded by

Ismael Suarez
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

Ing. José Roberto Jaime Carriel, MSc.

2018
 The LCDs have a parallel interface, meaning that
the microcontroller has to manipulate several
interface pins at once to control the display. The
interface consists of the following pins:
 A register select (RS) pin that controls where in
the LCD's memory you're writing data to. You
can select either the data register, which holds
what goes on the screen, or an instruction
register, which is where the LCD's controller
looks for instructions on what to do next.

 A Read/Write (R/W) pin that selects reading


mode or writing mode
 An Enable pin that enables writing to the
registers

 8 data pins (D0 -D7). The states of these pins


(high or low) are the bits that you're writing to a
register when you write, or the values you're
reading when you read.
 There's also a display constrast pin (Vo), power
supply pins (+5V and Gnd) and LED Backlight
(Bklt+ and BKlt-) pins that you can use to power
the LCD, control the display contrast, and turn
on and off the LED backlight, respectively.
 Display de 2 líneas, cada una con 16 caracteres.
Este dispositivo de visualización tiene memoria
RAM por lo que no es necesario realizar el
refrescamiento del dato.
 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
 This library allows an Arduino board to control
LiquidCrystal displays (LCDs) based on the
Hitachi HD44780 (or a compatible) chipset,
which is found on most text-based LCDs. The
library works with in either 4- or 8-bit mode
(i.e. using 4 or 8 data lines in addition to the rs,
enable, and, optionally, the rw control lines).
 Description
Initializes the interface to the LCD screen, and specifies
the dimensions (width and height) of the display. begin()
needs to be called before any other LCD library
commands.
 Syntax
lcd.begin(cols, rows)
 Parameters
lcd: a variable of type LiquidCrystal
cols: the number of columns that the display
has.
rows: the number of rows that
the display has.
 Description
Prints text to the LCD.
BASE (optional): the base in which
to print numbers: BIN for binary
 Syntax (base 2), DEC for decimal (base
10), OCT for octal (base 8), HEX
lcd.print(data) for hexadecimal (base 16).
lcd.print(data, BASE)

 Parameters
lcd: a variable of type LiquidCrystal
data: the data to print (char, byte, int, long, or
string)
 Description
Position the LCD cursor; that is, set the location
at which subsequent text written to the LCD will
be displayed.
 Syntax
lcd.setCursor(col, row)
 Parameters
lcd: a variable of type LiquidCrystal.
col: the column at which to position the cursor
(with 0 being the first column).
row: the row at which to position the cursor
(with 0 being the first row)
 Fotografía de un LCD 2x16 con controlador
 Hitachi 44780 y Backlight en color amarillo.
 https://www.arduino.cc/en/Reference/LiquidCry
stalBegin
 https://www.arduino.cc/en/Reference/LiquidCry
stalSetCursor
 https://www.arduino.cc/en/Reference/LiquidCry
stalPrint
 https://www.arduino.cc/en/Tutorial/HelloWorld
 https://programmingelectronics.com/liquidcryst
al-library-functions-tour-part-1/

You might also like