Ks0061 keyestudio 1602 I2C Module

From Keyestudio Wiki
Revision as of 15:57, 6 October 2016 by Keyestudio (talk | contribs)
Jump to navigation Jump to search

Keyestudio 1602 I2C Module


thumb

Introduction

keyestudio 1602 I2C module is a 16 character by 2 line LCD display with Blue background and White backlight. The original 1602 LCD needs 7 IO ports to be up and running, ours is built with Arduino IIC/I2C interface, saving you 5 IO ports. This LCD is ready-to-use because it is compatible with the Arduino Liquid Crystal Library.


Specification

  • I2C Address:0x27
  • Back lit (Blue with white char color)
  • Supply voltage: 5V
  • Interface:I2C/TWI x1,Gadgeteer interface x2
  • Adjustable contrast
  • Size:82x35x18 mm


Connection Diagram

I602 is equipped with 4 pins in total. SCL should be connected to analog 5, SDA to analog 4, VCC to +5V and GND to ground. Below is connection diagram for your reference:

thumb

Sample Code

//Compatible with the Arduino IDE 1.0
//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
lcd.init();
// Print a message to the LCD.
lcd.backlight();
lcd.setCursor(3,0);
lcd.print("Hello, world!");
lcd.setCursor(2,1);
lcd.print("keyestudio!");
}
void loop()
{
}

Video

http://www.keyestudio.com/wp/2016/05/ks0061-keyestudio-1602-i2c-lcd-module/