Pages: 1 [2]   Go Down
Author Topic: HD44780 LCD Backlight control with PWM  (Read 11315 times)
0 Members and 1 Guest are viewing this topic.
Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is the R1 for?

Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

a pulldown resistor so that the mosfet doesn't get high when it shouldn't. Is it wrong ? Should I remove it completely ? I had doubts about it.
Logged

Espoo, Finland
Offline Offline
God Member
*****
Karma: 7
Posts: 586
"Oops, try again..."
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, examine  it a little, and tell me what it does in your circuit.

Kari
Logged


The only law for me; Ohms Law: U=R*I       P=U*I
Note to self: "Damn! Why don't you just fix it!!!"

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have to admit I'm not really up on FETs but I think that link I posted is confusing smiley-razz

In your case you don't want the 10Kohm resistor - it was only there on the linked one due to how it was wired with the external supply.

So LED- to D, S to Ground and G to D3

I'd personally put the 150ohm resistor between S and Ground but that's just personal preference
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 27
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Kari : looks like the 10k sucked all the juice from the lcd in my previous schematic.

mowcius : It seems right now, thank you.

Here is the final (more simple) design :



Zoom

« Last Edit: March 20, 2011, 05:31:31 am by pixelk » Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That looks better smiley
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Despite posts on this thread, I believe that the HD44780 positive backlight pin comes with an LED preattached internally on the board. The datasheet states to just put 5V on the line, so I'm pretty sure there is a resistor there already protecting the LED backlight. However, to be safe, it doesn't hurt to put a 150 ohm resistor.

However, this is the way that I hook mine up:

http://www.learningaboutelectronics.com/Articles/How-to-turn-on-the-backlights-of-a-HD44780-LCD
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is that really a satisfactory reason to drag up such an old thread?  smiley-razz

*Some* LCDs have a resistor inline with the backlight but some don't. That depends completely on the LCD and looking at the specific datasheet for your LCD will tell you if it does or not.

This thread was also discussing pulse width modulation of a pin to dim the backlight, not simply powering it.
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 32
Posts: 4246
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Is that really a satisfactory reason to drag up such an old thread?
It's irrelevant as well as you have pointed out.  Here's more.

Quote
Despite posts on this thread, I believe that the HD44780 positive backlight pin comes with an LED preattached internally on the board.
The Hitachi HD44780 LCD controller has been around for more than two decades.  The controller used (and still uses) a 14 pin interface with no provisions for a backlight.

Early LED modules that had backlights used electroluminescent panels that required >100 volts to operate.  The connections were at the end of the display, not on adjacent pins 15 and 16 as on current modules with LED backlights.

How to deal with the backlight is determined by the manufacturer of the pc board on which the LCD panel and LCD controller is also mounted.  The LED backlight is completely independent of the LCD and it's controller.


Don
« Last Edit: May 27, 2012, 11:16:50 am by floresta » Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm thinking that's probably their own website and or/they're a spammer.

Ahh well.

Thanks for the interesting additional info on HD44780 controlled displays though. I wasn't aware the controller had been floating around for so long!
Logged

Western New York, USA
Offline Offline
Faraday Member
**
Karma: 32
Posts: 4246
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I wasn't aware the controller had been floating around for so long!

Actually it's pushing three decades if today's post in this forum thread is correct.  http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=109880

Don
Logged

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Older than me then! smiley-grin
Logged

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 46
Posts: 2864
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No... eliminate R1 it will limit the current flow through the Mosfet as it is in series with the source lead, Ground the source and all should work fine except the analogwrite() function will be reversed, I believe, where 255 would be off and 0 would be fully on and you might well SLOWLY reduce the 150 ohm resistor value (NO Pot will work well here) if needed start with a 4700 ohm in parallel with the 150 ohm, the resultant resistance will be about 110 ohms (113.7 ohms) but only if the brightness of the back-light isn't workable in normal room lighting. Most LCD's aren't of the daylight viewing types.  IMO

Doc
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

North Yorkshire, UK
Offline Offline
Faraday Member
**
Karma: 104
Posts: 5531
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Docedison - this thread's over a year old now - I think they've probably got something working!
Logged

Pages: 1 [2]   Go Up
Jump to: