Automotive (or super bright) LEDs


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891

    Default Automotive (or super bright) LEDs

    Hello,

    I'm making a motorbike stoplight with automotive (or super bright) LEDs.

    The led's datasheet sais that you can power them normally at 2Volts/20mA or at 100Hz with a 1/10 dutycycle without specification of Voltage but only talking about maximum current limitation (200mA !!!).

    My questions are:

    1.- Did anyone use these leds and would explain me why it should be "pulsively" powered?

    2.- PWM won't work below 250Hz (on a 4MHz clocked PIC). Any other way to get 100Hz appart from playing with PAUSEs?
    Roger

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


    Did you find this post helpful? Yes | No

    Default

    First question:

    Variable frequency is used to vary the brightness of a light or speed of a motor. You can 1. change the voltage 2. change the current 3. change the frequency.

    Options 1 and 2 require a variable power supply or resistance. Option 3 a simple oscillator proves to be the most efficient and controllable.

    For an example say a typical LED can handle 3.6 volts at 20ma max. I have a 5 volt power supply and need an indicator. I would use a 470 resistor with the LED and it will last for a long time. May not be full brightness but ... I can live with the loss of efficiency here. If I wanted full brightness I could calculate the exact resistance to get the correct voltage drop or pulse the 5 volts so the LED sees over TIME the correct voltage and current.

    With a cluster it will depend on how many are hooked up either series or parallel .

    Question 2

    Why not use a timer (555) or a two transistor oscillator to control the frequency. If a CPU is needed for something else it could control the oscillator.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default

    It is perfectly logic to not specify the LED manufacturer the voltage where the led will consume 200mA. You have to make the current limiting with a proper circuit. The voltage is relevant to that circuit. One may design a pulsed current source that needs 20 volts to produce 200mA flow and another designer a better circuit that can work on 5 Volts. The LED has to be limited to 200mA and the voltage at its leeds will be managed by itself (I bet it wont be more than 3,5 Volts).

    By pulsing you will not gain in brightness more than DC driving. The total dissipation of the LED should be the same in any circumstance. You can just vary the brightness. So you can simulate the normal red tail light and STOP light.

    Ioannis

  4. #4
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Thumbs up

    Thanks a lot for your information.

    In my case, I think it will not be mandatory to pulse anything.

    Let's make it simple, no?

    Thank you anyway.
    Roger

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default

    Yes. Keep it simple!

    Ioannis

  6. #6
    Join Date
    Jul 2005
    Posts
    78


    Did you find this post helpful? Yes | No

    Default

    It makes great sense to pulse LEDs, and is well worth the trouble in increased performance.

    You have two physics principles working together. First, you can pulse a LED with a high peak current but low average current that will extend battery life. Second, your eye responds as a peak detector. Together this means a LED pulsed with a 10% duty cycle at 10 times a DC level will look brighter then that LED just running a pure DC (for the same power).

    So taken together this means you can run a pulsed LED on less power then a DC LED and make it look just as bright (or same power and make it appear brighter).

    LEDs are basically current controlled devices. Your driver should control the current and let the voltage be whatever it is; practically you’ll typically use a resistor anyway, but size it to give the LED the desired current. The drawback of a resistor is the intensity will fall as the battery drains, you’ll have to play that against the increased complexity/cost of a true current source or sink driver. LED current driver chips are available (I’ve used one from Maxim).

    The goal of any driver scheme here (portable device on a bike needs to use every Joule stored) would be to transmit maximum power to the LED and burn off the minimum (such as in a current limiting resistor): a PWM scheme is not above consideration and doable with a PIC.

    LEDs are becoming more popular in factory supplied automotive signals. If you ever noticed some cars seem to flash as they speed by you you’re seeing the pulsed nature of the LED drive.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by flotulopex View Post
    Thanks a lot for your information.

    In my case, I think it will not be mandatory to pulse anything.

    Let's make it simple, no?

    Thank you anyway.
    Sounds like a perfect place to put a PIC10f200. 6 pins, no oscillator; power, ground, switch input, LED output, and still 2 pins left over to play with.
    Program changes the PWM to the LED according to the switch input. Easily done.
    About the only thing I can see needing to be done outside of that would be to add an external MOSFET to switch power to the LED, but that depends on the total current your LEDs are pulling.

    The rest of the guys are right though...
    PWM at V(f) at near maximum I(f) on an LED is the only way to go. There's just too much variation in brightness to be messing with different current limiting resistors. If you look at the spec sheets and the graphs for the light output from the high brightness LEDs, you'll see that the majority of LEDs are only spec'd to run at X amount of current to produce Y amount of light. Lower current levels generally aren't even listed because there's just too much variation. PWM is just that much more efficient, produces less heat, your eyes don't know the difference...etc.etc.etc.

  8. #8
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default let's pulse!

    Well then, let's pulse!

    Amazing how things can be "not as simple" as they would look like at a first glance.

    If I understand you weel, the idea is to get rid of resistors and power the leds with an appropriate pulse (hope I'm right here).

    About maximum "brightness", how do I measure it? I assume I'll have to use the led's datasheet specs for a value (mA)... but when pulsing power to the led, the time to measure the current will be far to slow for my ampmeter (Vf is not difficult to measaure with my oscillo but this value is not mentionned in the datasheet ).

    Second, if the PWM doesn't allow frequencies lower than (can't recall exactly) around 250Hz, how would you do?

    I'm not an expert in PWM so I may have missed some infos on how to go that low in freq.
    Roger

  9. #9
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Oh, don't kid yourself, it's a piece of cake...
    You still need current limiting resistors in most cases, but you can set them at the maximum current value and with PWM, you won't have to worry about letting all of the smoke out of them.

    Max brightness - I wouldn't worry about that so much as driving it at max current for too long (i.e. pulse widths too long).

    Personally, I've been able to use PWM down to about 40hz without any flickering. Some people can tolerate down to 20hz or so, varies on the person. In my LED strips that I use for undercar lighting, I use 76.3hz (20mhz-Fosc / 4-Instruction Rate / 256-Timer0 overflow / 256-Software PWM) as my PWM frequency. Works like a champ.

    So, even if you use a PIC10F200 running at 4mhz and just keep everything in a tight loop with some software driven PWM, you should be able to easily stay well above the 20-40hz minimum rate.

    A simple software PWM is a piece of cake. Get your hardware designed and 'finalized', then we can all work on a decent program for it.


    Actually, forget the PIC10F200. It's a surface mount, pain to work with for prototyping. Go with a PIC12F675 or similar, 8 pin DIP package, easy to put on a proto-board. Same thing still applies though, but now you might be able to combine ports together to get a bit more power out to drive the LEDs.
    Last edited by skimask; - 11th April 2007 at 15:56. Reason: Changed my mind on the PIC

  10. #10
    Join Date
    Aug 2006
    Location
    SWITZERLAND (french speaking)
    Posts
    891


    Did you find this post helpful? Yes | No

    Default

    okidoki.

    I'll come back later.
    Roger

Similar Threads

  1. Run a string of LEDs from the mains
    By The Master in forum Off Topic
    Replies: 30
    Last Post: - 1st October 2009, 18:55
  2. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 22:19
  3. PIC18F2431 Running Super SLow!!
    By Philip Biebach in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th July 2006, 12:03
  4. controlling leds with the switches
    By ilteris in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th October 2005, 21:02
  5. Tidying Up PWM Routine
    By Tissy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st February 2005, 00:26

Members who have read this thread : 1

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