Driving LED's with PWM


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Driving LED's with PWM

    Pretty much the same thing I observed.

    Brightness requires current, I don't think you can get around that.

    Maybe if you start tinkering with transformers?

    Robert

  2. #2
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: Driving LED's with PWM

    Is this statement correct?

    Even though the currents are similar, using PWM without a resistor must be more efficient since a resistor isn't being heated.

    Another thing that doesn't make sense is the non-linear curve in current when adding diodes onto the PCB. One LED consumes 30mA but two doesn't equal 60.

  3. #3
    Join Date
    Oct 2011
    Location
    East Coast USA
    Posts
    16


    Did you find this post helpful? Yes | No

    Default Re: Driving LED's with PWM

    An LED cannot have more than its forward bias voltage across it. For an old red LED that voltage is about 1.6 volts. Sacrifice one by driving one with a variable power supply. It will start lighting at a little over 1.5 v. It will be brightest at 1.6v. Only when it burns out will the voltage go much higher than that.

    In a circuit, the current is limited by the impedance (resistance) of the circuit driving it. If you drive the LED directly from a i/o pin, the current will be limited by the impedance of the output circuit. The output transistor or FET will act as the resistor and limit the current to some value.

    There are two different limits on the current through the LED, the maximum instantaneous current and the max average current. If you exceed the first, the LED will fail immediately. If you exceed the second, it will overheat and die more slowly. There should be a resistor to limit the current to below the max instantaneous current. You can then use PWM to stay below the max average current.

    The instantaneous current through the LED can be calculated using i = e / r where r equals the sum of the impedance of the driver plus any external resistor. Heat will be lost by the voltage drop across the driver transistor and the external resistor.

  4. #4
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Driving LED's with PWM

    Quote Originally Posted by Christopher4187 View Post
    ...Another thing that doesn't make sense is the non-linear curve in current when adding diodes onto the PCB. One LED consumes 30mA but two doesn't equal 60.
    I have a similar problem. I'm designing panels for my residential alarm system and I'm kinda overwhelmed by the possible maximum current. A LOT of LEDs could potentially be on at the same time (I'm using solid strand 24 AWG telephone wire with 12V 7Ah battery backup).

    I started with LCDs, but these panels are not only for the house where it's warm, it's also for the garage (worried about cold and humidity).

    Robert


  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Driving LED's with PWM

    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Driving LED's with PWM

    Thanks!

    Just went through the 1st, great stuff!

    Didn't download the dice yet. I want to see what I can do on my own first.

    Robert The Very Happy Camper

  7. #7
    Join Date
    Oct 2005
    Location
    New Jersey
    Posts
    425


    Did you find this post helpful? Yes | No

    Default Re: Driving LED's with PWM

    Quote Originally Posted by Demon View Post
    I have a similar problem. I'm designing panels for my residential alarm system and I'm kinda overwhelmed by the possible maximum current. A LOT of LEDs could potentially be on at the same time (I'm using solid strand 24 AWG telephone wire with 12V 7Ah battery backup).

    I started with LCDs, but these panels are not only for the house where it's warm, it's also for the garage (worried about cold and humidity).

    Robert

    If it's a panel inside then you could supply 1-3mA per LED. There's no reason to supply the maximum amount of current since you won't have an audience to view them and they are inside. I recently used Screenmaster LED's and at 1mA they were really bright. I wish I had your problem. My LED scoreboard is outside and the sunlight hits it. Needless to say the LED's have to be really bright.

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154


    Did you find this post helpful? Yes | No

    Default Re: Driving LED's with PWM

    Quote Originally Posted by Christopher4187 View Post
    If it's a panel inside then you could supply 1-3mA per LED. There's no reason to supply the maximum amount of current since you won't have an audience to view them and they are inside. ...

    I'll be using surface-mount LEDs that I have on hand (got some greens, yellows and reds). I think they require somewhere between 15-20mA to be reasonably visible in daylight inside the house (some panels could be in full sunlight).

    I'll be making my own light chimneys with clear liquid plastic from Smooth-On.

    Finished preliminary testing today, very low current is achievable, I just have to improve code logic and efficiency:
    http://www.picbasic.co.uk/forum/showthread.php?t=18906

    Of course none of the colours I have are of the same brightness so some tweaking of the resistors will be necessary.

    Robert

Similar Threads

  1. control 60 tri-color LED's
    By MOUNTAIN747 in forum General
    Replies: 0
    Last Post: - 15th September 2011, 23:30
  2. shared data lines for LCD and LED'S?
    By nomad in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th February 2009, 04:37
  3. Scolling LED's
    By Melanie in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th July 2008, 23:28
  4. Killing blue led's
    By Steve_88 in forum Off Topic
    Replies: 3
    Last Post: - 31st January 2008, 02:37
  5. Driving a Voltage Regulator with PWM
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 27th June 2007, 13:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts