KS0381 EASY plug I2C 1602 LCD Module-180° Interface: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
It is very easy for you to connect the module to control board for communication using only an RJ11 cable | It is very easy for you to connect the module to control board for communication using only an RJ11 cable | ||
<span style=color:red> '''Special Note:''' <br> | |||
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> | |||
<br> | <br> | ||
==Features== | ==Features== | ||
* Interface: Easy plug | * Interface: Easy plug | ||
Line 27: | Line 30: | ||
==Test Code== | ==Test Code== | ||
Copy and paste below code to Arduino IDE and upload. | Copy and paste below code to [https://wiki.keyestudio.com/How_to_Download_Arduino_IDE Arduino IDE] and upload. | ||
<pre> | <pre> | ||
#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 | ||
Line 47: | Line 51: | ||
</pre> | </pre> | ||
<span style="color: red">'''Code to Note: ''' | <span style="color: red">'''Code to Note: ''' <br> | ||
Before compile the code, do remember to put the libraries needed inside the libraries folder of Arduino IDE directory. | Before compile the code, do remember to put the libraries needed inside the libraries folder of Arduino IDE directory. </span><br> | ||
Download all the libraries: | Download all the libraries: | ||
https://drive.google.com/open?id=105RNjo0aDBthorceoKgqaJ251D3tbWlc | https://drive.google.com/open?id=105RNjo0aDBthorceoKgqaJ251D3tbWlc | ||
Line 61: | Line 65: | ||
<br> | <br> | ||
==Resources Download== | ==Resources Download== | ||
https://fs.keyestudio.com/KS0381 | |||
<br> | <br> | ||
==Get One Now== | ==Get One Now== | ||
* | *[https://www.keyestudio.com/keyestudio-easy-plug-rj11-i2c-1602-lcd-module-180-degree-interface-for-arduino-stem-p0495-p0495.html '''Official website''' ] | ||
*[https://www.aliexpress.com/store/product/Keyestudio-EASY-plug-RJ11-I2C-1602-LCD-Module-180-Degree-Interface-for-Arduino-STEM/1452162_32961713285.html?spm=2114.12010611.8148356.11.27956c0ehzaxb3 Shop on aliexpress ] | *[https://www.aliexpress.com/store/product/Keyestudio-EASY-plug-RJ11-I2C-1602-LCD-Module-180-Degree-Interface-for-Arduino-STEM/1452162_32961713285.html?spm=2114.12010611.8148356.11.27956c0ehzaxb3 Shop on aliexpress ] |
Latest revision as of 08:50, 8 January 2021
Introduction
This is a basic 16 character by 2 line LCD display module.
The LCD module displays white text on blue background, and comes with I2C communication interface.
You can use only one line to connect it to microcontroller’s I2C communication interface.
On the back comes with a potentiometer, which can be used to adjust the backlight, with default address 0x27.
It is very easy for you to connect the module to control board for communication using only an RJ11 cable
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.
Features
- Interface: Easy plug
- Operating voltage: DC 5V
- White text on blue background
- Communication way: I2C
- I2C Address: 0x27
- Display characters: 16 characters per row, 32 characters in 2 rows
- Adjusting contrast by a potentiometer
- Dimensions: 80mm*36mm*30mm
- Weight: 37.5g
Connection Diagram
Test Code
Copy and paste below code to Arduino IDE and upload.
#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
Test Result
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.
Resources Download
https://fs.keyestudio.com/KS0381
Get One Now