Friday, August 5, 2011

My First Circuit




I read some where that lighting up some LEDs with a battery is like the electronic version of "Hello World," so I thought it would be a good place to start.


When I built my computer way back when, the power light would not illuminate even though the machine itself was running. To be honest, I can’t even remember what I did to fix it, but when I turned the machine back on and that little LED indicator lit up, I felt a triumphant jolt that, was almost as intense as the one I felt at the thought that I build my first computer. Here was something that wasn’t working and I fixed it, without a manual or a software wizard or help from one of my techie friends. That memory still gives me a warm, fuzzy feeling so it’s nice to start this present endeavor working with LEDs again.

----------------------


I’m using a 9 volt battery to power to power my first circuit. Since a single, red standard LED has a typical forward voltage (VF) of 1.7V, a 9V will easily blow out the bulb. To ensure that this doesn’t happen, I will use a resistor in my circuit. The formula for calculating resistor values is:
R = (VS - VL) / I
VS = supply voltage (the battery)
VL = load voltage (in this case, the LED is the load. Note that this is the same value as the LED’s VF)
I = LED current in amperes
R = value of the resistor, in ohms, that will allow enough current to pass to the LED without blowing it out1.
The LED current for my circuit is 30 milliamperes (mA), which converts to 0.03 amperes. In the case of my single, red LED, my calculation goes like this:
R = (VS - VL) / I
R = (9 - 1.7)/0.03
R = 7.3/0.03
R = 243.33 Ohms
Since I don’t have any resistors that are exactly this value, I would normally round up to the next higher value (270 Ohm). Unfortunately, my still-growing supply of electronic components lack even these (another trip to Radio Shack, anyone?), so I’ll use one of my 330 Ohms. (Note: if you want to skip manual calculations there are some pretty neat resistor value calculators out there2.)
Voila!


Remember to always have a resistor in place before powering an LED. I tried one circuit with just the battery and the LED and the bulb lit up for about a quarter of a second, went dim and started smoking.

Next time I’ll talk about wiring LEDs in series and in parallel.

Part List:

Breadboad
9V battery
9V battery snap connectors
1 resistor (270 Ohm for a single red or yellow LED; 330 Ohm for a single green one)
1 LED (red, yellow or green)

References:

1.) The Electronics Club: Light Emitting Diodes (LEDs)
2.) LEDZ.com: LED Resistor Calculator

No comments:

Post a Comment