Lab 04
Lab 04
Lab 4: Interfacing of different types of LCD Screens with Arduino, with and without I2C..................3
Abstract:...................................................................................................................................................3
Objectives:...............................................................................................................................................3
Theory:.....................................................................................................................................................3
LCD:....................................................................................................................................................3
How LCDs are Constructed?..........................................................................................................3
How LCDs Work?..........................................................................................................................4
Different Types of LCD:.................................................................................................................5
I2C module:..........................................................................................................................................5
What are the two I2C wires?...........................................................................................................5
I2C module illustration:...................................................................................................................5
Lab Tasks:................................................................................................................................................6
Task 01: Interfacing LCD with Arduino without I2C module, use Potentiometer in circuit..............6
Circuit:............................................................................................................................................6
Lab Work:.......................................................................................................................................7
Appendix:........................................................................................................................................8
Task 02: Display Temperature Sensor value on LCD Screen also use Potentiometer in the circuit. .8
Circuit:............................................................................................................................................8
Appendix:........................................................................................................................................9
Task 03: Interfacing LCD with Arduino with 12C module, print your name and registration
number or anything of your choice...................................................................................................10
Circuit:..........................................................................................................................................10
Appendix:......................................................................................................................................11
Task 04: Repeat task 2 with 12C module..........................................................................................11
Circuit:..........................................................................................................................................11
Lab Work:.....................................................................................................................................12
Appendix:......................................................................................................................................13
Task 05: Control the delay of LED blinking with analogue value of Potentiometer........................13
Circuit:..........................................................................................................................................13
Appendix:......................................................................................................................................14
Reference:..............................................................................................................................................15
1
Lab 4: Interfacing of different types of LCD Screens
with Arduino, with and without I2C
Abstract:
In this lab we will study about LCD and its interfacing with Arduino by writing proper
program and by doing proper hardware assembly. We will prove the results by printing some
message on LCD screen.
Objectives:
To learn interfacing of LCD screen with Arduino.
To learn interfacing of LCD screen with I2C.
Theory:
LCD:
Stands for “Liquid Crystal Display.” LCD is a flat panel display technology commonly used
in TVs and computer monitors. It is also used in screens for mobile devices, such as laptops,
tablets, and smartphones.
I2C module:
The I2C or IIC stands for “Inter-Integrated Circuit” is a serial computer bus invented by
Philips semiconductors, today known as NXP semiconductors. This bus system was invented
in 1982.
2
Lab Tasks:
Task 01: Interfacing LCD with Arduino without I2C module, use
Potentiometer in circuit.
Circuit:
Follow the Circuit Schematics and make the connections with the help of hook up wires.
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
LCD R/W pin to ground
ends to +5V and ground via 5k potentiometer
Potentiometer to LCD VO pin (pin 3)
3
Figure 4.7: Task 1 Lab Work
Task 02: Display Temperature Sensor value on LCD Screen also use
Potentiometer in the circuit
Circuit:
Lab Work:
4
Figure 4.10: Task 2 Output
Task 03: Interfacing LCD with Arduino with 12C module, print your name
and registration number or anything of your choice.
Circuit:
Circuit: