this is the global campaign template, current utc time is 2024-03-28 19:08:42

This is the testing info for global variables in phtml

Monday Kids 1602 LCD Module Keypad Shield for Arduino Duemilanove UNO MEGA2560 MEGA1280

$3.31

Product name is 1602 LCD Module Keypad Shield for Arduino Duemilanove UNO MEGA2560 MEGA1280...

Product origin name is Monday Kids 1602 LCD Module Keypad Shield for Arduino Duemilanove UNO MEGA2560 MEGA1280

Availability: In stock
SKU
RY-ES-397

Payment Security

Payment Security

We are PayPal Verified

PayPal is a secure and trusted payment processing service that allows you to shop online. PayPal can be used at mondaykids.com to purchase items by Credit Card (Visa, MasterCard, Discover, and American Express), Debit Card , or E-check (i.e. using your regular Bank Account).

  • Brand Name: Monday Kids
  • Model Number: 1602
  • Type: Character
  • Resolution: 16*2
  • is_customized: Yes

1602 LCD Module Screen Keypad Shield for Arduino Duemilanove UNO MEGA2560 MEGA1280 1602

Features :
This 1602 LCD Module Screen for Arduino is a 16x2 LCD Keypad module for Arduino Diecimila Duemilanove / FREEDUINO board..
Blue Backlight with white words
Uses 4 Bit Arduino LCD Library
100% brand new and high quality

Sample 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 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 include:

1 * 1602 LCD Module

  • Unit Type: piece
  • Package Weight: 0.075kg (0.17lb.)
  • Package Size: 8cm x 10cm x 15cm (3.15in x 3.94in x 5.91in)
Write Your Own Review
You're reviewing:Monday Kids 1602 LCD Module Keypad Shield for Arduino Duemilanove UNO MEGA2560 MEGA1280
Your Rating