dissabte, 11 d’abril del 2015

Serial I2C 1602 16×2 Character LCD Module


This is another great blue/yellow backlight LCD display. As the pin resources of Arduino controller is limited, your project may be not able to use normal LCD shield after connected with a certain quantity of sensors or SD card. However, with this I2C interface LCD module, you will be able to realize data display via only 2 wires. If you already has I2C devices in your project, this LCD module actually cost no more resources at all. It is fantastic for Arduino based project.
Interface: I2C
  • I2C Address: 0x27
  • Pin Definition: VCC、GND、SDA、SCL
  • Back lit (Green with white char color)
  • Supply voltage: 5V
  • Size: 27.7mm×42.6mm
  • Contrast Adjust: Through Potentiometer
  • Only employ two I/O interface

Spinnig the potentimeter clockwise is to increase contrast ,spinning unclockwise is to decrease it.

Arduino 1602 I2C library only Arduino IDE 023.
Arduino 1602 I2C library for Arduino IDE 1.0.
We need move the folder to /usr/share/arduino/libraries/.

We can use this script.

EXAMPLE 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(); // initialize the lcd
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(0, 0);
lcd.print("Hello, world!");
lcd.setCursor(3, 1);
lcd.print("By: fmesas");
}
void loop()
{
}

Cap comentari :

Publica un comentari a l'entrada