What are they and what are they for?
Allows communication with alphanumerical liquid crystal displays (LCDs). This library allows an Arduino/Genuino board to control LiquidCrystal displays (LCDs) based on the Hitachi HD44780 (or a compatible) chipset, which is found on most text-based LCDs.
First we have to download The LiquidCrystal_I2C.h library (zip file) from student central.
Next, put the file, LiquidCrystal_I2C.zip in
My Documents/Arduino/Libraries.
Warning! The browser or Student Central will probably have renamed the file to something like LiquidCrystal_I2C(2).zip
You will have to manually undo the corruption by removing the (2) from the name.
Open the Arduino environment.
Select Sketch/Include Library/Add.ZIP Library.
Browse to
My Documents/ Arduino/ libraries and select the renamed ZIP file
Connect the display
Use the supplied cable to connect: -Display to Arduino
- Black Gnd to Gnd
- Red +5V to Vcc
- Blue SDA to A4
- Yellow SCL to A5
Display some text
Download an example sketch.
Create a directory in My Documents/Arduino/ named LCD_2020
Download the LCD example sketch from Student Central /XE404/Study Materials/Week 11-Arduino Libraries Arduino Displays/ LCD_2020.ino
And place it in: My Documents/Arduino/LCD_2020
Warning the browser will probably corrupt the file name again. You will have to remove the (2) from the name.
Open the Arduino IDE and select the correct COM port
Upload the sketch to your Arduino.
Find the section of the sketch that prints to the screen.
Edit the sketch to display your own message.
You will probably have to adjust the contrast of the screen using the blue trimming tool.