![](https://electroboat.in/uploads/media/2024/51IB-3xf6WL__AC_UF1000,1000_QL80_.jpg)
![](https://electroboat.in/media/image?path=uploads/media/2024/images_(22).jpg&width=620&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/51IB-3xf6WL__AC_UF1000,1000_QL80_.jpg&width=175&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/images_(22).jpg&width=172&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/51IB-3xf6WL__AC_UF1000,1000_QL80_.jpg&width=300&quality=80)
![](https://electroboat.in/media/image?path=uploads/media/2024/images_(22).jpg&width=300&quality=80)
1602 LCD Board Keypad Shield Blue Backlight For Arduino Robot
The 1602 LCD Board Keypad Shield with a blue backlight for Arduino is a versatile and commonly used expansion shield for Arduino projects. It combines both a 16x2 LCD display and a keypad on a single board, making it ideal for creating user interfaces, displaying data, and accepting input in your Arduino-based projects, such as robots or home automation systems.
₹ 209 ₹299
299
![](https://electroboat.in/assets/front_end/classic/images/cod_logo.png)
![](https://electroboat.in/assets/front_end/classic/images/cancelable.png)
![](https://electroboat.in/assets/front_end/classic/images/returnable.png)
Made In : | India |
Add FAQ
The 1602 LCD Board Keypad Shield with a blue backlight for Arduino is a versatile and commonly used expansion shield for Arduino projects. It combines both a 16x2 LCD display and a keypad on a single board, making it ideal for creating user interfaces, displaying data, and accepting input in your Arduino-based projects, such as robots or home automation systems.
Key Features:
-
16x2 LCD Display:
- The shield features a 16x2 LCD display, which can show up to 16 characters per line and has 2 lines. This is useful for displaying text, sensor data, or status messages.
- Blue Backlight: The blue backlight provides clear visibility in low-light environments, and it can be controlled programmatically, allowing for customized user experiences.
-
Keypad with 5 Keys:
- The shield includes a 5-key keypad (usually arranged as 3x2 matrix), which allows the user to input data or make selections from a list.
- The keys are commonly labeled as A, B, C, D, and an Enter key, but this may vary.
-
Arduino Compatibility:
- The 1602 LCD Keypad Shield is designed to plug directly into the Arduino's header pins (usually Arduino Uno or similar boards), without needing additional wiring.
- It uses the I2C or parallel communication (depending on the model), with most models requiring fewer pins compared to traditional LCD wiring (especially if using I2C).
-
Easy to Use:
- With Arduino's built-in LiquidCrystal library, setting up and controlling the LCD is straightforward.
- The keypad is generally accessed using libraries like Keypad.h, which simplifies the process of reading user input.
-
Adjustable Contrast:
- The contrast of the LCD can be adjusted using a small potentiometer (usually located on the board), which helps to adjust the visibility of the characters depending on ambient light.
Typical Pin Mapping (for 16x2 LCD):
The pinout is similar to most Arduino 16x2 LCD modules:
- VSS: Ground
- VCC: 5V
- VO: Contrast control (connected to potentiometer)
- RS: Register Select
- RW: Read/Write
- E: Enable
- D4-D7: Data pins (for parallel communication)
- A: Anode (Backlight control)
- K: Cathode (Backlight control)
Libraries:
- LiquidCrystal Library: This library is used to control the 16x2 LCD. It allows for basic text output and cursor manipulation.
- Keypad Library: This library is used to read input from the onboard keypad, allowing you to detect key presses and perform corresponding actions.
Example Code for LCD and Keypad:
Here's a basic example code to display a message on the LCD and read inputs from the keypad:
#include
#include
// Initialize the LCD (pin configuration depends on the model)
LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // Adjust pins if necessary
// Define the keypad's layout
const byte ROW_NUM = 4; // Four rows
const byte COLUMN_NUM = 4; // Four columns
char keys[ROW_NUM][COLUMN_NUM] = {
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte pin_rows[ROW_NUM] = {9, 8, 7, 6}; // Pin numbers for rows
byte pin_column[COLUMN_NUM] = {5, 4, 3, 2}; // Pin numbers for columns
Keypad keypad = Keypad( makeKeymap(keys), pin_rows, pin_column, ROW_NUM, COLUMN_NUM );
void setup() {
lcd.begin(16, 2); // Initialize the 16x2 LCD
lcd.print("Arduino Keypad");
delay(2000); // Show initial message for 2 seconds
lcd.clear();
}
void loop() {
char key = keypad.getKey(); // Get the key press
if (key) { // If a key is pressed
lcd.clear(); // Clear the LCD
lcd.print("You pressed: ");
lcd.print(key); // Display the key pressed
}
}
How It Works:
-
LCD Setup:
- The LCD is initialized with the
lcd.begin(16, 2)
command, which sets it to show 16 columns and 2 rows. - The initial message ("Arduino Keypad") is displayed for a few seconds using
lcd.print()
.
- The LCD is initialized with the
-
Keypad Input:
- The
Keypad
object listens for key presses, and once a key is pressed, it is captured usingkeypad.getKey()
. - The pressed key is then displayed on the LCD screen.
- The
Applications:
- Arduino Robots: You can use the LCD to display sensor data (like distance, speed, or battery level) and the keypad for controlling movement or other robot functions.
- User Interfaces: For simple menu systems where users select options using the keypad.
- Data Entry: For entering parameters (such as numeric values) or controlling settings in a system.
- Security Systems: Using the keypad as a password input mechanism for security systems.
Conclusion:
The 1602 LCD Board Keypad Shield is an excellent tool for creating interactive projects, particularly those that require user input and display. It offers both a simple way to show information on a screen and collect input from a user, all integrated onto one convenient board for Arduino.
0 Reviews For this Product
![](https://electroboat.in/uploads/seller/electroboat_logo3.jpeg)