DIYables LCD Keypad Shield for Arduino Uno, Mega
Click to zoom




Quick Overview
- ALL-IN-ONE DISPLAY & KEYPAD MODULE: This 1602 LCD Keypad Shield combines a 16x2 character LCD display with built-in navigation buttons (select, up, down, left, right), offering an easy-to-use interface for Arduino Uno and Mega boards—perfect for interactive projects, sensor monitoring, and menu navigation.
- 2-PACK FOR DOUBLE THE CREATIVITY: Includes two LCD keypad shields for Arduino, ideal for prototyping multiple Arduino projects at once. Great value for electronics hobbyists, students, and professional developers.
- SEAMLESS ARDUINO COMPATIBILITY: Fully compatible with Arduino Uno R3/R4 and Mega. The shield plugs directly onto your board with no extra wiring, making setup fast and hassle-free for both beginners and advanced users.
- CLEAR & BRIGHT 1602 LCD DISPLAY: Features a high-contrast LCD screen with two rows and sixteen characters, providing crisp and easy-to-read output for real-time data, menus, and system feedback in any lighting condition.
- FREE ONLINE TUTORIAL AVAILABLE: Get started quickly with our helpful online guide. Just search “DIYables LCD Keypad Shield” to access step-by-step instructions, example codes, and project ideas designed to support both new learners and experienced makers.
Library
Arduino Example Code
/*
* This code is created by DIYables.io
* This code is released in the public domain
* For more detail, visit https://diyables.io/products/lcd-keypad-shield-for-arduino-uno-mega
*/
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup() {
Serial.begin(9600);
Serial.println("Started"); // Debugging
lcd.begin(16, 2);
lcd.print("Hello!");
delay(3000);
}
void loop() {
int key = analogRead(A0);
//Serial.println(key); // Debugging
lcd.clear();
if (key < 50)
lcd.print("RIGHT");
else if (key < 200)
lcd.print("UP");
else if (key < 400)
lcd.print("DOWN");
else if (key < 600)
lcd.print("LEFT");
else if (key < 800)
lcd.print("SELECT");
else if (key < 1000)
lcd.print("RST"); // If RST has a value, add here
else
lcd.print("Press key!");
delay(200);
}
Tested Hardware
| Board | Tested | Notes |
|---|---|---|
| Arduino Uno R3 | ✅ | Fully supported |
| Arduino Uno R4 WiFi | ✅ | Fully supported |
| Arduino Uno R4 Minima | ✅ | Fully supported |
| Arduino Mega | ✅ | Fully supported |
| DIYables STEM V3 Board | ✅ | Fully supported |
| DIYables STEM V4 IoT Board | ✅ | Fully supported |









