16x2 LCD Backlight Power Problems

Hello All:
I'm new to Arduino, programming and electronics. (Please be gentle).
I searched the forum, and although I found MANY LCD Power issue threads, I could not find my answer.

When I plug my LCD into the Arduino (Pin 8 ) and set it to HIGH it goes on as expected.
But it is not as bright as when I plug it directly into 5V power on the breadboard.
I've tried other pins including PWM pins using an analogWrite.

Pin 8 Meters out at 5v as does the breadboard.

Is there any reason for the dimmer screen?

Yes. Your backlight is probably drawing more current than the Arduino I/O pin can supply. It doesn't matter which pin you try they all have the same limitations. You are overstressing your Arduino and it is doing the best it can to power your LCD backlight. Ultimately you are likely to irreversably damage the I/O pin.

It is generally considered a good idea to limit the current from any single I/O pin to around 20 mA. The absolute maximum allowable current for any one pin is 40 mA and there is also a limit to the total current for various groups of pins.

If this is the case then you should power your LCD backlight directly from the 5V and control it with a transistor driven by an I/O pin if you feel that such control is necessary.

Don

Oh! I was under mistakenly the impression that all of the pins were capable of outputting 5V I have alot to learn but that clears it up for me for now...except now I need to research transistor control of the backlight. :slight_smile:

Thank you for clarifying that for me!

Nick

They all do output a nominal 5v when they aren't being overloaded. When you draw too much current the output voltage drops.

Don

If resistor R8 (or R9) on the back of the 1602 display is "101" - 100 ohms - then you are not overloading the Arduino pins because that value restricts the current to about 20 mA.

It's not a matter of "too much current" at all. The fact is that the Arduino driver does necessarily have some inherent resistance, and can not hold the voltage at 20 mA - you lose at least half a volt (Figure 34-24 in the datasheet) so naturally the LED will be dimmer powering it from a port pin, than directly from 5V.

You might get it a little brighter by controlling it with a transistor or a logic-level FET - if it matters.

It is also worth asking why you feel the need to turn it off. :grinning:

Note also that Figure 34-24 very strongly hints that the Arduino pins are not intended to source (or sink) more than 20 mA.

Thanks again. My project is a switch controller for my jeep. I was providing an option to turn the light off at night in case it's distracting while driving. (nick.cornaglia)

Nick:
That fancy website doesn't work if you have your browser set up to reject all the crap that this forum software generates.

Your Jeep logo is missing a vertical bar between the headlights.

Don

HERE is the datasheet for my unit...

floresta:
Nick:
That fancy website doesn't work if you have your browser set up to reject all the crap that this forum software generates.

Your Jeep logo is missing a vertical bar between the headlights.

Don

Just my way of getting away with a "free" webpage my work portfolio (which isnt there at the moment).

And yes...seven grill openings. But I haven't figured a way to make that nicely with characters. :slight_smile:

floresta:
That fancy website doesn't work if you have your browser set up to reject all the crap that this forum software generates.

Dead right - the webpage shows a textured background with nothing on it and links that do not work!

Finally - a datasheet showing the correct way to control the contrast!

If indeed it has multiple LEDs in the backlight and draws 150 mA, you will need a switching transistor for it.

I have an LCD on order but I want to try to learn how to do this before I change things up. Once I figure it out, I'll report back. Thanks.

Your browsers really block all function on that site?

Your browsers really block all function on that site?

Yes. It's just as Paul described.

It's collateral damage resulting from the defensive techniques required to make sites like this one usable when you have any combination of bandwidth, data cap, and/or latency restrictions.

Don