LCD 1602 Keypad Shield for Arduino UNO
This Keypad Shield is perfect for initial attempts to control a display using an Arduino. The 5 buttons are also practical, enabling you to easily implement a menu guide. To control the display, you can find the "LiquidCrystal" Library in the Library Manager. You can install this library to control the display. During the initialization of the LiquidCrystal, you need to use the following command to ensure the proper assignment of the Pins:
LiquidCrystal lcd(lcd (8,9,4,5,6,7);
The 5 control buttons all go into the Analog Input A0, thus saving a significant number of inputs which you can use for your project. When one of the buttons is pressed, a voltage can also be measured at the A0 input, which is different for each button. If you have any questions or problems with the control or suggestions regarding the product description, simply send us an e-mail or use the rating function. We are happy to help.
The following connection Pins are occupied by the Shield:
- A0 Button (select, up, right, down and left)
- D4 DB4
- D5 DB5
- D6 DB6
- D7 DB7
- D8 RS
- D9 Enable
- D10 Background Lighting
Program Example:
// include the library code: #include// initialize the library with the numbers of the interface pins LiquidCrystal lcd(8, 9, 4, 5, 6, 7); void setup() { Serial.begin(115200); // set up the LCD's number of columns and rows: lcd.begin(16, 2); // Print a message to the LCD. lcd.setCursor(0,0); lcd.print("LCD Key Shield"); Serial.println("LCD Key Shield start"); lcd.setCursor(0,1); lcd.print("Press Key:"); } void loop() { int x; x = analogRead (0); lcd.setCursor(10,1); Serial.print("x="); Serial.println(x); if (x < 60) { lcd.print("Right "); } else if (x < 200) { lcd.print("Up "); } else if (x < 400){ lcd.print ("Down "); } else if (x < 600){ lcd.print ("Left "); } else if (x < 800){ lcd.print ("Select "); } }
Technical Details:
- Model: 1602 Character LCD
- Operating Voltage: 5V
- Resolution Character: 5x8 Dots
- Characters: 2 Rows x 16 Characters
- Background Lighting: White Characters on Blue Background
- 5x Control Buttons, 1x Reset Button
- 1x Potentiometer for Display Contrast
- Size: 80 x 57.5mm
- Weight: 53g
Delivery Content:
1x Keypad Shield
LCD 1602 Keypad Shield for Arduino UNO
- Brand: purecrea
- Product Code: 420098
- Availability: In Stock
-
CHF11.90
- Ex Tax: CHF11.01
Related Products
Tags: Arduino, Shield, Display, LCD, Module, Analog, Button, Character, LCD, Display, Blue, Display, Illuminated, Blacklight, Backlight, 1602, 8x16.