Go Down

Topic: Problem with 16x2 display (Read 1 time) previous topic - next topic


I have a small problem with my 16x2 lcd display (HD44870 compatible). I connected it to my Arduino like described here: http://www.instructables.com/id/Hookup-a-16-pin-HD44780-LCD-to-an-Arduino-in-6-sec/
And it works, except for the fact that the characters are barely visible. V0 is connected to a 10k trimmer, when even when this is set to 0V the contrast is really low. If I reset the arduino and/or reconnect the display I sometimes get random charactes with decent contrast.
Any ideas?


How often are you updating the display?
Are you clearing the display? If done rapidly, that can cause flicker which can make
the pixels to appear to be dim.

--- bill


Jan 10, 2013, 04:03 pm Last Edit: Jan 10, 2013, 04:06 pm by floresta Reason: 1
How often are you updating the display?

Along these same lines...
Since you have not posted your code we have to guess.  My guess is that you are writing all of this stuff to the LCD in loop().  You should rework your code so that the information that does not change, the top line and the "  value is  :", is sent to the display in setup().  Only the changing information should be written in loop().  You will have to look into the setcursor() command and you will have to deal with values that change from three digits to two digits (such as 100 --> 99).  Try it, you will see what I mean.


Edit:  That is an interesting display, with duplicate terminals at the top left and bottom right.  Could you identify it and/or point me to a data sheet?


Jan 10, 2013, 04:41 pm Last Edit: Jan 10, 2013, 04:43 pm by Satch Reason: 1
This is the ebay auction I got the display from: http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&item=251049844026 As you can see it looks different in the item description - that's China for you I guess  :)
Unfortunately it didn't come with a data sheet...

I reworked the code, included a delay of 0.5 s, but no change - but the problem is something else entirely as I just found out:
It's the power supply. I bought a 5V/1A power supply, which I used when I took the photo. Just now I connected the arduino to my computer to upload a sketch - and now it works perfectly!

I checked the voltage on the 5V Terminal of the arduino: When I use the external power supply I only get 3. something Volts there, which explains why the contrast of the display was so low. But the power supply does output 5V when nothing is connected, and when I power the display separately with the power supply it works as well (but then I don't have a common ground, plus I don't want to use two power supplies).
How can this be, the external power supply has more juice than a usb port, right? Is this a problem with my arduino?

Edit: Nevermind, should've read the data sheet of the Arduino more carefully: 7-12V for the power supply , but 5V operating voltage  :smiley-zipper:


How can this be, the external power supply has more juice than a usb port, right?

Yes, if it actually can deliver what it says it should.  Did it come from China as well?


Go Up