LCD(JHD 162A) Interface

I just bought new Arduino Duemilanove with ATMega328. I am trying to interface the JHD 162A LCD ( comaptible with 4478 chipset). I tried with the new libarary but it doesn't work. What I get is 16 black boxes on the top row and bottom row is clear. I searched for the troubleshooting on different forums including this one. I tried different things suggested by users and nothing seems to work. It seems that Arduino is unable to initialize the LCD. If anyone has come across the same issue and ride past it, please help me.

Thanks!!

Did you connect a potentiometer to the contrast input to get the screen to the correct contrast?

Hi Mike, I have connected a 10 K linear POT on Pin3 for contrast. I have checked it and the contrast thing works. Do you think, the problem lies in the initialization code? I think may be the delays which are there in the LiquidCrystal.cpp are not according to the datasheet.

Thanks.

btw1095:

If anyone has come across the same issue and ride past it, please help me.

This issue has come up many times. Unfortunately the search function of this bulletin board seems to be severely crippled since it will only return a limited number of matches. Try scanning through the "Troubleshooting" and the "Interfacing" areas of both software and hardware looking for LCD related topics.

I tried with the new libarary but it doesn't work

Which "new library" did you try your LCD with?

Some programmers, including the anonymous one who wrote the LiquidCrystal library, use an LCD initialization technique that will not work reliably with some power supplies. I have an explanation and a fix which you can access at http://web.alfredstate.edu/weimandn. Follow the link to [u]LCD Initialization[/u] for the explanation and follow the link to [u]LiquidCrystal[/u] library for the fix.

Don

Hi, Is Your problem solved? Otherwise I have a drawing showing my LCD connections between my JHD162A and my Arduino Duemilanove. My LCD display works perfectly with the LiquidCrystal library mentioned earlier. I'll post the drawing in the following post, as I'm not allowed to post links because this is my first post.

Kind regards.

http://www.lars-oeh.dk/Arduino/Screenshot--home-lo-Documents-LCD_arduino.flw%20-%20Kivio.png