Product |
Arduino Shield
| IIC/I2C LCD-1602 Shield -Arduino Compatible
Arduino IIC/I2C LCD-1602 Shield
.jpg)
This is another great LCD display. With the limited pin resources, your project may be out of resources using normal LCD shield. With this I2C interface LCD module, you only need 2 lines (I2C) to display the information. If you already has I2C devices in your project, this LCD module actually cost no more resources at all. Fantastic for Arduino based project.

Specification :
1、Interface: I2C
2、I2C Address: 0x27
3、Pin Definition : GND、VCC、SDA、SCL
3、Back lit (Blue with white char color)
4、Supply voltage: 5V
5、Size : 27.7mm×42.6mm
6、Contrast Adjust : Through Potentiometer
7、Backlight Adjust : Through Potentiometer
It can be easily connected with Arduino through sensor extended shield and special sensor cable.
Contrast Adjust :
.jpg)
The contrast can be adjusted by the potential-meter displayed in the following picture.
Please refer the official library : http://arduino.cc/en/Reference/LiquidCrystal
Library Support Functions :
1) LiquidCrystal()
2) begin()
3) clear()
4) home()
5) setCursor()
6) write()
7) print()
8) cursor()
9) noCursor()
10) blink()
11) noBlink()
12) display()
13) noDisplay()
14) scrollDisplayLeft()
15) scrollDisplayRight()
16) autoscroll()
17) noAutoscroll()
18) leftToRight()
19) rightToLeft()
20) createChar()
Test Code - 1 :
///Arduino Sample Code
///Last modified on 17th September 2010
#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.setCursor(0, 1);
lcd.print("Hello, world!");
}
void loop()
{
// when characters arrive over the serial port...
if (Serial.available()) {
// wait a bit for the entire message to arrive
delay(100);
// clear the screen
lcd.clear();
// read all the available characters
while (Serial.available() > 0) {
// display each character to the LCD
lcd.write(Serial.read());
}
}
}
Test Code - 2 :
#i nclude <Wire.h>
#i nclude <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()
{
}
Test Result :
Please refer the official library : http://arduino.cc/en/Reference/LiquidCrystal
Library Support Functions :
1) LiquidCrystal()
2) begin()
3) clear()
4) home()
5) setCursor()
6) write()
7) print()
8) cursor()
9) noCursor()
10) blink()
11) noBlink()
12) display()
13) noDisplay()
14) scrollDisplayLeft()
15) scrollDisplayRight()
16) autoscroll()
17) noAutoscroll()
18) leftToRight()
19) rightToLeft()
20) createChar()
Test Code - 1 :
///Arduino Sample Code
///Last modified on 17th September 2010
#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.setCursor(0, 1);
lcd.print("Hello, world!");
}
void loop()
{
// when characters arrive over the serial port...
if (Serial.available()) {
// wait a bit for the entire message to arrive
delay(100);
// clear the screen
lcd.clear();
// read all the available characters
while (Serial.available() > 0) {
// display each character to the LCD
lcd.write(Serial.read());
}
}
}
Test Code - 2 :
#i nclude <Wire.h>
#i nclude <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()
{
}
Test Result :
.jpg)
Refer Sample Code (this code is used to display the voltage through 0 analog interface of Arduino) :
#include
#include
LiquidCrystal_I2C lcd(0x27,16,2); //set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("www.emartee.com");
lcd.setCursor(0, 1);
lcd.print("Voltage: ");
lcd.setCursor(13, 1);
lcd.print("V");
}
void loop()
{
int val;
float temp;
val=analogRead(0);
temp=val/4.092;
val=(int)temp;//
lcd.setCursor(9, 1);
lcd.print(0x30+val/100,BYTE);
lcd.print(0x30+(val%100)/10,BYTE);
lcd.print('.');
lcd.print(0x30+val%10,BYTE);
delay(100);
}
Click to download the LiquidCrystal_I2C Library_1
Click to download the LiquidCrystal_I2C Library_2
Click to download the LCD datasheet
Categories
Newsletter
Join our newsletter today, to get latest product information and promotion code.








