User Manual

3/6/2018 I2C LCD2004 - Wiki
http://wiki.sunfounder.cc/index.php?title=I2C_LCD2004 1/5
ntroduction
As we all know, though LCD and some other displays greatly enrich the man-machine interaction, they share a common weakness. When they are connected to a controller,
multiple IOs will be occupied of the controller which has no so many outer ports. Also it restricts other functions of the controller. Therefore, LCD2004 with an I2C bus is
developed to solve the problem.
I2C bus is a type of serial bus invented by PHLIPS. It is a high performance serial bus which has bus ruling and high or low speed device synchronization function required by
multiple host system. I2C bus has only two bidirectional signal lines, Serial Data Line (SDA) and Serial Clock Line (SCL). The blue potentiometer on the I2C LCD2004 is used to
adjust backlight to make it easier to display on the I2C LCD2004.
Test Experiment
Components
- 1 *SunFounder Mars board
- 1 * I2C LCD2004 module
- 1 * USB cable
- Several jump wires
Experimental Principle
In this experiment, we will let I2C LCD2004 display 4 lines characters by programming.
I²C (Inter-Integrated Circuit), pronounced I-squared-C, is a multi-master, multi-slave, single-ended, serial computer bus invented by Philips Semiconductor (now NXP
Semiconductors). It is typically used for attaching lower-speed peripheral ICs to processors and microcontrollers. Alternatively I²C is spelled I2C (pronounced I-two-C) or IIC
(pronounced I-I-C).
I²C uses only two bidirectional open-drain lines, Serial Data Line (SDA) and Serial Clock Line (SCL), pulled up with resistors. Typical voltages used are +5 V or +3.3 V although
systems I²C (Inter-Integrated Circuit), pronounced I-squared-C, is a multi-master, multi-slave, single-ended, serial computer bus invented by Philips Semiconductor (now NXP
Semiconductors). It is typically used for attaching lower-speed peripheral ICs to processors and microcontrollers. Alternatively I²C is spelled I2C (pronounced I-two-C) or IIC
(pronounced I-I-C).
I²C uses only two bidirectional open-drain lines, Serial Data Line (SDA) and Serial Clock Line (SCL), pulled up with resistors. Typical voltages used are +5 V or +3.3 V although
systems with other voltages are permitted.
For more information about I2C operation principle, please visit I²C .
Experimental Procedures
Step 1: Connect the circuit
See the following table for connection between the I2C LCD2004 and the SunFounder Uno board:
I2C LCD2004 SunFounder Mars board
GND GND
VCC 5V
SDA A4 /pin 20 mega2560
SCL A5 /pin 21 mega2560
Step 2:Add library
Before you upload the code to the control board,you neeed to add the LiquidCrystal_I2C library.
1) Download the LiquidCrystal_I2C library
2) Open the Arduino IDE,Select Sketch -> Include Library -> Add ZIP Library

Summary of content (5 pages)