Arduino 16x2 Character Lcd Shield

AU $6.90

  • Sydney, Australia
  • Jun 9th
Overview 16x2 character LCD keypad shield for Arduino, it can be directly plugged on the Arudino without soldering or fly-wiring needed. It also has 6 buttons and uses Arudino LiquidCrystal library. DESCRIPTIONThis is a very popular LCD Keypad shield for Arduino board. It can be directly plug onto the Arudino board, no soldering or fly-wiring needed. This shield uses Arudino LiquidCrystal library. Hardware Pin Function A0 Button(select, up, right, down and left) D4 DB4 D5 DB5 D6 DB6 D7 DB7 D8 RS(Data or signal display selection) D9 LCD1602 Enable D10 Backlight control Specification Version 1.1 Compatible Mainboard Arduino Deumlanove/UNO Arduino MEGA Freeduino Iteaduino Iteaduino ADK Iteaduino BT Iteaduino MEGA 2560 Simple Cortex Seeeduino Seeduino MEGA Shield Functions Display Input Board Size 83mm x 57mm Operation Level Digital 3.3V Digital 5V Stackable No Model IM120417018 Accessories No Weight 80.00g Demo Code #include <LiquidCrystal.h> LiquidCrystal lcd(8, 9, 4, 5, 6, 7); // IO pins to the LCD int buttonPin = 0; // Buttons are connected to A0 int lightPin = 10; // Light is connected to pin 10 int val =0; int GetButton(void) { int portValue; portValue=analogRead(buttonPin); if (portValue>1020) // Not pressed return 0; else if ((portValue>720) && (portValue<780)) // SELECT pressed return 1; else if ((portValue>480) && (portValue<540)) // LEFT pressed return 2; else if ((portValue>110) && (portValue<180)) // UP pressed return 3; else if ((portValue>300) && (portValue<370)) // DOWN pressed return 4; else if ((portValue==0) || (portValue<5)) // RIGHT pressed return 5; else return -1; } void setup() { pinMode(buttonPin, INPUT); pinMode(lightPin, OUTPUT); digitalWrite(lightPin,1); lcd.begin(16,2); lcd.print("Hello World"); lcd.setCursor(8,1); lcd.print("Key="); } void loop() { lcd.setCursor(0,1); lcd.print(millis()/1000); val=GetButton(); if (val) { lcd.setCursor(12,1); lcd.print(val); } else { lcd.setCursor(12,1); lcd.print(" "); } } Download Datasheet DS_IM120417018_Arduino1602LCDShield Schematic SCH_IM120417018_Arduino1602LCDShield
Condition: New Brand IteadStudio
Model IM120417018

Directions

Similar products from Electrical Tool Sets & Kits

People who viewed this item also vieved

By clicking "Accept All Cookies", you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts.

Accept All Cookies