I2C bus converter and related libraries, you can easily use this module with just 2 wires.
Specification
- LCD Display Mode: STN, Positive, Transflective
- Display Color: Blue
- Driving Method : 1/16 duty, 1/5 bias
- Control Method: I2C
- Viewing Angle: 6H
Reference
Note: Set the LCD address to 0x27 or 0x20 or 0x3F
Make sure to adjust back light for best clarity (see below on procedure)
Connect the I2C LCD1602 to the I2C port of Arduino(SDAA4 and SCLA5) and power this module with 5V voltage as shown below.
Backlight control and Contrast control
The Backlight can be controlled by the firmware or the on-board jumper:
1. Firmware:
lcd.backlight();// light on the backlight; lcd.noBacklight();//light off the backligth;
2. Hardware:
There is a jumper on the board, if you take away this jumper , the backlight will always be off:
NOTE: You can control the LCD contrast by adjust the on-board potentiometer.
- Tutorial HERE
Note: Set the LCD address to 0x27
Sample code: Github
Basic Sample Code
//Compatible with the Arduino IDE 1.0 and above
//Library version:1.1
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
// set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.print("Hello, world!");
}
void loop()
{
}