Keypad Shield 1602 Lcd For Arduino Mega 2560 1280 Uno R3 Mega2560 Mega1280

US $4.66

  • ???, ???, China
  • Jan 29th
Keypad Shield 1602 LCD For Arduino MEGA 2560 1280 UNO R3 MEGA2560 MEGA1280                                                                                    Description:   condition :100% brand new and good quality Description: LCD Keypad Shield input / output expansion board using 2 lines of 16 characters LCD, having a contrast adjustment and backlight lamp, using 1 simulated export completed 5 key input, a 1 reset button, does not use the IO export are extended out the spare, make full use of IO export. Take up a digital port: PIN4-DB4 PIN5-DB5 PIN6-DB6 PIN7-DB7 PIN8-RS PIN9-E PIN10- backlight control Simulation of 0 key port Module debugging: The LCD Keypad Shield inserted into the Arduino controller, and then compile the following a test program and then downloaded to the Arduino, first LCD Keypad Shield, the first observation of LCD have no character, if not display characters that may be contrast is not correct, you can use a word screwdriver regulates RP1 (clockwise), transferred to appear clearly characters can be. Used in conjunction with the Arduino: Test code: / * The circuit: * LCD RS pin to digital pin 8 * LCD Enable pin to digital pin 9 * LCD D4 pin to digital pin 4 * LCD D5 pin to digital pin 5 * LCD D6 pin to digital pin 6 * LCD D7 pin to digital pin 7 * LCD BL pin to digital pin 10 * KEY pin to analogl pin 0 * / #include <LiquidCrystal.h> LiquidCrystal LCD (8, 13, 9, 4, 5, 6, 7); Char msgs[5][16] = {"Right Key OK", "Up Key OK", "Down Key OK", "Left Key OK", "Select Key OK"}; Int adc_key_val[5] ={50, 200, 400, 600, 800}; Int NUM_KEYS = 5; Int adc_key_in; Int key=-1; Int oldkey=-1; Void setup () { (lcd.clear); Lcd.begin (16, 2); Lcd.setCursor (0,0); Lcd.print ("ADC key testing"); } Void loop () { Adc_key_in = analogRead (0); / / read the value from the sensor Key = get_key (adc_key_in); / / convert into key press If (key! = oldkey) / / if keypress is detected { Delay (50); / / wait for debounce time Adc_key_in = analogRead (0); / / read the value from the sensor Key = get_key (adc_key_in); / / convert into key press If (key! = oldkey) { Lcd.setCursor (0, 1); Oldkey = key; If (key >=0) { Lcd.print (msgs[key]); } } } Delay 100. } / / Convert ADC value to key number Int get_key (unsigned int input) { Int k; For (k = 0; K < NUM_KEYS; k++) { If (input < adc_key_val[k]) { Return k; } } If (k > = NUM_KEYS) k = -1; / / No valid key pressed Return k; }   Package content: 1 x lcd keypad shield Dear buyers:   Welcome to our store,Thanks! We try our best to provide you high quality and good service.Your satisfy is our aim. If you are satisfy with us,pleae leave five star positive feeback,and welcome to our store again,we will supply the good items and service all the time. If you are not 100% satisfied,Please don't leave a neutral or negative but contact us First, we will do our best to solve for you. Best Regards   Shipping: We Ship to Worldwide, but Italy, Nigeria, Brazil will take long delivery time . Before buying, Please make sure your address is correct. Or not, please correct it before payment Ship to worldwide from Hong Kong within 12-24 hours after payment completed received, and will give you the tracking number asap. sometimes we will send it by flat post air mail if just one low price order.Hope you understand. we advise shipping by DHL or EMS,and we have gave a discount for you,you can received it in 4-9 business days. it takes about 15-30days usually if shipping by CHina/Hong Kong post air mail Warranty and return: 12-months Warranty for defective items (excluding items damaged and/or misused after receipt). Refund or replacement request is available only the requests within 1 week after parcel received & returning the item as the same condition as received. Please contact us to request a return authorization. Your name, auction number, and reason for return should be included in the email. All items returned must contain all original packaging materials. Please repack the item carefully. Items returned will be tested and a new replacement will be shipped to the buyer immediately when found defective. In the event that a suitable replacement is not available then a refund will be issued. Shipping, handling and insurance fees are non refundable. Return shipping is to be paid by the Buyer. Contact us: We have much more products, if you need or have any question ,please contact us by leaving message or use Ali Trade manager .Welcome to wholesale. Thank you so much!

Directions

Similar products from Display Modules & Monitors

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