Forum >lcd Keypad shield not functioning
lcd Keypad shield not functioning

Hi, I have a LCD Keypad Shield for my Ardunio Leonardo (same layout as the Uno), and I'm just trying to get a basic hello world to work using the standard example from the LiquidCrystal library. The lcd keypad is pluged stright onto my leonard, and my code looks like so:
[code]
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);
void setup()
{
lcd.begin(16,2);
lcd.print("hello, world!");
}
void loop() {}
[/code]
The lcd screen turns on, and remains blank.
I can turn the lcd on and off using pin 10, but that's the only thing I have managed to do with the shield.
Any help?
[code]
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);
void setup()
{
lcd.begin(16,2);
lcd.print("hello, world!");
}
void loop() {}
[/code]
The lcd screen turns on, and remains blank.
I can turn the lcd on and off using pin 10, but that's the only thing I have managed to do with the shield.
Any help?
2014-11-05 18:14:19 Hello Zander,
There is a LCD contrast potentiometer on the top right. Could you adjust it?
It is better to attach a simple photo about it.
Grey.CC
There is a LCD contrast potentiometer on the top right. Could you adjust it?
It is better to attach a simple photo about it.

2014-11-04 02:06:06 Sorry for the spam, but I got it working to an extent, all be it with very weird problems. The text on the diplay is extremely dim, and can only be seen from a certain angle, and the only way to get any text on the screen at all is to comment out the line
lcd.begin (16,2);
Zander
lcd.begin (16,2);

2014-11-04 01:56:31 I have tried the sample code to no avail. I also tried without the 13 pin multiple times, and with setCursor (0, 0) as well.
I even used the Serial.print command, with the sample code, to see whether the keys being pressed are picked up, and they're not.
Zander
I even used the Serial.print command, with the sample code, to see whether the keys being pressed are picked up, and they're not.

2014-11-03 18:25:13 Welcome Zander,
This is our LCD keypad wiki:
[url=https://www.dfrobot.com/wiki/index.php/LCD_KeyPad_Shield_For_Arduino_SKU:_DFR0009]https://www.dfrobot.com/wiki/index.php/LCD_KeyPad_Shield_For_Arduino_SKU:_DFR0009[/url]
[quote]LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);[/quote]
When you define the driver pins, it is a little different to the wiki one: D13
And this line:
[code]lcd.setCursor(0, 0); // set the LCD cursor position [/code]
BTW, it is better to try the sample code first.
Grey.CC
This is our LCD keypad wiki:
[url=https://www.dfrobot.com/wiki/index.php/LCD_KeyPad_Shield_For_Arduino_SKU:_DFR0009]https://www.dfrobot.com/wiki/index.php/LCD_KeyPad_Shield_For_Arduino_SKU:_DFR0009[/url]
[quote]LiquidCrystal lcd(8, 13, 9, 4, 5, 6, 7);[/quote]
When you define the driver pins, it is a little different to the wiki one: D13
And this line:
[code]lcd.setCursor(0, 0); // set the LCD cursor position [/code]
BTW, it is better to try the sample code first.
