DFRobot 1602 LCD Keypad Shield for Arduino

This Keypad Shield with display from DFRobot is perfect for beginners attempting to control the 1602 LCD display with an Arduino. It also conveniently includes five buttons, which you can use to easily implement a menu guide. You can find the "LiquidCrystal" library needed for controlling the display in the Library Manager. When initializing the LiquidCrystal, make sure to use the following command so the pin assignments are correct:

\

LiquidCrystal lcd(lcd (8,9,4,5,6,7);

\

The five control buttons all connect to the analog A0 input, thus saving significant inputs which you can use for your project. When a button is pressed, a voltage can also be measured on the A0 input, which varies for each button. With this Keypad Shield from DFRobot, all unused pins are led to pin headers, so you can still connect sensors when the shield is plugged into an Arduino. The Keypad Shield is compatible with classic Arduinos such as Uno, Duemilanove, Diecimilla, etc.


\

Documentation:


Example Code Keypad Shield with Arduino:

// include the library code:
#include <LiquidCrystal.h>
// 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 points
  • Characters: 2 lines x 16 characters
  • Backlight: White characters on blue background
  • 5x control buttons, 1x reset button
  • 1x potentiometer for display contrast
  • Size: 80 x 58 x 17mm
  • Weight: 66.5g

Package includes:

  • 1x DFRobot 1602 LCD Keypad Shield for Arduino


Write a review

Note: HTML is not translated!
    Bad           Good

DFRobot 1602 LCD Keypad Shield for Arduino

  • Brand: DFRobot
  • Product Code: 421048
  • Availability: In Stock
  • CHF13.90

  • Ex Tax: CHF12.86

Related Products

LCD 1602 Keypad Shield for Arduino UNO

LCD 1602 Keypad Shield for Arduino UNO

This Keypad Shield is perfect for initial attempts to control a display using an Arduino. The 5 butt..

CHF11.90 Ex Tax: CHF11.01

Gravity LCD Display 16x2 I2C RGB Backlight

Gravity LCD Display 16x2 I2C RGB Backlight

This Gravity 16x2 character LCD display features an RGB backlight that can be customized. This allow..

CHF15.90 Ex Tax: CHF14.71

LCD1602 LCD Display 16x2 I2C RGB Backlight

LCD1602 LCD Display 16x2 I2C RGB Backlight

This LCD display features an RGB backlight, which you can change the color of individually. Thus, yo..

CHF15.90 Ex Tax: CHF14.71

Character LCD Display 16x2 Blue 5V 1602

Character LCD Display 16x2 Blue 5V 1602

This user-friendly 16x2 LCD display is perfect for beginners who want to control a display with an A..

CHF8.90 Ex Tax: CHF8.23

Tags: Arduino, Keypad, DFRobot, Shield, Display, LCD, Module, Analog, Switch, Button, Character, LCD, Display, Blue, Display, Illuminated, Blacklight, Backlight, 1602, 8x16, DFR0009