Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Demystifying LEDs.

  1. #1
    SOB Fettler xmastree's Avatar
    Join Date
    Mar 2006
    Location
    Burnley, Lancs. UK
    Posts
    1,704

    Default Demystifying LEDs.

    LEDs, they're not as difficult to understand as some people make out.

    The first thing to note is that there are two main parameters of an LED. The forward current and the forward voltage. This voltage seems to cause a lot of confusion. You apply a voltage, and you get current, right?
    Well, that's right for a resistor, which is a linear device. In other words, current is proportional to voltage. The basic equation for calculating Voltage, Current and Resistance is V=IR, and we'll use that later.

    However, unlike resistors, LEDs are not linear so they behave differently. Rather than applying a voltage and getting a current, you apply a current and get the voltage. It may sound the same, but it's not.

    Ok, here's some maths. Not complicated, if you can add, subtract, multiply and divide, you can do this.

    Consider a 150 ohm resistor with 3V across it. The current passing through it will me 20mA
    V=IR therefore I=V/R, 3/150 = 0.02
    That's simple. Now, reduce that to 1.5V and you'll get 10mA. Increase to 4.5V and you'll get 30mA

    An LED on the other hand, rated 3V@20mA may well pass 20mA with 3V applied, but at 1.5 you'll get nothing and at 4.5V you'll probably burn it out.

    So, let's try forcing a current through our resistor. Push 20mA through it, V=IR, .02x150, 3V
    At 10mA the voltage is 1.5V and at 30mA it's 4.5V. That's linear.

    The LED however, will give you 3V at 10mA, 20mA and 30mA (there will be a slight difference due to the internal ersistance, but it's negligible). So, if any current will give you 3V, what will 3V give you? Could be anything.

    Why is this? Well,the semiconductor junction requires a certain voltage before it will conduct. This is called the breakover voltage. Once it starts conducting, it will try to maintain that voltage. Therefore, if you apply 4.5V to it, it will try to pass enough current to reduce that supply to 3V and probably burn out in the process.

    So, to control the current through the LED you need a series resistor.

    Using our 3V@20mA LED, to run it from a 12V supply you need to find the correct value for the series resistor. There are tools to calculate it, but it's really, really easy. We know the LED will have 3V across it, so the resistor will have the remaining 9V across it (3+9=12).
    Using our old friend, V=IR we can make R = V/I, R = 9/0.02, R = 450 ohms. Since 450 isn't a preferred value, use the nearest which will be 470. Close enough.

    Told you it was easy.

    It's not a good idea to put LEDs in parallel, since if there's a slight difference in the forward voltage the one with the lower voltage will take all the current. Why? Well, let's say that one gives 2.95V and the other is 3.05V. Since there are two in parallel, you'll want 40mA so that each gets its 20. So, once they're conducting, the voltage across them will be 2.95, since that's the lower one. That's not enough for the 3.05V one to start conducting, it needs 3.05V. In reality, the internal resistance will even things out a little, but it's not a good idea.

    They can be used in series though. Two 3V@20mA LEDs in series will behave like one 6V LED. You can even use different ones providing they all require the same current. Just add the voltages together, subtract it from the supply and put that value in the equation for the resistor.

    For example, two green LEDs, 2V@20mA, and one blue, 5V@20mA gives a total of 9V. Remaining voltage is 3V, so the resistor will be 150 ohms. The nice thing about this, especially for battery powered equipment, is that the total current drain for three is the same as for one. Simply put, the battery will last three times as long.


  2. #2
    Fox Furry crenn's Avatar
    Join Date
    Apr 2005
    Location
    In the shadows behind you
    Posts
    4,067

    Default Re: Demystifying LEDs.

    Hmmm.... very nice piece of writing. But you've forgotten that batteries and some PSUs aren't perfect and has a resistance as well. And your fact about the battery lasting longer isn't 100%, but yes, it will last longer. Anyway, I'll keep my mouth shut, good information though.

  3. #3
    SOB Fettler xmastree's Avatar
    Join Date
    Mar 2006
    Location
    Burnley, Lancs. UK
    Posts
    1,704

    Default Re: Demystifying LEDs.

    Quote Originally Posted by crenn
    Hmmm.... very nice piece of writing. But you've forgotten that batteries and some PSUs aren't perfect and has a resistance as well.
    Yeah, but I don't wish to confuse things. This is aimed at computer modders, who will mostly be using the 12V supply. Whilst it has resistance, it's negligible so I didn't mention it.

  4. #4
    Ceann na Drochaide Bige! XcOM's Avatar
    Join Date
    Mar 2006
    Location
    Sheffield (UK)
    Posts
    2,990

    Default Re: Demystifying LEDs.

    my pro mod on the front of my machine is cool, i took the front off, removed the LED (Green) and replaced it with a blue one, being pro, and couldn't b arsed to medd about, i just soldered it to the old wire for the power LED< therefor burning it out (Was an LED i had lying about, couldn't let it go to waste)

    So, new LED, this time i got a 3V DC LED with resister included for various voltages, works a treat now.


    Mary had a little lamb. It bumped into a pylon. Ten thousand volts went up its arse and turned its wool to nylon!

  5. #5
    SOB Fettler xmastree's Avatar
    Join Date
    Mar 2006
    Location
    Burnley, Lancs. UK
    Posts
    1,704

    Default Re: Demystifying LEDs.

    That's strange. Usually the power LED is just a regular LED and the resistor is on the motherboard. I've done exactly the same and it worked just fine.

  6. #6
    Fox Furry crenn's Avatar
    Join Date
    Apr 2005
    Location
    In the shadows behind you
    Posts
    4,067

    Default Re: Demystifying LEDs.

    He may have hooked up the LED in reverse bias... although I don't think it would have enough power to blow an LED.....

    But also LEDs have different tollerances of voltages for currents. There may have been the difference which caused it to burnout. And there is a resistor (as far as I know) on the motherboard for the front panel LEDs.

  7. #7
    Paradox Sausage DaveW's Avatar
    Join Date
    Nov 2005
    Location
    Scotland, UK (NOT England)
    Posts
    5,550

    Default Re: Demystifying LEDs.

    You havn't mentioned that LED's are one way! Of course, if you didn't know that then you shouldn't be mucking around, but everyone has to start somewhere.

    -Dave
    Quote Originally Posted by jdbnsn
    Ideas are just knowledge soaked in alcohol.
    Quote Originally Posted by jdbnsn
    Did I just get in a Volvo? Volvo's don't have guns!

  8. #8
    SOB Fettler xmastree's Avatar
    Join Date
    Mar 2006
    Location
    Burnley, Lancs. UK
    Posts
    1,704

    Default Re: Demystifying LEDs.

    True, and true. Except some special ones which are basically two LEDs connected in parallel, one each way. Usually a red and a green. Current one way and it's red, the other way and it's green. AC, and they both light, giving yellow.

    Anyway, since we're onthe topic, how to identify which way to connect them.

    An LED, like any other diode, has two connections. They are the anode and the cathode. The current flows in the anode and out the cathode. So, the anode must be connected to the positive and the cathode to the negative. If they're in series, they should be anode to cathode, just like batteries in series go positive to negative.

    The anode is usually the longer wire, and the cathode is usually marked with a flat edge on the package. The wire lenght isn't reliable if the LED has been used before, as the leads might have been cut. The flat on the package is more reliable, but not 100%. I have seen them with a flat to mark the anode, but not lately so maybe those manufacturers got what they deserve for flying in the face of convention for no good reason.

    The method I always use is to look inside the LED at the internal construction. There are two things in there. One larger cup, containing the chip itself, and a smaller post which has a tiny wire connecting to the chip.

    The CUP is the CATHODE.

    In this photo:

    The cathode is the lower one, the anode post isn't so clear as it didn't catch the light, but you can still see it.

    Here's a diagram instead:


    Hmm, think I'll try some extreme closeup photography... watch this space.

  9. #9
    SOB Fettler xmastree's Avatar
    Join Date
    Mar 2006
    Location
    Burnley, Lancs. UK
    Posts
    1,704

    Default Cool Blue



    The cathode's at the top in that photo. And, for those interested, here is how I took it.

    Here is a better one, but it's not mine.

  10. #10
    iShot the Sheriff jdbnsn's Avatar
    Join Date
    Jan 2006
    Location
    Normal
    Posts
    8,241

    Default Re: Demystifying LEDs.

    I think this was a great write up, I learned alot about these things and you saved me a lot of time googling info. Thanks!

Similar Threads

  1. LED's and Resistors Guide
    By Whisp in forum Electronics
    Replies: 44
    Last Post: 01-06-2010, 06:39 AM
  2. Leds Leds Leds
    By maximan1 in forum Motherboards, Processors, & Power Supplies
    Replies: 21
    Last Post: 11-18-2006, 09:32 AM
  3. Led's
    By gaz_the_chav in forum Modding Q&A
    Replies: 5
    Last Post: 10-14-2006, 07:55 PM
  4. replacing fan LED's ::Q::
    By yawnbox in forum Modding Q&A
    Replies: 1
    Last Post: 08-18-2005, 04:46 PM
  5. running LEDs from battery
    By MrSlacker in forum Motherboards, Processors, & Power Supplies
    Replies: 16
    Last Post: 04-09-2005, 07:29 PM

Posting Permissions

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