

* function: You should now see your I2C LCD2004 display "Hello,world!","IIC/I2C LCD2004" You also can see the libraries just imported have appeared on the list by Sketch->Include Library->LiquidCrystal_I2C.Ĭopy the follwing code to the Arduino IDE Click it open and then you'll be prompted by "Library added to your libraries. See the following table for connection between the I2C LCD2004 and the SunFounder Uno board:īefore you upload the code to the control board,you neeed to add the LiquidCrystal_I2C library.ġ) Download the LiquidCrystal_I2C libraryĢ) Open the Arduino IDE,Select Sketch -> Include Library -> Add ZIP Libraryģ) Find the file LiquidCrystal_I2C which you just download. Typical voltages used are +5 V or +3.3 V although systems with other voltages are permitted.įor more information about I2C operation principle, please visit I☬.Įxperimental Procedures Step 1: Connect the circuit I☬ uses only two bidirectional open-drain lines, Serial Data Line (SDA) and Serial Clock Line (SCL), pulled up with resistors. Alternatively I☬ is spelled I2C (pronounced I-two-C) or IIC (pronounced I-I-C). It is typically used for attaching lower-speed peripheral ICs to processors and microcontrollers.

Typical voltages used are +5 V or +3.3 V although systems I☬ (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). I☬ (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).

In this experiment, we will let I2C LCD2004 display 4 lines characters by programming. The blue potentiometer on the I2C LCD2004 is used to adjust backlight to make it easier to display on the I2C LCD2004. I2C bus has only two bidirectional signal lines, Serial Data Line (SDA) and Serial Clock Line (SCL). 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 is a type of serial bus invented by PHLIPS. Therefore, LCD2004 with an I2C bus is developed to solve the problem. Also it restricts other functions of the controller. When they are connected to a controller, multiple IOs will be occupied of the controller which has no so many outer ports. As we all know, though LCD and some other displays greatly enrich the man-machine interaction, they share a common weakness.
