Ks0062 keyestudio I2C LCD2004 Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 52: Line 52:
Note: To ensure that this module will work properly, these two head files, namely Wire and LiquidCrystal_I2C, must be added into our library before code test.<br>
Note: To ensure that this module will work properly, these two head files, namely Wire and LiquidCrystal_I2C, must be added into our library before code test.<br>


==Video==
 
==Resources ==
 
'''Video'''
 
http://www.keyestudio.com/wp/2016/05/ks0062-keyestudio-2004-i2c-lcd-module/
http://www.keyestudio.com/wp/2016/05/ks0062-keyestudio-2004-i2c-lcd-module/


'''Datasheet'''
http://www.keyestudio.com/files/index/download/id/1463716188/
==Buy from ==
http://www.keyestudio.com/keyestudio-i2c-lcd2004-module-for-arduino.html
https://www.amazon.com/Keyestudio-Display-Module-Arduino-raspberry/dp/B01799UUGS/ref=sr_1_1?ie=UTF8&qid=1487126785&sr=8-1&keywords=keyestudio+I2C+LCD2004+Module
[[category:Module]]
[[category:Module]]

Revision as of 10:49, 15 February 2017

I2C LCD2004 Module


thumb

Introduction

keyestudio 2004 I2C Module is a 20 character by 2 line LCD display with Blue background and White backlight. The original 2004 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

  • Interface: I2C
  • I2C address: 0x27
  • Operating voltage: +5V
  • Size: 27.7mm×42.6mm
  • Contrast control: through potentiometer


Connection Diagram

This module carries I2C interface, so we need to comply with I2C protocol in usage and corresponding head files must be included and added into the library.

Below is the connection diagram between this module and Arduino controller:

thumb

Sample Code

//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h> 
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,20,4);  // 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("Hello,keyestudio!");
   lcd.setCursor(0,2);
  lcd.print("Arduino LCM IIC 2004");
   lcd.setCursor(2,3);
  lcd.print("Power By Ec-yuan!");
}
void loop()
{
}

Note: To ensure that this module will work properly, these two head files, namely Wire and LiquidCrystal_I2C, must be added into our library before code test.


Resources

Video

http://www.keyestudio.com/wp/2016/05/ks0062-keyestudio-2004-i2c-lcd-module/

Datasheet

http://www.keyestudio.com/files/index/download/id/1463716188/

Buy from

http://www.keyestudio.com/keyestudio-i2c-lcd2004-module-for-arduino.html

https://www.amazon.com/Keyestudio-Display-Module-Arduino-raspberry/dp/B01799UUGS/ref=sr_1_1?ie=UTF8&qid=1487126785&sr=8-1&keywords=keyestudio+I2C+LCD2004+Module