16x2 lcd with UnoR3 probs

When I checked the potentiometer,I used a voltmeter and looked at the output voltage when the arduino was running and only coupled in the voltage from the arduino.I think the potentiometer works because it gives diffrent voltage to the LCD. It also changes the contrast a liiiiiitle liiiitle bit.
Little bit hard to see it in the video tho.
Here is the video: https://vimeo.com/54703995

Here is a clearly pic of how I wired everything, and a pic I got from the manual to compare with.

Here is a video showing how the white boxes flashes when I turned the potentiometer with everything wired:
https://vimeo.com/54704282

Here is the manual for the LCD from the manufactor:
http://www.kjell.com/.mvc/Document/File?id=b6e33422-63ff-48be-b140-a04a0114d7ef

And here is the code I was runnning with everyting coupled in the pic:

#include <LiquidCrystal.h>

LiquidCrystal lcd(7, 8, 9, 10, 11, 12);

void setup() {
lcd.begin(16, 2);
lcd.print("hello, world!");
}

void loop() {
lcd.setCursor(0, 1);
lcd.print(millis()/1000);
}

I've tested you sketch on my lcd+keypad shield and it worked perfectly. I just had to change the pin numbers because the lcd on my shield is wired differently than you test setup.

So I think there must be something wrong with your connections...

I've tested you sketch on my lcd+keypad shield and it worked perfectly.

Why wouldn't it work? It's the 'Hello World' example sketch that comes with the IDE.

Don

Here is the video...

You don't have to even run the first video to see the first (and possibly the only) problem.

You must solder the connections to your LCD module. A row of header pins (or very short stiff wires) would be the best choice, then you can plug the module directly into the breadboard.

Don

Since I can't see any solder that usually runs through the holes along with the wires that connect to your LCD, I'm going with not soldered wires or at least a cold solder joint.
TomJ

Here is a clearly pic of how I wired everything...

Look in the lower left box in the 'Description of Terminals' and you will see that the backlight must be supplied with no more than 4.5 Volts.

This means that you must use a series resistor to drop the voltage and at the same time limit the current through tbe LED backlight.

Don

I think the potentiometer works because it gives diffrent voltage to the LCD. It also changes the contrast a liiiiiitle liiiitle bit.

You should be able to vary the voltage at pin 3 from 0 to 5 Volts (with respect to pin 1). The display should be blank at +5 Volts and you should have a single solid row of blocks at 0 Volts. The proper setting, which will still show the blocks, will be around 0.4 Volts for your LCD.

Don

floresta:

Here is a clearly pic of how I wired everything...

Look in the lower left box in the 'Description of Terminals' and you will see that the backlight must be supplied with no more than 4.5 Volts.

This means that you must use a series resistor to drop the voltage and at the same time limit the current through tbe LED backlight.

Don

I've recently tested to connect the backlight to the 3v pin on the arduino instead. But its the same. (Ive solder the wires on the backside of the LCD)
Could I have destoyed the backlight when I wired it to the +5V?

Will buy the headers tomorrow and solder it.

Don, Dr,
I think I now understand a potential reason why we are seeing so many newbies not soldering
their connections to the LCD.
It is the Arduino Tutorial:

Nowhere in there does it ever mention needing to solder the connections
to the LCD module.
It shows them soldered in the photo, but it never says it in the text/instructions.
In fact it doesn't even list solder in the h/w requirements.
Ignoring the obvious typo of "LED" vs "LCD" this is really the only instructions:

To wire your LED screen to your Arduino, connect the following pins

And then a fritzing diagram below.

So the issue is that users can follow the tutorial to the letter and have everything
"wired" correctly and end up with a non working or even semi working LCD because the tutorial fails
to mention the requirement of soldering the connections to the LCD.

Unfortunately trying to get the Arduino team to change anything is worse
than pulling teeth. But clearly this needs to get updated.

I opened issues

http://code.google.com/p/arduino/issues/detail?id=1116

Note: It appears that github is now being used for issues but I wen't ahead
and put it on the google code page as well.

--- bill

I've recently tested to connect the backlight to the 3v pin on the arduino instead.

Regardless of how you power an LED you still need some way to limit the current and this almost always involves the use of a resistor.

Depending upon the LED configuration in the backlight circuit the 3 V supply may not provide enough voltage and/or current to work properly.

You should power the backlight from a 5 Volt supply using a resistor in between the supply and one of the backlight pins. Unfortunately your data sheet does not supply enough information to determine the required resistance so you will have to experiment. I would start out with about 150 ohms and see if the voltage across the LED is then within specifications and if the backlight is sufficiently bright.

Could I have destoyed the backlight when I wired it to the +5V?

You didn't help it or the Arduino power supply at all, but you probably didn't destroy either of them (yet) either.

Don

Unfortunately trying to get the Arduino team to change anything is worse than pulling teeth. But clearly this needs to get updated.

That is the understatement of the year.

It appears that github is now being used for issues but I wen't ahead and put it on the google code page as well.

This doesn't help the fact that most beginners rely on the 'official' Arduino pages as gospel truth and mere mortals cannot correct those pages even when they are blatantly incorrect, incomplete, or obsolete.

Don

floresta:

I've recently tested to connect the backlight to the 3v pin on the arduino instead.

Regardless of how you power an LED you still need some way to limit the current and this almost always involves the use of a resistor.

Depending upon the LED configuration in the backlight circuit the 3 V supply may not provide enough voltage and/or current to work properly.

You should power the backlight from a 5 Volt supply using a resistor in between the supply and one of the backlight pins. Unfortunately your data sheet does not supply enough information to determine the required resistance so you will have to experiment. I would start out with about 150 ohms and see if the voltage across the LED is then within specifications and if the backlight is sufficiently bright.

Could I have destoyed the backlight when I wired it to the +5V?

You didn't help it or the Arduino power supply at all, but you probably didn't destroy either of them (yet) either.

Don

Thanks for the help so far!!
Will buy everything tomorrow, and come back with the result.

Bill,

I wishto make a video of how to hook up a character display for while but didn't have time. I bet even with a video, there is no way to make it official.

Ok, I think this is kind of embarrassing..

I havent noticed the pinmarks on the backside of the lcd, because the gudie I followed was for just the same lcd.

But here is a pic of the backside of my lcd : http://oi46.tinypic.com/30tqeio.jpg

Is it true that the first pin to the left is my number 15 and next is 16?
Because I thougt the very first pin to the left was my pin number 1.

... because the gudie I followed was for just the same lcd.

I must have missed the place where you told us about this guide. Surely you don't mean the 'Hello World' example because that display obviously has the pins in a different location.

Is it true that the first pin to the left is my number 15 and next is 16?

According to your datasheet (page 2) the end pin is the backlight anode (+) and the one next to pin 1 is the backlight cathode (-).

I bet that when you get it working you are also going to find that you have been looking at your LCD upside-down. The LCD's with the row of pins at the top left seem to universally have the pins as you expected, pin 1 nearest the edge of the board and pin 14 (or 16) nearest the center. The LCD's with the row of pins at the bottom left usually have a different layout, and they are not all the same.

Now that I think about it I have not yet run into a display with the pins at the upper right, so yours may be a new (to me) variety.

Don

I found a similiar LCD (if its not the same) , with exactly the same boarddesign, and numbers of the pins : http://www.produktinfo.conrad.com/datenblaetter/175000-199999/181664-da-01-en-LCD_MODUL_STN_POSITIV_LED_WEISS_16X2.pdf

Anyway, when I wired only the VSS and the VDD from the LCD to my arduino (just making sure the LCD worked) it didnt come alive, not a sign, so, I suppose it must be broken.

How does the LCD come alive if you just wire up Vss and Vdd? You should at least hook up pin 3 to potentiometer and see if contrast can be adjusted.

Anyway, when I wired only the VSS and the VDD from the LCD to my arduino (just making sure the LCD worked) it didnt come alive, not a sign, so, I suppose it must be broken.

You have to do something with the contrast pin in order to determine if the LCD is 'working'. If you leave it disconnected it will 'float' and the resulting voltage at pin 3 will probably be a lot more than the required 0.4 volts (see reply # 10). Your LCD will then be blank and will appear to be 'dead'.

The best approach is:
(1) Get the backlight working properly. This involves only pins 15 and 16 on your LCD module.
(2) Get the power and contrast working properly. This involves pins 1, 2, and 3 on your LCD module.
The Arduino has not been used yet, except as a possible source for the power needed for the first two steps.
(3) Connect the LCD R/W pin (pin 5) to GND.
(4) Connect the six control and data wires between your LCD module and your Arduino.
(5) Upload your sketch and it should work.

Don

it didnt come alive

Wire the Vo pin to ground. You should see some black bars on the lcd.

Or your lcd is toast.

Ok, I got the contrast working now, I can se the bars.. But to get the volts down to 4,2 on my pin 15, I needed a 560K resistor... And when I got that volt it didnt light up.
So I think my backlight must have been broken.