I bought "Standard LCD 16x2" from adafruit as shown below;
http://www.adafruit.com/index.php?main_ ... fc1b6e3626
And I followed the instruction in the page shown above very carefully (I hope...^^).
I replaced the existing LCD library with updated library (file name contains 7/6/2009).
But it shows filled blocks in the top line as shown in the attached photo.
Here is the souce code I used, which is its example code.
#include <LiquidCrystal.h>
// LiquidCrystal display with:
// rs on pin 12
// rw on pin 11
// enable on pin 10
// d4, d5, d6, d7 on pins 5, 4, 3, 2
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
void setup()
{
// Print a message to the LCD.
lcd.print("hello, world!");
}
void loop()
{
}
Thanks in advance.
LCD is not working
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 2
- Joined: Wed Jul 15, 2009 9:24 am
LCD is not working
- Attachments
-
- DSC09972.JPG (610.45 KiB) Viewed 2458 times
- floresta
- Posts: 223
- Joined: Thu Jul 31, 2008 10:27 am
Re: LCD is not working
I've never even seen a real Arduino, much less used one, but your photograph shows what appear to be pin numbers on the pc board silk screen. It looks like you have RS --> 7, RW --> GND, E --> 8, D4 --> 9, D5 --> 10, D6 --> 11, and D7 --> 12.
You need to change to match your setup (use -1 for the RW pin since you have grounded RW) or change your wiring to match the current code.
Don
You need to change
Code: Select all
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
Don
-
- Posts: 2
- Joined: Wed Jul 15, 2009 9:24 am
Re: LCD is not working
You mean, I need to change like
That makes sense.
It seems that the web page I refered has a problem ~ the photo and attached code is not matching.
Thank you very much!
Code: Select all
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
It seems that the web page I refered has a problem ~ the photo and attached code is not matching.
Thank you very much!
floresta wrote:I've never even seen a real Arduino, much less used one, but your photograph shows what appear to be pin numbers on the pc board silk screen. It looks like you have RS --> 7, RW --> GND, E --> 8, D4 --> 9, D5 --> 10, D6 --> 11, and D7 --> 12.
You need to changeto match your setup (use -1 for the RW pin since you have grounded RW) or change your wiring to match the current code.Code: Select all
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
Don
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: LCD is not working
actually, it does. i updated the link as well
- floresta
- Posts: 223
- Joined: Thu Jul 31, 2008 10:27 am
Re: LCD is not working
I think that will do it. Forget my statement about the '-1'.You mean, I need to change like
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
Don
- floresta
- Posts: 223
- Joined: Thu Jul 31, 2008 10:27 am
Re: LCD is not working
Ladyada:
Also, it looks like you may have lost a link to a datasheet in the prior sentence.
If anybody reading this thinks it is easy to keep a website like adafruit.com up-to-date without problems like this you really should try it sometime.
Don
You missed updating this one: "To use with an Arduino, we suggest using our updated LiquidCrystal library." You get the old examples with this link.actually, it does. i updated the link as well
Also, it looks like you may have lost a link to a datasheet in the prior sentence.
If anybody reading this thinks it is easy to keep a website like adafruit.com up-to-date without problems like this you really should try it sometime.
Don
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: LCD is not working
ah...just use the SECOND link, 7-14 dated
its been really updated now!
its been really updated now!
- floresta
- Posts: 223
- Joined: Thu Jul 31, 2008 10:27 am
Re: LCD is not working
Get a good night's sleep then take another look at the page in the morning....its been really updated now!
Don
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: LCD is not working
huh? i just downloaded the library again, the Hello World sketch has the correct pinouts indicated
- floresta
- Posts: 223
- Joined: Thu Jul 31, 2008 10:27 am
Re: LCD is not working
LadyAda:
I guess I was too cryptic in my attempt at humor. The material at the link destination is ok, it's the material on the page containing the link (http://www.adafruit.com/index.php?main_ ... cts_id=181)that is garbled. Also, there is another outdated link on your main page (http://www.adafruit.com/index.php?main_page=index).
Don
I guess I was too cryptic in my attempt at humor. The material at the link destination is ok, it's the material on the page containing the link (http://www.adafruit.com/index.php?main_ ... cts_id=181)that is garbled. Also, there is another outdated link on your main page (http://www.adafruit.com/index.php?main_page=index).
Don
Please be positive and constructive with your questions and comments.