Module Review #1 - LCD Keypad Shield for Arduino

preview_player
Показать описание
In this episode I discuss the LCD Keypad Shield for Arduino. It is a fairly basic shield which features an LCD module, 6 buttons, a potentiometer and a power LED. Watch the video to find out more about my opinions on the module.

Keywords & Related Terms:
Arduino LCD
LCD Tutorial
Liquid Crystal Display Tutorial
Keypad LCD Shield
Keypad Tutorial
Arduino Buttons

Рекомендации по теме
Комментарии
Автор

Your production has been up for awhile, but of many on YouTube that discuss how to use this module, yours finally helped me get the module working. Thank you!

mbunds
Автор

Great video, I have a LCD Keypad Shield, but not using it in any of my project

beehive
Автор

Thanks for the video. It's really going to help me out with a project I'm working on. If I may offer one piece of constructive criticism: Part way through the video the shield kept moving farther and farther down until it was off screen while you were still pointing out landmarks on the board. Perhaps a monitor or something that enables you to see it from the viewers angle while recording might help? Again, thank you for the video!

aaronh
Автор

I don't have the Arduino Uno R3, I have the Elegoo MEGA2560 with more pins. How would this be utilized?

ReDoG
Автор

is there a way to use this on a breadboard and limit the amount of i/o it uses on the arduino? because im using a servo, lcd, and a buzzer, so i'd like to only plug in things that have to be plugged into the arduino for control

davidli
Автор

I have one just like your I brought from aliexpress a while back, I would like to see more on programing this key/LCD Shield. The way it is setup as an Analog is not what I had in mind either.

rfpcs
Автор

The buttons are on a0 and I want to be able to display if the buttons were pushed, what I'm trying to do is "whenever I press the select button, I want it to generate two separate numbes each going from 1 to 6

taranagnew
Автор

can someone plz post the library that you use for the this shield? thank you

taranagnew
Автор

does anyone know what to do when my potentiometer is stuck at 1023 even when i turn it?

bqrtvfx
Автор

i wonder if you could add 1 more external switch..

boosetteyuraei
Автор

've tried everything still my LCD shield is not working, it just shows blue screen no boxes or anything, tried adjusting the potentiometer still nothing is displayed on screen

PrathameshJakka
Автор

can someone provide me with the LCD keypad shield library that works and can the values of the buttons be different on other DFRobot lcd keypad shield

taranagnew
Автор

I am sharing your video list on Facebook, Twitter, Blogger I hope this helps

beehive
Автор

hi ... the pwer led in the shield is not turn on >> is it burn ( i mean the sheild ????)

fadhelahkhalaf
Автор

i'm trying to run a keypad value test to get the values of my lcd keypad shield, plz help
#include <LiquidCrystal.h>
lcd(8, 9, 4, 5, 6, 7);
int lcd;
int btnStr;
int currx;
int x;

void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Analog 0: ");
lcd.print(currx);
lcd.setCursor(0, 1);
lcd.print(btnStr);
}

void loop() {

x = analogRead(A0); // the buttons are read from the analog0 pin

// Check if x has changed
if ((x != 1023) && (x != currx)){

//update screen and change currx
lcd.setCursor(10, 0);
lcd.print(" ");
lcd.setCursor(10, 0);
lcd.print(x);
currx = x;

if (currx > 740 && currx < 745){

btnStr="Select";

} else if (currx > 500 && currx < 510){

btnStr="Left";

} else if (currx < 10){

btnStr="Right";

} else if (currx > 140 && currx < 150){

btnStr="Up";

} else if (currx > 320 && currx < 365){

btnStr="Down";

}

//update button pressed
lcd.setCursor(0, 1);
lcd.print(" ");
lcd.setCursor(0, 1);
lcd.print(btnStr);
}

delay(10);

}

i keep getting
Arduino: 1.8.6 (Windows 10), Board: "Arduino/Genuino Uno"

keypad_values.ino:2:4: error: expected constructor, destructor, or type conversion before '(' token

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

^

In function 'void setup()':

keypad_values.ino:10:7: error: request for member 'begin' in 'lcd', which is of non-class type 'int'

lcd.begin(16, 2);

^

keypad_values.ino:12:7: error: request for member 'clear' in 'lcd', which is of non-class type 'int'

lcd.clear();

^

keypad_values.ino:13:7: error: request for member 'setCursor' in 'lcd', which is of non-class type 'int'

lcd.setCursor(0, 0);

^

keypad_values.ino:14:7: error: request for member 'print' in 'lcd', which is of non-class type 'int'

lcd.print("Analog 0: ");

^

keypad_values.ino:15:7: error: request for member 'print' in 'lcd', which is of non-class type 'int'

lcd.print(currx);

^

keypad_values.ino:16:7: error: request for member 'setCursor' in 'lcd', which is of non-class type 'int'

lcd.setCursor(0, 1);

^

keypad_values.ino:17:7: error: request for member 'print' in 'lcd', which is of non-class type 'int'

lcd.print(btnStr);

^

In function 'void loop()':

keypad_values.ino:28:9: error: request for member 'setCursor' in 'lcd', which is of non-class type 'int'

lcd.setCursor(10, 0);

^

keypad_values.ino:29:9: error: request for member 'print' in 'lcd', which is of non-class type 'int'

lcd.print(" ");

^

keypad_values.ino:30:9: error: request for member 'setCursor' in 'lcd', which is of non-class type 'int'

lcd.setCursor(10, 0);

^

keypad_values.ino:31:9: error: request for member 'print' in 'lcd', which is of non-class type 'int'

lcd.print(x);

^

warning: invalid conversion from 'const char*' to 'int' [-fpermissive]

btnStr="Select";

^

warning: invalid conversion from 'const char*' to 'int' [-fpermissive]

btnStr="Left";

^

warning: invalid conversion from 'const char*' to 'int' [-fpermissive]

btnStr="Right";

^

warning: invalid conversion from 'const char*' to 'int' [-fpermissive]

btnStr="Up";

^

warning: invalid conversion from 'const char*' to 'int' [-fpermissive]

btnStr="Down";

^

keypad_values.ino:57:11: error: request for member 'setCursor' in 'lcd', which is of non-class type 'int'

lcd.setCursor(0, 1);

^

keypad_values.ino:58:11: error: request for member 'print' in 'lcd', which is of non-class type 'int'

lcd.print(" ");

^

keypad_values.ino:59:11: error: request for member 'setCursor' in 'lcd', which is of non-class type 'int'

lcd.setCursor(0, 1);

^

keypad_values.ino:60:11: error: request for member 'print' in 'lcd', which is of non-class type 'int'

lcd.print(btnStr);

^

exit status 1
expected constructor, destructor, or type conversion before '(' token

taranagnew
Автор

Has anybody noticed that the (RIGHT) button just below the screen itself is wrongly typed (RIGHT) on this shield? Mine too. Why? Am I (RIGHT)?

fahmylina
Автор

can someone help me, the code is
const int buttonPin = A0; // the pin that the pushbutton is attached to
int buttonState = 0; // current state of the button
int lastButtonState = 0; // previous state of the button
#include <DFR_LCD_Keypad.h>
DFR_LCD_Keypad keypad(A0, &lcd);
int lcd;;
int diceOne;
int diceTwo;
#define KEY_SELECT

uint8_t read_key(void);


void backlight_on (void);

void setup() {
// initialize the button pin as a input:
pinMode(buttonPin, INPUT);
lcd.begin(16, 2);
lcd.setCursor(1, 0);
lcd.print("Roll the dice!");
}

void loop() {
if (KEY_SELECT) == HIGH {
// if the current state is HIGH then the button went from off to on:
diceOne = random(1, 7);
diceTwo = random(1, 7);
//read the pushbutton input pin:
buttonState = digitalRead(buttonPin);
// compare the buttonState to its previous state
if (buttonState != lastButtonState) {
// if the state has changed, increment the counter

}
}
}
Arduino: 1.8.6 (Windows 10), Board: "Arduino/Genuino Uno"

warning: "KEY_SELECT" redefined

#define KEY_SELECT

^

In file included from

note: this is the location of the previous definition

#define KEY_SELECT DFR_LCD_KEYPAD_KEY_SELECT

^

dice_for_catan:5:28: error: 'lcd' was not declared in this scope

DFR_LCD_Keypad keypad(A0, &lcd);

^

In function 'void setup()':

dice_for_catan:19:7: error: request for member 'begin' in 'lcd', which is of non-class type 'int'

lcd.begin(16, 2);

^

dice_for_catan:20:7: error: request for member 'setCursor' in 'lcd', which is of non-class type 'int'

lcd.setCursor(1, 0);

^

dice_for_catan:21:7: error: request for member 'print' in 'lcd', which is of non-class type 'int'

lcd.print("Roll the dice!");

^

In function 'void loop()':

dice_for_catan:25:17: error: expected primary-expression before ')' token

if (KEY_SELECT) == HIGH {

^

dice_for_catan:25:19: error: expected primary-expression before '==' token

if (KEY_SELECT) == HIGH {

^

exit status 1
'lcd' was not declared in this scope

taranagnew
Автор

if the buttons are strange to u
STOP MAKING ARDUINO VIDEO'S

dboer