Help with LCD (JHD162A)

Folks,

I tried to use the LiquidCrystal sample with a JHD162 (which looks fairly compatible w/ Hitachi's one). However, I get a blank line and another one fully filled. Here is a link to my board and its output:

http://www.leal.eng.br/gallery2/v/Fotos/misc/lab/DSC00145.JPG.html

I tried LCD4bit, but to no avail. Any ideas?

Thank you

Not sure from the picture, but it doesen't look like you are using the same pinout as the example liquid crystal sketch. Make sure you wiring matches the code.

It does - The detail is that JHD needs an additional +5/GND conn on pins 15/16 for its leds (the leftmost are for its backlit display).

Perhaps its parallax from the image, it looks like you were connecting pins 0 through 3 instead of 2 through 5

I have a similar problem.

Just got my Arduino, and ordered a displaytech 162 LCD with it as well. Looks similar to the one on the picture (http://www.turtlecreations.nl/index.php?id=lcdblw).
I connected to following LCD pins:

1 ground
2 5V
3 potmeter 1K (connected to 5v and ground)
4 Arduino pin 12
5 Arduino pin 11
6 Arduino pin 10
11 Arduino pin 5
12 Arduino pin 4
13 Arduino pin 3
14 Arduino pin 2
15 5v
16 ground

I run the example LCD Hello world sketch from the arduino program, but all I got are the 16 blocks as in the picture on the first posting. Turning the potmeter doesn't show any characters. I also run a dummy program and I got the same results.

What am I doing wrong? Is this LCD maybe not suitable, or should it be used with the 8 pin connection, instead of the 4 pins? Is the LCD broken?

Any help would be appreciated.

==========
#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()
{
}

The same connection. So, its not parallax. Tried 8-bit as well, didn't help.

Perhaps better look at its (JHD162) own source and try to figure out something. This source might help, lets try.

Aldrin Leal and Nightlife31:

The LiquidCrystal library relies on an LCD initialization technique that works on many, but not all LCD modules. I have written a fairly comprehensive review of the problem, and also a solution, which you can find at http://web.alfredstate.edu/weimandn . Follow the link to LiquidCrystal library.

Don

Thanks,
I'll give it a try, been trying all night to get it to work, but no result.

Backlight died unfortunatly. Read afterwards that it take 3.3V, not the 5V I gave it. Wonder if I should have added a resistor as well, as is needed for normal leds.

I assume the backlight itself doesn't have anything to do with the problem mentioned above. I use a torch to look for characters.
Any change to fix the backlight, or buy a new one?

Don,
Just tried your improved library, but unfortunatly I didn't see any change. Still the one blank line and one filled with blocks :frowning:

Same here - I'm giving up.

Sorry folks, it seems it wasn't just a good choice. Next time I will try to get your blessing first.

Thank you

I had similar issues. Have you tried cycling the power to your lcd and reseting your arduino. This actually got me past a sticking point when working on mine. Also, just to clarify you do have the contract pin connected to the wiper on the pot? Using the LiquidCrystal library, I have made it a habit to do a lcd.clear() in my setup. I am still quite novice but these are a few things that helped me.

I have had the same issue with JHD 162A. I tried all the options as suggested by different members but in vain.

Aldrin - Please let me know if you recently had any luck with this LCD issue.

Thanks

Hello,

Seems I have the exact same issue as you mention here. Anyone got a working solution ?

My post here http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1246913306

Hi,
Look here:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1246364438/5#5

Hi Everyone,

I've run head on into this problem and i cant figure out a solution. All pin connections have been thoroughly checked and I'm using the latest LCD library. Still nothing but the 16 blocks... I didn't realize arduino would take this much of my sanity this fast :-/

Any help would be greatly appreciated!

I've always been a fan of simple. Just a stab in the dark, what if you just ground pin 5 on the panel and change the LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2); to LiquidCrystal lcd(12, 11, 5, 4, 3, 2); Its what I use on mine - admittedly not a JHD162 but a non descript I found on ebay. I followed this I found and it works :

http://www.skpang.co.uk/content/view/29/42/

It uses the LCD4bit library but it also works fine with the standard LiquidCrystal library (one you've changed the code to suit, it uses completely different calls to achieve the same thing). The demo sketch with the above link works, even if it is just advertising his site. Easier to work from a position of success rather than failure.

You're a lifesaver, grounding the 5th pin did the trick. Thanks +1 Karma!

Can't beat simple..... :wink:

works just fine with the JHD 162A