Ks0138 keyestudio EASY plug I2C 2004 LCD: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
==EASY plug I2C 2004 LCD==
[[image:Ks0138-.png|thumb|600px|right|Keyestudio EASY plug 2004 LCD Module]]
<br>[[File:ks0138-1.png|500px|frameless|thumb]]<br>


<br>
==Introduction==
==Introduction==
Keyestudio Easy-plug 2004 I2C Module is a 20 character by 4 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. In Easy-plug control board, one IIC interface will suffice. This LCD is ready-to-use because it is compatible with the Arduino Liquid Crystal Library.<br>
An LCD, or liquid crystal display, is a simple screen that can display commands, bits of information, or readings from your sensor - all depending on how you program your board.<br>
Note: this module needs to be used together with EASY plug control board.<br>
This module is a 20 character by 4 line LCD display with Blue background and White backlight. <br>
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. <br>
This LCD is ready-to-use because it is compatible with the Arduino Liquid Crystal Library. It comes with EASY Plug connector, you can use one line for simple connection.<br>
This module should be used together with EASY plug control board.


==Specification==
<span style=color:red> '''Special Note:''' <br>
* Interface: Easy-plug
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface. <br> If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module. </span><br>
* Communication protocol: I2C
* I2C address: 0x27
* Operating voltage: +5V
* Contrast control: through potentiometer
* Size: 98mm*36mm
* Weight: 30g


==Connection Diagram ==
<br>
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. <br>
Below is the connection diagram between this module and Easy-plug controller:<br>
<br>[[File:ks0138-2.png|500px|frameless|thumb]]<br>


==Specifications==
* Interface: I2C
* I2C address: 0x27
* White text on blue background
* 20 characters wide, 4 rows
* Operating voltage: +5V
* Contrast control: through potentiometer
* Compatible with Arduino LiquidCrystal Library
<br>
==Technical Details==
* Dimensions: 114mm*60mm*22mm
* Weight: 77.7g
<br>
==Connect It Up ==
Connect the EASY Plug 2004 LCD to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
<br>[[File:Ks0138-4.png|700px|frameless|thumb]]<br>
<br>
==Upload the Code==
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload.<br>
<span style="color: red">'''Code to Note: ''' </span> <br>  Before compile the code, do remember to put the libraries needed inside the libraries folder of Arduino IDE directory. Or else, it will fail to verify. <br>
Download all the libraries: https://drive.google.com/open?id=1KkjnoR3Y_eRM-LMHEIrMzQabLabbSQpU


==Sample Code==
Download the libraries of Wire and LiquidCrystal_I2C: [http://www.keyestudio.com/files/index/download/id/1507706889/]
<pre>
<pre>
//KEYES
//Compatible with the Arduino IDE 1.0
//Compatible with the Arduino IDE 1.0
//Library version:1.1
//Library version:1.1
Line 31: Line 47:


LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27,20,4);  // set the LCD address to 0x27 for a 16 chars and 2 line display


void setup()
void setup()
Line 42: Line 57:
   lcd.print("Hello, world!");
   lcd.print("Hello, world!");
   lcd.setCursor(2,1);
   lcd.setCursor(2,1);
   lcd.print("Hello,keyestudio!");
   lcd.print("Hello,keyestudio!");
   lcd.setCursor(0,2);
   lcd.setCursor(0,2);
   lcd.print("Arduino LCM IIC 2004");
   lcd.print("Arduino LCD IIC 2004");
   lcd.setCursor(2,3);
   lcd.setCursor(2,3);
   lcd.print("Power By Ec-yuan!");
   lcd.print("Power By Ec-yuan!");
Line 53: Line 68:
</pre>
</pre>


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 testing.
<br>
 
==What You Should See==
== Result Show ==
Initially, you should see the words “hello, word!” and “keyestudio!” pop up on your LCD.<br>
<br>[[File:KS0138 (2).jpg|500px|frameless|thumb]]<br>
Remember you can adjust the contrast using the potentiometer on the module back if you can’t make out the words clearly.
 
<br>[[File:Ks0138-3.png|600px|frameless|thumb]]<br>
== Resources==
 
'''PDF:'''
 
https://drive.google.com/open?id=1Om7kjqDou7feMC1eCoix8yAxIx9n_RW7
 
'''Download the Libraries of Wire and LiquidCrystal_I2C:'''


https://drive.google.com/open?id=1a_S1eglzvtvgv6wOz-a-dDk3QknVW6AU
<br>
==Resources ==


== Buy From ==
'''Download libraries and Code:'''<br>
'''Official Website'''
https://fs.keyestudio.com/KS0138
<br>


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


*[https://www.aliexpress.com/store/product/NEW-Keyestudio-EASY-plug-I2C-2004-LCD-Module-for-arduino/1452162_32648263376.html?spm=2114.12010612.8148356.65.528d24eaYCwhJ9  Shop on aliexpress ]


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

Latest revision as of 17:06, 7 January 2021

Keyestudio EASY plug 2004 LCD Module


Introduction

An LCD, or liquid crystal display, is a simple screen that can display commands, bits of information, or readings from your sensor - all depending on how you program your board.
This module is a 20 character by 4 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. It comes with EASY Plug connector, you can use one line for simple connection.
This module should be used together with EASY plug control board.

Special Note:
The sensor/module is equipped with the RJ11 6P6C interface, compatible with our keyestudio EASY plug Control Board with RJ11 6P6C interface.
If you have the control board of other brands, it is also equipped with the RJ11 6P6C interface but has different internal line sequence, can’t be used compatibly with our sensor/module.


Specifications

  • Interface: I2C
  • I2C address: 0x27
  • White text on blue background
  • 20 characters wide, 4 rows
  • Operating voltage: +5V
  • Contrast control: through potentiometer
  • Compatible with Arduino LiquidCrystal Library


Technical Details

  • Dimensions: 114mm*60mm*22mm
  • Weight: 77.7g


Connect It Up

Connect the EASY Plug 2004 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.
Code to Note:
Before compile the code, do remember to put the libraries needed inside the libraries folder of Arduino IDE directory. Or else, it will fail to verify.
Download all the libraries: https://drive.google.com/open?id=1KkjnoR3Y_eRM-LMHEIrMzQabLabbSQpU

//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 LCD IIC 2004");
   lcd.setCursor(2,3);
  lcd.print("Power By Ec-yuan!");
}
void loop()
{
}


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

Download libraries and Code:
https://fs.keyestudio.com/KS0138

Buy from