0% found this document useful (0 votes)
41 views3 pages

Lab Activity 7 LCD

This document provides instructions on how to interface a 2x16 LCD display to an Arduino board in 4-bit mode. It describes the LCD interface and includes a circuit diagram, programming instructions to display text and increment a counter, and supplemental activity ideas like a digital clock and voltmeter program.

Uploaded by

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

Lab Activity 7 LCD

This document provides instructions on how to interface a 2x16 LCD display to an Arduino board in 4-bit mode. It describes the LCD interface and includes a circuit diagram, programming instructions to display text and increment a counter, and supplemental activity ideas like a digital clock and voltmeter program.

Uploaded by

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

CPET11L-M - Microprocessor and Microcontroller Systems, Lab

Experiment Number 7

LCD Interfacing
Objectives:
To learn how to interface a 2x16 LCD in 4-bit mode to
the Arduino board.
Theory:
 The LCDs have a parallel interface, meaning that the
microcontroller has to manipulate several interface pins
at once to control the display.

 The Hitachi-compatible LCDs can be controlled in two


modes: 4-bit or 8-bit. The 4-bit mode requires seven I/O
pins from the Arduino, while the 8-bit mode requires 11
pins. For displaying text on the screen, you can do
almost everything in 4-bit mode.
Instructions:
Instructions:
(lcd.begin,lcd.print,lcd.setCursor, lcd.clear, lcd.autoscroll, lcd.blink,
lcd.scroll). See the IDE examples.

Equipment:
 Arduino Board
 LCD Screen (compatible with Hitachi HD44780 driver)
 10k Potentiometer
 breadboard

Procedure:
1. Connect the circuit of Fig.1 with the following details:
To wire your LCD screen to your
Arduino, connect the following pins:
LCD RS pin to digital pin 12

Page 1 of 3
Prepared by: Jonel R Macalisang
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
Additionally, wire a 10K pot to +5V and GND, with it's
wiper (output) to LCD screens VO pin (pin3).
LCD LED+ to +5V and LCD LED- to GND.

2. Write a program to:


 Display the phrase "Arduino Lab" on the
upper row of the LCD and make it blink
every 1 second.
 Display a counter that starts at 0 and increments every
1 second.

Discussion:
Results and Discussion of Method of Exercises (Individual)
(Screenshot, Code and Discussion, follow the guidelines below.)

Include relevant schematic diagrams, charts, visualizations, code snippets, and


program outputs for each required problem or task. Please provide insights,
commentaries, or explanations regarding the data. If an explanation requires the support
of literature such as academic journals, books, magazines, reports, or web articles
please cite and reference them using the IEEE format.
Please take note of the styles on the style ribbon as these would serve as the style
format of this laboratory report. The body style is Times New Roman size 12, line
spacing: 1.5. Body text should be in Justified alignment, while captions should be center-
aligned. Images should be readable and include captions. Please refer to the sample
below:

Page 2 of 3
Prepared by: Jonel R Macalisang
If an image is taken from another literature or intellectual property, please cite
them accordingly in the caption. Always keep in mind the Honor Code [1] of our course
to prevent failure due to academic dishonesty.

Supplemental Activities (By Group)


Write a program that do the ff:

1.Design and write a program to display a digital clock on the LCD.


2.Design and write a program for a 0 to +5V simple
voltmeter using the Arduino card with an LCD.

 Your program in tinkercad.


 Flowchart
 Block Diagram
 Schematic Diagram
 Discussion of the Supplementary activities.

Page 3 of 3
Prepared by: Jonel R Macalisang

You might also like