Laboratory Exercise 9 - Displaying Characters and Texts in LCD
Laboratory Exercise 9 - Displaying Characters and Texts in LCD
Laboratory Exercise 9 - Displaying Characters and Texts in LCD
Texts in LCD
Keen Cabalse
Bachelor of Science in Mechanical Engineering
Visayas State University
Baybay City, Philippines
[email protected]
Abstract—This laboratory exercise deals with basic of LCD electronic device will not be explored in this
electronics devices and Arduino hardware and software to laboratory exercise.
create a circuit. This in particular deals with the LCD 1602
electronics device. The LCD 1602 will be utilized to display text
written in the Arduino code. Also, the LCD will be used as a
monitoring screen to monitor the output data displayed of other III. METHODOLOGY
electronic device such as sensors. A. Materials
Keywords—LCD 1602, Arduino, display, monitor, basic The following are materials need for the laboratory
electronics exercise.
• 1 – Arduino UNO R3
I. INTRODUCTION
This laboratory exercise will deal with simple and basic • 1 – USB Cable (USB-A to USB-B)
electronics. Electronics by definition is a branch of physics • 1 – LCD Module 2x16 Character
and electrical engineering revolving on electrical applications
on / with electronic devices [1]. The specific electronics • 1 – Potentiometer 10k-ohm
device explored in this laboratory exercise is the LCD • 1 – 220-ohm or 330-ohm Resistor
Module.
• 1 – Breadboard
An LCD or Liquid-Crystal Display is an electronic panel
that uses blacklight to produce image [2]. It is an electronic • Connecting Wires
device that has myriad of applications that is noticeable in the • Computer with Arduino software
current society. From phones to billboards. This electronic
device is useful for displaying outputs or text such messages. .
The application of LCD and Arduino hardware and B. Circuit Diagram
software allows user to utilize the LCD as a monitoring screen This schematic diagram of the light sensor circuit is made
for outputs of other electronic device such as temperature using Fritzing.
sensors and others of the same sort.
II. OBJECTIVES
A. Objectives
This laboratory exercise aims to create a fully functioning
LCD monitoring circuit, and the application of Arduino
Programming to be able to display characters on the LCD
module screen.
This laboratory exercise specifically aims to a) show
output values or text in the LCD screen; b) integrate sensors
into the circuit and display output values; c) apply knowledge
of Arduino programming to create appropriate Arduino code.
delay(50);
LiquidCrystal_I2C lcd(0x27, 16, 2);
}
int temperaturesensorPin = 0 // set pin for the
temperature sensor;
void setup()
{
lcd.begin();
void loop()
{ // set the cursor to column 0, line 1(note: line 1 is
the second row, // since counting begins with 0):
int tempReading =
analogRead(temperaturesensorPin);