LEDs for Beginners

Step 6One LED with a resistor

One LED with a resistor
It was just a coincidence that I bought an LED that was 1.7V and that it ended up working being able to be powered by my 1.5V power supply without the use of a resistor. For this second setup I decided to use the same LED, but up my power supply to the three AA batteries wired together which output 4.5V - enough power to burn out my 1.7V LED, so I would have to use a resistor.

To figure out which resistor to use I used the formula:
R = (V1 - V2) / I

where:
V1 = power supply voltage
V2 = LED voltage
I = LED current (usually 20mA which is .02A)

Now there are lots of calculators online that will do this for you - and many other instructables reference this as a good one, however, the math really isn't too hard and so I wanted to go through the calculation myself and understand whats going on.

Again, my LED is 1.7V, it takes 20mA (which is .02 A) of current and my supply is 4.5V. So the math is...

R = (4.5V - 1.7V) / .02 A
R = 140 ohms

Once I knew that I needed a resistor of 140 ohms to get the correct amount of voltage to the LED I looked into my assortment package of resistors to see if I could find the right one.

Knowing the value of a resistor requires reading the code from the color bands on the resistor itself. The package didn't come with a 140 ohm resistor but it did come with a 150 ohm one. Its always better to use the next closest value resistor greater than what you calculated. Using a lower value could burn out your LED.

To figure out the color code you basically break down the first two digits of the resistor value, use the third digit to multiply the first two by and then assign the fourth digit as an indicator of tolerance. That sounds a lot more difficult than it really is.

Using the color to number secret decoder website found here, a 150ohm resistor should have the following color code...

Brown because the first digit in the value resistor I needed is 1
Green because the fifth digit is 5
Brown because in order to get to 150 you have to add one 0 to 15 to get to 150.
Gold - the resistors I got all have 5% tolerance and 5% is represented by gold

Check out the decoder page link above if this isn't making sense.

I looked through all the resistors, found the one that was brown, green, brown, gold, and wired it in line on the positive electrode of the LED. (Whenever using a resistor on an LED it should get placed before the LED on the positive electrode).

Low and behold, the LED lit up once again. The 150 ohm resistor stopped enough of the 4.5V power supply from reaching the 1.7V LED that it lit up safely and kept it from burning out.

This is just the process that I went through to figure out what resistor to use with my particular LED with my particular power supply. You can easily use the formula above to figure out what value resistor to use with whatever LED and power source you happen to be using.
« Previous StepDownload PDFView All StepsNext Step »
17 comments
Nov 24, 2010. 6:06 PMkamenkoo says:
I want to connect LED to my speakers.. :)) How can i do that ?? :)) What should i do?? :)) Thanks :)))
Oct 6, 2011. 9:06 PMDavid97 says:
Use a transistor. just google transistor tutorals. To find out how to use them, if you still need more help ask me.
Sep 25, 2011. 2:57 PMBerrydueds says:
I have trouble with my Leds, The schematics are below.
My problem is that the middle row of Leds always gets burnt out.
The first time I didnt use any resistors and the middle row completely burnt out but the rest were fine.

Second time, I only had 470ohms 1/4W resistors. Same issue - the middle row burnt out.

Also, i only have 470ohms resistors, if i used the right amount (100 ohms ) would this solve my problem?

Screen Shot 2011-09-26 at 12.51.13 AM.png
Sep 12, 2011. 11:20 AMtommiesmee says:
i can't get it to work!
i connect a wire to the positive side of a (1.5 V) AA battery,
the wire to a resistor,
the resistor to my LED (positive side),
a wire to my LED (negative side),
the wire to my battery (negative side).
nothing.
as far as i know, the resistor is good, and the battery is charged.
what did i do wrong?
(i am new to electronics, but i figured i should be able to do this!
guess not =( ).
Sep 22, 2011. 9:56 PMdog digger says:
No enough voltage. the LED roughly needs about 2-3V. One 1.5v battery will not have enough voltage
Nov 12, 2010. 4:16 PMtlinder says:
Hey I feel like i've figured out this resistor thing, but my resistor is getting very hot while the lights are AOK. does it matter if I am using 2 different kinds of leds choosing to calculate through the lower voltage kind when wiring in parallel?
Mar 9, 2008. 10:35 PMWelch76 says:
I'm new at this. I'm planning to make a banner with 3 letters D-A-D made of LED like the ones in Asian Concerts. I'll be using 38 2.1v of LEDs. RadioShack (w/c monopolized the LED world) gave me 2AA batteries for power source(w/c I'm clueless about it.) Now comes the prob, what the name of shishkabob is a resistor and what does it do? So sorry for a stupid question but I don't even know how this thing works. and how to make it. I'm planning to put it on a cardboard. Thanks in advance. c",)
May 20, 2008. 5:23 PMHuggyBear says:
A resistor is a device that limits the current. They are made usually of ceramics that conduct electricity, but not very well (semi-conductor). If you have a stream with nothing but water, the water will flow well, but if you throw a bunch of big stones and debris into the stream, the water is slowed down.
Mar 29, 2010. 4:28 PMydeardorff says:
no it does not matter which side the resistor is on. only the polarity of the LED.

Nov 10, 2009. 9:32 AMghavo says:
Great article... Quick Question... Does it matter which end you put the resistor? On the Positive or the Negative side?  Thanks!!!
Feb 19, 2010. 7:16 PMclarkt says:
Absolutely.    If hooked up backwards the LED will not light up ever.   There is a positive and a negative terminal.   There is also a flat place next to one of the wires on the LED.  This is the negative wire.   Also if you are using a new LED  one of the wires will be longer than the other.   That will be the positive.  

Here is a page that gives a bit of explanation.

http://www.electronics2000.co.uk/pin-out/led.php

Dec 6, 2009. 7:20 AMX-22 says:
so long as the resistor is in series it doesnt matter at all, the electrons have to pass through it and where ever in the circuit it is it will reduce the total current
Dec 1, 2009. 2:54 PMverence says:
Not. At. All.

Nov 22, 2009. 9:11 AMChromatica says:
No.
Oct 4, 2009. 10:18 PMktalex says:
so if i use a 3v led and running 5v as power what resistor should i use? im noob sorry.
Oct 20, 2009. 10:41 PMRileymi323 says:
a resistor with color code brown, black, brown, gold would break even but brown, brown, brown, gold would be a better choice
Jul 29, 2009. 5:51 PMShOoP dUh WoOp says:
Hi i have a question : bye having a greater voltage and adding the proper resistor to the LED will there be longer battery life. thnx :)
Aug 27, 2009. 1:32 PMcrosman01 says:
not really, because all a resistor does is dissipate electricity as heat, it will however preserve LED life(though if you're over powering an LED you significantly lower its life expectancy, so by being right at or a little below the recommended voltage(of the LED) is highly preferable)
Mar 5, 2008. 8:32 PMrobin67 says:
hey! great info, does it mater what side of the resistor is soldered . a certain colour toward the power source or vice-versa?
Mar 9, 2008. 10:21 AMalex-sharetskiy says:
no, solder it anyway you want
Apr 28, 2007. 2:43 PMLexicon says:
what is this , an ad for lunar accents? just kidding
Mar 26, 2007. 2:10 PMchadd_from_pa says:
I found a more in depth explanation of choosing a resistor for an LED circuit here: http://www.lunaraccents.com/design-LED-circuits-design.html

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
814
Followers
100
Author:noahw
Editor of the Workshop and Outside channels...I'm back!