Introduction
This shield with a 16×2 RGB LCD screen could bring you a brand-new experience with LCD screen!
The RGB LCD shield extends all IOs of Arduino UNO on the back, by which you can connect with modules like sensors, LEDs, servos while using this screen to display content. More possibilities for your creative projects!
Besides, there are 6 keys on the shield, 5 of which are programable and can be used to switch and set functions.
The 1602 RGB LCD shield adopts an integrated design approach and I2C communication. No more complicated wiring, you can directly plug this shield onto an Arduino controller, call the Arduino library, add a couple lines of codes, then the screen can display numbers or characters.
This 1602 RGB LCD shield can not only be used in interactive projects, but also suitable for building data monitoring platforms to feed back the real-time status of various devices.
Specification
- Operating Voltage: 5.0V
- Operating Current: <60mA
- Display: 16*2
- Communication: I2C
- Operating Temperature: -20 to+ 70℃
- Storage Temperature: -30 to+ 80℃
Board Overview
This 1602 RGB LCD module is designed with dual-row analog/digital ports. User can combine this product with other sensors, LEDs, servos, and so on to make various appications based on their needs.
Note: There are silkscreens besides the dual-row pins, and the former corresponds to the upper row while the latter indicates the lower row. Shown as below:
There are 5 buttons connected to A0 and the correspondence between key value and key pressed is shown below. If multiple button are pressed at the same time, the lowest readings among all pressed buttons will be read.
Key Pressed | A0 value |
---|---|
RIGHT | 0 |
UP | 206 |
DOWN | 407 |
LEFT | 624 |
SELECT | 824 |
No button pressed | 1023 |
As the analog signal is susceptible to interference, the measured value sometime is not exactly the same as the table above, and the error of ±10 is tolerable.
Tutorial
This demo shows how to use 1602 RGB LCD shield.
Requirements
-
Hardware
- Arduino UNO x1
- LCD Keypad Shield V2.0 x1
- M-M/F-M/F-F Jumper wires
-
Software
- Arduino IDE V1.6.5 Click to Download Arduino IDE
Sample Code
If your Arduino IDE does not have this library, please follow the steps below to install it.
-
Click the link to download library and reference files.
-
Unzip this folder and copy it to the libraries folder under Arduino installation directory.
About how to install the library?
- Next, open the Arduino IDE and copy the following code to the IDE window. (Delete all contents in the IDE just opened!)
- Select the correct serial port and board (Arduino UNO).
Result
Yellow background, output NONE when no button pressed, otherwise, output the corresponding button.
FAQ
For any questions, advice or cool ideas to share, please visit the DFRobot Forum.