How are you guys powering the LED backlights on your LCDs? The LED Forward Voltage range on my LCD is between 3.8v and 4.4v, with the typical voltage at 4.1v.
Can I use a PWM output to power it, or do I need to come up with a voltage divider circuit?
I am using a NewHaven LCD. In the data sheet, it says that there is an on board resistor in series with the LED which allows for safe 5v operation. Check your data sheet to see if protection is already in place.
Hey Anachrocomputer, why would you not want to use a PWM pin for this? If you wanted the screen to fade out after a menu selection was made, wouldn't you want a PWM, or were you just speaking about the protection from the 5v?
I was concerned that if you use PWM, you'll be applying the full 5V across a LED, in short pulses. This could damage a LED! If you use PWM, the peak voltage is always 5V, but the average voltage is variable, according to the mark/space ratio.
Using PWM on an LCD with a built-in resistor, or in combination with an external current limiting resistor, is OK and will allow you to fade up/down the backlight brightness.
Thanks! That's what I'll do. Looks like I need about a 2ohm resistor, > 1w.
In my research I also found a schematic for using a mosfet (powered by PWM) to adjust the brightness of the LCD, but I'll stick with the resistor for now.
If you have $20 - $30 burning a hole in your pocket you can get a fairly nice assortment ( 2000 units 1/4 or 1/2W 1% 50 values ) of the most common values online