Go Down

### Topic: What resistor(s) would I need for this back light? (Read 1 time)previous topic - next topic

#### SilkyPantsDan

##### Nov 02, 2011, 10:30 pm
Hey all,

Still researching an LCD for my project, and trying to brush up on my basic electronics at the same time. Been looking at this LCD (datasheet) and wondering how I would connect it up to be able to toggle the back light (just on/off at this stage) - mainly the resistors.

1) Since the mA are larger than the 40 mA max for the pin, I need to use one to bring it down correct? But from what I read here there would be no voltage left over making the result 0. Is that wrong? should I be using a 330 ohm instead to connect to the pin? (5V / 20mA ideal)

2) As the LED in the back light seems to run @ 145mA - would I need a second resistor to be running it at maximum brightness to save burning it out? Something like:

5V+
|
<
> 47
<
|
330  |
digital pin ---^v^v--+-------------LED+

+-------------LED-
|
|
|
Gnd

Is any of this right? or should I hit the books?

Thanks for the help

#### fm

#1
##### Nov 02, 2011, 10:41 pm
For that current you will need a transistor in place. Look out for transistor switching circuits.

What you have posted is no good sorry.

#### Rokkit

#2
##### Nov 02, 2011, 10:49 pm
The display's backlight LED has resistors built in.  You just need to supply 5V (positive to pin 15, negative to pin 16).  No external resistors needed.

Since the backlight is LEDs, you shouldnt have to worry about them burning out.  If you're looking to toggle them on and off via the arduino, you'd need an external transistor to switch the power, as the microprocessor can't handle that current.
"Every day is a good day, some are just gooder than others."   D. Fowler

#### SilkyPantsDan

#3
##### Nov 02, 2011, 10:56 pm
Cool - thanks for the quick reply guys

I had read some stuff about using transistors to switch it on/off, but want to get the real basics back in my head before going forward. looks like I might have to if I want the extra space on the LCD.

#### fm

#4
##### Nov 02, 2011, 10:57 pm

The display's backlight LED has resistors built in.  You just need to supply 5V (positive to pin 15, negative to pin 16).  No external resistors needed.

Don't agree, in some cases they may work for most cases it will not. For this LCD I am hesitant since it needs a very high driving current.

I've tried to debug some circuits, that apparently worked well and for some reason they ended up flipping the LCD - resistor in place all done and dusted. Best practice, use a resistor to be sure.

#### Rokkit

#5
##### Nov 02, 2011, 11:16 pm
I've used this display on my last 2 projects.  It does not need resistors for the LED.  Look at the datasheet on the bottom right.  You'll see that V0 is on a pot between VSS and VDD for brightness, which allows you to turn the pot from 0V to 5V.
"Every day is a good day, some are just gooder than others."   D. Fowler

#### fm

#6
##### Nov 02, 2011, 11:41 pm
OK if you've used it with no resistor I have little to say. The only thing is that Vo is to control the contrast on the LCD, turn it down and see what happens. It will not affect the backlight.

#### Rokkit

#7
##### Nov 03, 2011, 03:27 am
Quote
OK if you've used it with no resistor I have little to say. The only thing is that Vo is to control the contrast on the LCD, turn it down and see what happens. It will not affect the backlight.

You're absolutely right about the contrast control.  I totally read that wrong.

"Every day is a good day, some are just gooder than others."   D. Fowler

#### SilkyPantsDan

#8
##### Nov 03, 2011, 07:20 am
Thanks guys - so just to be clear:

Hook up the LCD backlight using a transistor for switching, AND
Use a resistor to be sure not to blow it

#### Rokkit

#9
##### Nov 03, 2011, 02:03 pm
If you insist.  The resistor isn't needed though
"Every day is a good day, some are just gooder than others."   D. Fowler

#### Rokkit

#10
##### Nov 03, 2011, 02:43 pm
Here's a drawing to get you started:

"Every day is a good day, some are just gooder than others."   D. Fowler

#### floresta

#11
##### Nov 09, 2011, 09:40 pm
The original question was about turning the LED backlight on and off so all the discussion about the contrast adjustment is interesting but irrelevant, as is the wiring diagram.

Your display does not need an external current limiting resistor for the backlight but since the current is 145mA you will need a transistor to control the backlight with your Arduino.  Any garden variety NPN transistor will work, such as a 2N3904 or 2N2222.  Connect the backlight pin 15 (LED Anode) to +5 V and backlight pin 16 (LED Cathode) to the transistor collector.  Connect the transistor emitter to GND.  Connect the Arduino output pin through a 330 ohm resistor to the transistor base.

Don

#### Rokkit

#12
##### Nov 10, 2011, 03:28 pm
The drawing depicts the REQUIREMENTS of the LCD display, and is 100 percent accurate.  As drawn, the backlight will be on all the time.  It was a drawing from a project I did a while ago, and I documented it for future reference.

However, if you want to switch the LED on and off, the transistor requirement is mentioned in the 1st and 2nd reply on this thread.

"Every day is a good day, some are just gooder than others."   D. Fowler

Go Up

Please enter a valid email to subscribe