I connected a usual LCD 16x2 to my arduino.
But the LCD doesn't work. I used the code from http://arduino.cc/en/Tutorial/LiquidCrystal
and I connected the pins like I saw on http://arduino.cc/en/Tutorial/LiquidCrystal
All I saw was a blank display and when I adjust the potensiometer I saw these white squires. I sent pictures of this project. I hope you can help me.
I tried a few times to reconnect the lcd i dont think this is the problem. I also checked the solders. I suspect the problem is with the lcd. Althogh it has 16 legs maybe it doesnt support hd44780?
I suspect the problem is with the lcd. Althogh it has 16 legs maybe it doesnt support hd44780?
I am pretty sure that this is not the case. Your LCD is obviously functioning but the single row of rectangles indicates that it's controller is not being initialized properly. This is almost always due to programming errors or wiring problems. When you get these sorted out your LCD will most likely function as intended.
If you really want to get this resolved then you should provide the information that we are asking for. Basically we need only two things to get started.
(1) A complete listing of the actual code that you are using. This should be a copy and paste from the Arduino IDE. A copy of or link to the code that you think you are using is not the same.
(2) A photograph of your setup that clearly and unambiguously shows all of the connections between your Arduino and your LCD.
It has to be said I have had a number of these sorts of conversations over eBay messaging with customers. Eventually I get them to wire it correctly and they work.
I doubt that the chips are actually Hitachi but on the other hand I would be very surprised if they were not 100% hd44780 compatible.
Show us it wired correctly with the actual code, it should not take long to see if there is a fault anywhere.
floresta:
Isn't that the same as "It look like you may have the wires going to LCD D4 and LCD D5 swapped"?
Yes but since I'd just spent about half an hour ZOOMING in on the photo to glean that information. I hadn't seen the comment "It look like you may have the wires going to LCD D4 and LCD D5 swapped".
If my efforts are so unappreciated I think I'm done with this thread.
If (you can't figure it out && everybody keeps telling you it has to be the wiring && they even point to an error){
tear down your hardware setup;
rebuild setup using the given advice;
}
The "empty" post actually holds a link to an image.
The IMG tags are used but do not do what they are supposed to do.
I just tried that using the image button.
This is the actual link: