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 für Arduino - Bastelgarage Elektronik Online Shop

DFRobot 1602 LCD Keypad Shield für Arduino

Dieses Keypad Shield mit Display von DFRobot eignet sich perfekt für die ersten Versuche, um das 1602 LCD-Display mit einem Arduino anzusteuern. Praktisch sind auch die fünf Taster, mit denen du auf einfache Weise eine Menüführung realisieren kannst. Die Library «LiquidCrystal», für die Ansteuerung des Displays, findest du im Library Manager. Bei der Initialisierung der LiquidCrystal musst du folgenden Befehl nutzen, damit die Pinbelegungen stimmen:

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

Die fünf Steuertasten gehen alle auf den analog Eingang A0. Damit werden erheblich Eingänge gespart, die du für dein Projekt nutzen kannst. Wird eine der Tasten gedrückt, kann auch auf dem A0 Eingang eine Spannung gemessen werden, die bei jeder Taste anders ist. Bei diesem Keypad Shield von DFRobot wurde darauf geachtet, dass die nicht genutzten Pins auf Stiftleisten geführt sind. Somit kannst du immer noch Sensoren anschliessen, wenn das Shield auf ein Arduino Aufgesteckt ist. Das Keypad Shield ist für die klassischen Arduino wie Uno, Duemilanove, Diecimilla, etc. kompatibel.


Dokumentation:


Beispiel Code Keypad Shield mit 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   ");
  }
}



Technische Details:

  • Modell: 1602 Character LCD
  • Betriebsspannung: 5V
  • Auflösung Zeichen: 5x8 Punkte
  • Zeichen: 2 Zeilen x 16 Zeichen
  • Hintergrundbeleuchtung: Weisse Zeichen auf blauem Hintergrund
  • 5x Steuertasten, 1x Resettaste
  • 1x Potentiometer für Displaykontrast
  • Größe: 80 x 58 x 17mm
  • Gewicht: 66.5g

Lieferumfang:

  • 1x DFRobot 1602 LCD Keypad Shield für Arduino


+ Bewertung

Hinweis: HTML ist nicht verfügbar!
    Weniger Gut           Gut

DFRobot 1602 LCD Keypad Shield für Arduino

  • Hersteller DFRobot
  • Artikelnr. 421048
  • Verfügbarkeit Lagernd
  • CHF13,90

  • Netto CHF12,86

Schnellsuche Arduino, Keypad, DFRobot, Shield, Display, LCD, Modul, Analog, Taster, button, Character, LCD, Display, Blau, Anzeige, beleuchtet, Blacklight, Hintergrundbeleuchtung, 1602, 8x16, DFR0009