LCD is not working

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
jerryoh2000
 
Posts: 2
Joined: Wed Jul 15, 2009 9:24 am

LCD is not working

Post by jerryoh2000 »

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.
Attachments
DSC09972.JPG
DSC09972.JPG (610.45 KiB) Viewed 2458 times

User avatar
floresta
 
Posts: 223
Joined: Thu Jul 31, 2008 10:27 am

Re: LCD is not working

Post by floresta »

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

Code: Select all

LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
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

jerryoh2000
 
Posts: 2
Joined: Wed Jul 15, 2009 9:24 am

Re: LCD is not working

Post by jerryoh2000 »

You mean, I need to change like

Code: Select all

LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
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!
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 change

Code: Select all

LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);
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

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: LCD is not working

Post by adafruit »

actually, it does. i updated the link as well :)

User avatar
floresta
 
Posts: 223
Joined: Thu Jul 31, 2008 10:27 am

Re: LCD is not working

Post by floresta »

You mean, I need to change like
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
I think that will do it. Forget my statement about the '-1'.

Don

User avatar
floresta
 
Posts: 223
Joined: Thu Jul 31, 2008 10:27 am

Re: LCD is not working

Post by floresta »

Ladyada:
actually, it does. i updated the link as well
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.

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

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: LCD is not working

Post by adafruit »

ah...just use the SECOND link, 7-14 dated

its been really updated now!

User avatar
floresta
 
Posts: 223
Joined: Thu Jul 31, 2008 10:27 am

Re: LCD is not working

Post by floresta »

its been really updated now!
Get a good night's sleep then take another look at the page in the morning....

Don

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: LCD is not working

Post by adafruit »

huh? i just downloaded the library again, the Hello World sketch has the correct pinouts indicated

User avatar
floresta
 
Posts: 223
Joined: Thu Jul 31, 2008 10:27 am

Re: LCD is not working

Post by floresta »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”