Ks0137 keyestudio EASY plug 1602 I2C Module: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==EASY plug 1602 I2C Module==
[[image:ks0137图.jpg|thumb|600px|right|Keyestudio EASY plug 1602 LCD Module]]
<br>[[File:ks0137-1.png|500px|frameless|thumb]]<br>
 


==Introduction==
==Introduction==
EASY plug 1602 I2C module is a 16 character by 2 line LCD display with blue background and white backlight. This LCD is ready-to-use because it is compatible with the Arduino Liquid Crystal Library. The original 1602 LCD needs 7 IO ports to be up and running, this easy plug design makes the wire connection easier than ever.<br>
This is a basic 16 character by 2 line LCD display with white text on blue background. On the back comes with a potentiometer to adjust the screen contrast. You can use only one line for simple connection.<br>
Note: this module needs to be used together with EASY plug control board.<br>




==Specification==
==Specification==
* Interface: Easy plug
* Connector: Easy plug
* Compatible with Arduino LiquidCrystal Library
* White text on blue background
* 16 characters wide, 2 rows
* I2C Address: 0x27
* I2C Address: 0x27
* Back lit (Blue with white char color)
* Back Light: Blue  
* Supply voltage: 5V
* Text Color: White
* Adjustable contrast
* Supply Voltage: 5V
* Size: 98*36mm
* Adjusting contrast by a potentiometer
* Weight: 30g
 
 
==Technical Details==
* Dimensions: 99mm*37mm*21mm
* Weight: 37.4g




==Connection Diagram ==
==Connect It Up ==
<br>[[File:ks0137-2.png|500px|frameless|thumb]]<br>
Connect the EASY Plug 1602 LCD to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
<br>[[File:ks0137.jpg|500px|frameless|thumb]]<br>


==Sample Code==
==Upload the Code==
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload.
<pre>
<pre>
//YWROBOT
//Compatible with the Arduino IDE 1.0
//Compatible with the Arduino IDE 1.0
//Library version:1.1
//Library version:1.1
#include <Wire.h>    // Place file “Wire.h” under the directory “library” of Arduino
#include<Wire.h>    // Place file “Wire.h” under the directory “library” of Arduino
#include <LiquidCrystal_I2C.h>  // Place file “LiquidCrystal_I2C.h” under the directory “library” of Arduino
#include<LiquidCrystal_I2C.h>  // Place “LiquidCrystal_I2C.h” under the directory “library” of Arduino
LiquidCrystal_I2C lcd(0x27,16,2); // set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27,16,2);// set the LCD address to 0x27 for a 16 chars and 2 line display
void setup()
void setup()
{
{
  lcd.init();                     // initialize the lcd
lcd.init();// initialize the LCD
  lcd.init();
lcd.init();// Print a message to the LCD.
  // Print a message to the LCD.
lcd.backlight();
  lcd.backlight();
lcd.setCursor(2,0);
  lcd.setCursor(2,0);
lcd.print("Hello, world!");
  lcd.print("Hello, world!");
lcd.setCursor(2,1);
  lcd.setCursor(2,1);
lcd.print("keyestudio!");
  lcd.print("Hello, keyes!");
}
}
void loop()
void loop()
Line 45: Line 51:




== Result Show ==
<span style="color: red">'''Code to Note: ''' </span>
<br>[[File:Ks0137 (1).jpg|500px|frameless|thumb]]<br>
Before compile the code, do remember to put the libraries needed inside the libraries folder of Arduino IDE directory.
Download all the libraries:
https://drive.google.com/open?id=105RNjo0aDBthorceoKgqaJ251D3tbWlc
 
 
==What You Should See==
Initially, you should see the words “hello, word!” and “keyestudio!” pop up on your LCD.
Remember you can adjust the contrast using the potentiometer on the module back if you can’t make out the words clearly.
<br>[[File:ks0137 Result.jpg|500px|frameless|thumb]]<br>
 


==Resources ==
==Resources ==
'''PDF'''
'''PDF'''
https://drive.google.com/open?id=1enfntBGnTz0E5fV7bDyo1V0rx-UG9aHS
https://drive.google.com/open?id=1enfntBGnTz0E5fV7bDyo1V0rx-UG9aHS


'''Libraries'''
'''Libraries'''
https://drive.google.com/open?id=1GDXef8N40WOFa0TEa0d8Xvia1cVM2Fuo


https://drive.google.com/open?id=1GDXef8N40WOFa0TEa0d8Xvia1cVM2Fuo


==Buy from ==
==Buy from ==
'''Official Website'''
'''Official Website'''
http://www.keyestudio.com/keyestudio-easy-plug-iic-i2c-1602-lcd-module-for-arduino.html


http://www.keyestudio.com/keyestudio-easy-plug-iic-i2c-1602-lcd-module-for-arduino.html


[[category:EASY Plug]]
[[category:EASY Plug]]

Revision as of 13:15, 16 November 2018

Keyestudio EASY plug 1602 LCD Module


Introduction

This is a basic 16 character by 2 line LCD display with white text on blue background. On the back comes with a potentiometer to adjust the screen contrast. You can use only one line for simple connection.


Specification

  • Connector: Easy plug
  • Compatible with Arduino LiquidCrystal Library
  • White text on blue background
  • 16 characters wide, 2 rows
  • I2C Address: 0x27
  • Back Light: Blue
  • Text Color: White
  • Supply Voltage: 5V
  • Adjusting contrast by a potentiometer


Technical Details

  • Dimensions: 99mm*37mm*21mm
  • Weight: 37.4g


Connect It Up

Connect the EASY Plug 1602 LCD to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
thumb

Upload the Code

Copy and paste below code to Arduino IDE and upload.

//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include<Wire.h>    // Place file “Wire.h” under the directory “library” of Arduino
#include<LiquidCrystal_I2C.h>  // Place “LiquidCrystal_I2C.h” under the directory “library” of Arduino
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(2,0);
lcd.print("Hello, world!");
lcd.setCursor(2,1);
lcd.print("keyestudio!");
}
void loop()
{
}


Code to Note: Before compile the code, do remember to put the libraries needed inside the libraries folder of Arduino IDE directory. Download all the libraries: https://drive.google.com/open?id=105RNjo0aDBthorceoKgqaJ251D3tbWlc


What You Should See

Initially, you should see the words “hello, word!” and “keyestudio!” pop up on your LCD. Remember you can adjust the contrast using the potentiometer on the module back if you can’t make out the words clearly.
thumb


Resources

PDF https://drive.google.com/open?id=1enfntBGnTz0E5fV7bDyo1V0rx-UG9aHS

Libraries https://drive.google.com/open?id=1GDXef8N40WOFa0TEa0d8Xvia1cVM2Fuo


Buy from

Official Website http://www.keyestudio.com/keyestudio-easy-plug-iic-i2c-1602-lcd-module-for-arduino.html