Lcd2004-Character Lcd Display Module, A New High-Quality 4 Line 20 Character Lcd Module Not Only Set The Contrast Control Knob Selector Switch Also Has A Backlight And Iic Communication Interface. For Arduino beginners, not for the cumbersome and complex LCD driver circuit connection and a headache, the real significance of this LCD module will simplify the circuit, this module directly into the Arduino Sensor Shield V5.0 sensor expansion board IIC device interface can, GM 4P sensor connection cable, programmed through the Arduino controller, you can easily identify the slogan, sensor data records
Specification:
Interface: I2C
I2C Address: 0x27
Pin Definition : GND、VCC、SDA、SCL
Back lit (Blue with White char color)
Supply voltage: 5V
Size : 60mm×99mm
Contrast Adjust : Potentiometer
Backlight Adjust : Jumper
Arduino Test Code:
#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();
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("b2cqshop");
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+(val0)/10,BYTE);
lcd.print('.');
lcd.print(0x30+val,BYTE);
delay(100);
}
Package includes:
1 x New Blue IIC I2C TWI 2004 20x4 Serial LCD Module Display Arduino compatible