Product | Arduino Shield | IIC/I2C LCD-1602 Shield -Arduino Compatible
IIC/I2C LCD-1602 Shield -Arduino Compatible
IIC/I2C LCD-1602 Shield -Arduino Compatible
42051
 
US$21.98 Loading ...
 
Share/Save/Bookmark


Arduino IIC/I2C LCD-1602 Shield

LCD screen is a character 1602 which is often used in the production of electronics and of course it's a simulation.It can be used to display two rows of characters, and each row is 16 characters.

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
 

However, to control such a common module is not so easy. First of all, we must occupy the corresponding Arduino pin according to its 4 lines work mode or 8 lines work mode, but this actually occupied more digital I/O pin, especially 8 lines connection mode. Second,although there are corresponding libraries to support,but you should pass the debug,and run on Arduino successfully, at the same time it can meet a lot of problems. Finally, the code to control LCD need take up corresponding memory space, which is difficult for 16K memory space of Arduino.

It can be easily connected with Arduino through sensor extended shield and special sensor cable.
 

Contrast Adjust :
 


 
 
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 :
 




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






下载pdf文档资料.pdf

Write a review
*Review title
Please enter subject.
*Your review
Please enter review.
*Rating
(Click star icon to comment)
 
Display name
Loading ...

Best Sellers
Newsletter

Join our newsletter today, to get latest product information and promotion code.

Join
Loading ...