Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
16 views6 pages

Exp 5

The document outlines an experiment for interfacing Arduino Uno with LCD displays and a DHT22 sensor to display multiline text and real-time humidity and temperature values. It includes prerequisites, expected outcomes, theoretical background on components, and detailed procedures for three tasks involving LCD1602, LCD2004, and DHT22 sensor. Additionally, it contains a section for students to complete and provide their code and results.
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)
16 views6 pages

Exp 5

The document outlines an experiment for interfacing Arduino Uno with LCD displays and a DHT22 sensor to display multiline text and real-time humidity and temperature values. It includes prerequisites, expected outcomes, theoretical background on components, and detailed procedures for three tasks involving LCD1602, LCD2004, and DHT22 sensor. Additionally, it contains a section for students to complete and provide their code and results.
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/ 6

LAB Manual

PART A
(PART A : TO BE REFFERED BY STUDENTS)

Experiment No.05
A.1 Aim:

To interface Arduino Uno with various LCD displays and a DHT22 sensor for printing
multiline text and displaying real-time humidity and temperature values.

A.2 Prerequisite:

Basic understanding of Arduino IDE, microcontroller architecture, and LCD interfacing


concepts.

A.3 Outcome:

After successful completion of this experiment, students will be able to:

1. Interface an LCD1602 (16x2) with Arduino Uno and print multiline text with and
without scrolling.
2. Interface an LCD2004 (I2C 20x4) with Arduino Uno and print multiline text with and
without scrolling.
3. Interface an LCD2004 and a DHT22 sensor with Arduino Uno to display real-time
humidity and temperature values.

A.4 Theory:

Arduino Uno is an open-source microcontroller board based on the ATmega328P, widely


used for developing embedded systems. It offers 14 digital input/output pins, 6 analog inputs,
and various communication interfaces.

LCD1602 (16x2 Display): This is a Liquid Crystal Display module with 16 columns and 2
rows for displaying alphanumeric characters. It requires several digital pins from Arduino for
communication. It is commonly used in embedded projects to display information like sensor
readings, messages, or menus.

LCD2004 (I2C 20x4 Display): This is a 20-column and 4-row LCD module that uses the
I2C communication protocol, which allows interfacing with Arduino using only two pins
(SDA and SCL). It provides more display space than the 16x2 model and simplifies wiring
due to the I2C interface.

DHT22 Sensor: The DHT22 is a digital sensor used to measure temperature and humidity. It
sends data to Arduino in digital format, which can then be processed and displayed on an
LCD.
A.5 Experiment Procedure:

Task 1: Interface LCD1602 (16x2) with Arduino and Print Multiline Text

 Connect the LCD1602 to the Arduino Uno using digital pins.


 Write a program to initialize the LCD and print two lines of text (one on each row).
 Modify the program to implement text scrolling for longer messages.
 Test the circuit by observing the text displayed on the LCD.

Task 2: Interface LCD2004 (I2C 20x4) with Arduino and Print Multiline Text

 Connect the LCD2004 (I2C) to the Arduino Uno using the SDA and SCL pins.
 Write a program to initialize the I2C LCD and print four lines of text (one per row).
 Modify the program to implement text scrolling for long messages.
 Test the circuit by observing the text on the LCD and scrolling behavior.

Task 3: Interface LCD2004 and DHT22 Sensor with Arduino and Display Humidity
and Temperature

 Connect the DHT22 sensor to a digital pin on Arduino Uno.


 Connect the LCD2004 (I2C) to the SDA and SCL pins of Arduino.
 Write a program to read humidity and temperature data from the DHT22 sensor and
display it on the LCD.
 Test the circuit by observing real-time temperature and humidity values on the LCD
display.
PART B
(PART B : TO BE COMPLETED BY STUDENTS)

Roll. No. 23 Name: Priyanshi Jain


Class BTech CE Batch:
Date of Experiment: 11/09/24 Date of Submission: 16/09/24
Grade:

B.1 Complete the following tasks and provide the codes (screenshots):

Task 1: Interface LCD1602 (16x2) with Arduino and Print Multiline Text

 Write a program to initialize the LCD and print two lines of text (one on each row).
 Modify the program to implement text scrolling for longer messages.

Task 2: Interface LCD2004 (I2C 20x4) with Arduino and Print Multiline Text

 Write a program to initialize the I2C LCD and print four lines of text (one per row).
 Modify the program to implement text scrolling for long messages.
Task 3: Interface LCD2004 and DHT22 Sensor with Arduino and Display Humidity
and Temperature

 Write a program to read humidity and temperature data from the DHT22 sensor and
display it on the LCD.
***

You might also like