Unknown: Creation of dynamic property Request::$request is deprecated in /home/bastelga/public_html/74/system/library/request.php on line 26Unknown: Creation of dynamic property mysqli::$report_mode is deprecated in /home/bastelga/public_html/74/system/library/db/mysqli.php on line 15Unknown: Creation of dynamic property Session\DB::$db is deprecated in /home/bastelga/public_html/74/system/library/session/db.php on line 8Unknown: Creation of dynamic property Proxy::$getTranslations is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__construct is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__get is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__set is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: mysqli::real_escape_string(): Passing null to parameter #1 ($string) of type string is deprecated in /home/bastelga/public_html/74/system/library/db/mysqli.php on line 53Unknown: Creation of dynamic property Proxy::$getLanguage is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$getLanguages is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__construct is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__get is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__set is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Cart\Customer::$config is deprecated in /home/bastelga/public_html/74/system/library/cart/customer.php on line 14Unknown: Creation of dynamic property Cart\Customer::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/customer.php on line 15Unknown: Creation of dynamic property Cart\Customer::$request is deprecated in /home/bastelga/public_html/74/system/library/cart/customer.php on line 16Unknown: Creation of dynamic property Cart\Customer::$session is deprecated in /home/bastelga/public_html/74/system/library/cart/customer.php on line 17Unknown: Creation of dynamic property Proxy::$getCurrencyByCode is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$getCurrencies is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__construct is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__get is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Proxy::$__set is deprecated in /home/bastelga/public_html/74/system/engine/proxy.php on line 30Unknown: Creation of dynamic property Cart\Currency::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/currency.php on line 7Unknown: Creation of dynamic property Cart\Currency::$language is deprecated in /home/bastelga/public_html/74/system/library/cart/currency.php on line 8Unknown: Creation of dynamic property Cart\Tax::$config is deprecated in /home/bastelga/public_html/74/system/library/cart/tax.php on line 7Unknown: Creation of dynamic property Cart\Tax::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/tax.php on line 8Unknown: Creation of dynamic property Cart\Weight::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/weight.php on line 7Unknown: Creation of dynamic property Cart\Weight::$config is deprecated in /home/bastelga/public_html/74/system/library/cart/weight.php on line 8Unknown: Creation of dynamic property Cart\Length::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/length.php on line 7Unknown: Creation of dynamic property Cart\Length::$config is deprecated in /home/bastelga/public_html/74/system/library/cart/length.php on line 8Unknown: Creation of dynamic property Cart\Cart::$config is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 7Unknown: Creation of dynamic property Cart\Cart::$customer is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 8Unknown: Creation of dynamic property Cart\Cart::$session is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 9Unknown: Creation of dynamic property Cart\Cart::$db is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 10Unknown: Creation of dynamic property Cart\Cart::$tax is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 11Unknown: Creation of dynamic property Cart\Cart::$weight is deprecated in /home/bastelga/public_html/74/system/library/cart/cart.php on line 12 DFRobot 1602 LCD Keypad Shield for Arduino - Bastelgarage Electronics Online Store

DFRobot 1602 LCD Keypad Shield for Arduino

This Keypad Shield with Display from DFRobot is perfect for the first attempts to control the 1602 LCD display with an Arduino. The five buttons are also practical, allowing you to easily implement menu navigation. You can find the "LiquidCrystal" library for controlling the display in the Library Manager. When initializing the LiquidCrystal, you need to use the following command to ensure the pin assignments are correct:

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

The five control buttons all connect to the analog input A0. This significantly saves inputs that you can use for your project. When one of the buttons is pressed, a voltage can be measured on the A0 input, which is different for each button. In this Keypad Shield from DFRobot, care has been taken to ensure that the unused pins are routed to headers. This way, you can still connect sensors when the shield is mounted on an Arduino. The Keypad Shield is compatible with classic Arduinos like Uno, Duemilanove, Diecimilla, etc.


Documentation:


Example Code Keypad Shield with Arduino:

// 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
  • Character resolution: 5x8 dots
  • 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

Scope of Delivery:

  • 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

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