lcd nyghtmare !!!

well i have too lcd :

one line type, Displaytech 161A (16X1 )
http://www.displaytech.com.hk/pdf/char/161a%20series-v11.PDF

and 4 lines type :
EPSON P30014400

I'll use theme with the crystal library on orduino V.012
booth are with hd44780 or KSOO66U compatible.

booth have the same pin assignement :

lcd pin -> arduino pin

1 -> ground
2-> +5 arduino
3 -> result from potentiometer from 5V arduino
4->PIN12
5->PIN11
6->PIN10
7->PIN5
6->PIN4
7->PIN3
8->PIN2

the code is the basic exemple from library :

#include <LiquidCrystal.h>

// LiquidCrystal display with:
// rs on pin 12
// rw on pin 11
// enable on pin 10
// d0, d1, d2, d3 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()
{
}

But nothing to do !!!! the result is only black 8 skare on the displaytech and 10 on the epson..!!!!

Please help me !!!!
i'm loosing my mind !!

thank's a lot

One thing to check is if your contrast is set correctly. You should be able to adjust the contrast so you can just see all the pixels when the panel is powered up. Too much contrast and all the pixels become dark, too little and you wont see any pixels.

Also, triple check the wiring and ensure that the pins in the sketch match the wiring, it's a common cause of problems.

I have found 16x1 displays a pain to interface, I suggest you get the 16x4 display going first, But I can't find any info on that Epson part number, are your sure the number is correct? Do you have a link to a datasheet for that panel? Are you sure its hd44780 compatible.

Good luck!

thank's mem,

yes, the EPSON 16X4 is hd44780 compatible ( there is 1 ship on the rear face from Hitachi 6B3 HD44780A00), but i can't find datasheet to...so i have trace the connecting from this ship (with is datasheet) to the connector, to match the wiring.

for the contrast...how to know if it's set correctly ???
With the potentiometer, i have juste a little way to obtein the black scares...if i manipulate it...the lcd is off between 90% of the way, and rapidly, on the 10% i can have the black (with little fading transition)....???

Are you using a 10k (or 20k) pot? You want the setting that just barely has the the pixels visible.

i think's its an 20K...

no, sorry, it's an 10K !

With the pot adjusted so all the pixels just become visible when powered up but not being driven, can you then see any change in the pixels when you run your test sketch?

Not sure what else to suggest if you are 100% positive that the wiring is ok. Perhaps someone else can provide some helpful tips

No, any change...only the grey scares..

i'm sure that the wiring is like i write on this tread (i'have make this 10 times to be sure...) but not sure at all about the choice of pin on lcd. exemple, is my Enable pin the 6 on the lcd ??? i think, but i'm not sure...:(((((((

I'm having the same problem with the Arduino V12 LCD library. Wiring up everything correctly according to the demo results in a row of black squares, both on a 2x24 and a 2x16 hitachi display.

Here's the interesting bit: If I wire up the rest of the data pins and use the 8-bit constructor it works. I do wind up with a couple of extra solid blocks at the end, but my text displays fine.

It seems like there's something wrong with the 4-bit mode, at least with the way it works on some displays.

I haven't had too much time to debug this, especially since I'm a total noob when it comes to this sort of thing, but I was hoping this info might help someone more knowledgeable figure out what was going on.

Note that there is an error in the comment in the version 0012 hello world example sketch, it indicates : d0, d1, d2, d3 on pins 5, 4, 3, 2

This is not correct, lcd data lines d4-d7 (lcd pins 11-14) should be connected on arduino in four bit mode.

I hope that helps

Many Thank's lungFish and mem !!

Well !! this is 2 solutions i'll try quickly !

mem : i have looking in the library code before (i have suspecting some bug with this pin order) , ...but i don't seen this !! damn !! i'm so newbe !!

Hope that's the pbm...!!

i'll report the result...

To the OP. I struggled with the same issue, regarding the typo in the 0012 LiquidCrystal - HelloWorld example. I have a 14 pin 20x2 LCD using the HD44780 protocol. Here is my data and what permitted me to get this project up and running.

The following is an except from the data sheet for my LCD describing its pinouts.

Pin No Signal Function
1 GND Ground
2 VDD +5 Power Supply
3 VD LCD Drive Voltage
4 RS “H” Data Input
“L” Command Input
5 R/W Read/Write
6 E Enable Signal
7 DB0 Data Bus 0
8 DB1 Data Bus 1
9 DB2 Data Bus 2
10 DB3 Data Bus 3
11 DB4 Data Bus 4
12 DB5 Data Bus 5
13 DB6 Data Bus 6
14 DB7 Data Bus 7

Data Bus Pins 0-7 are used for 8 bit operation.
Data Bus Pins 4-7 are used for 4 bit operation.

To get the example to work, please note...

THE PIN COMMENTS IN THE EXAMPLE ARE INCORRECT!

Arduino Pin LCD Pin LCD Signal
2 14 DB7
3 13 DB6
4 12 DB5
5 11 DB4
10 6 Enable
11 5 Read/Write
12 4 RS

Then make sure you have LCD pin 3 going to your 10k pot. LCD pin 1 to GND and LCD pin 2 goes to VDD.

Maybe i'm verry stupide but i don't understand what's wrong in my procedure :

I get this new lcd from selectronic :

http://www.selectronic.fr/article.asp?article_ref_entier=ev91.6672-2

it's HD44780 compatible, and this is the datashet :

http://www.selectronic.fr/upload/produit/fichetechnique/66722.pdf

i'm using a 5k pot or an 10k pot ....
the 012v arduino with the hello world code exemple.

my arduino pins are conected this way :

Arduino Pin LCD Pin LCD Signal
2 14 DB7
3 13 DB6
4 12 DB5
5 11 DB4
10 6 Enable
11 5 Read/Write
12 4 RS

and lcd pin 1 go to ground, pin 2 to 5V from arduino, pin 3 from pot.

But, nothing to do...that's the same thing !!!

Help me please, i really need to use lcd for proects....i'm confuse about this...!!

i'm testing with lcd pins 7-10 and pins 11-14 and reversing order, and i'm testing with 8 pin connecting for 8 bit to....

Do you have the pot wired so that the ends are connected to +5v and ground, with the center wiper connected to pin 3? If, when you adjust the pot, does the visibility of the pixels change If you can never see any pixels with the lcd powered, then it could be a bad LCD although most likely its a wiring problem.

if all else fails, perhaps posting a clear picture of your wiring may provide a clue for someone here to help you.

Ok, i just make this picture :

(the lcd pin6 is well connected to the arduino 10...)

and a video on youtube :

That looks ok if you have also tested with the enable line (lcd pin 6) connected!

Also, double check that there are no shorts or bad joints where the connector is soldered to the LCD PCB.

well...!!!
I don't know where to looking now...;(((

If the code is ok and the connections are ok then you may have a bad LCD panel. Have you contacted the supplier of the panel?

i'm trying with 3 differents lcd pannel model and i have 2 of the last references ( the 6672). AQll of them are HD44780 compatible...

Did the compatibility for HD44780 to be the cause of this pbm ?

Can we find some alternate library for driving lcd with arduino??

I'm running Arduino v12 IDE and had no problems running the 4bitLCD library. I modified the cpp file to use the pins I wanted it to use and from there, my only goof was not connecting the contrast control so I wasted a couple of hours trying to figure out why it didn't work when it really was working correctly. I doubt very much it is the library which is the problem.