You are on page 1of 9

Home Sign Up!

Browse Community Submit


All Art Craft Food Games Green Home Kids Life Music Offbeat Outdoors Pets Photo Ride Science Tech

Using AC with LEDs (Part 1)


by qs on August 13, 2008

Table of Contents

License: Attribution Non-commercial Share Alike (by-nc-sa) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Intro: Using AC with LEDs (Part 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

step 1: Working the numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

step 2: Getting light . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

step 3: The pitfalls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

step 4: Some variations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

step 5: Recapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

http://www.instructables.com/id/Using-AC-with-LEDs-Part-1/
License: Attribution Non-commercial Share Alike (by-nc-sa)

Intro: Using AC with LEDs (Part 1)


Recently I came across a high quality transformer selling for under $1.00. The reason they were so inexpensive was the fact that their output was AC only, while most
consumer products required well filtered DC.

This Instructable is put together with the goal of getting AC-transformers working with LEDs without diodes and capacitors. I will show enough maths here so the concept
is applicable to most other AC-only transformers.

Interestingly, many Black&Decker Dust-Buster transformers are AC only, and they are well suited for conversion, since many only use 1/2 of the output (half-wave
rectification) only.

step 1: Working the numbers


The subject transformer was made for many AT&T cordless phones, it is rated for 110v/60Hz and has a 10VAC 500mA output.

First, we have to be aware that the 10V rating is known as the RMS voltage, and is the effective average power of the sine-wave. The maximum voltage, which we will
subject our LEDs to, is about 1.4 times higher.

We can demonstrate this by hooking up our transformer and taking some measurements.

The second image shows 10.8 VAC, which the unloaded output of the transformer. So we should expect a peak voltage of 1.4 x Vrms or 15.3v

Next we add a simple diode with a smoothing capacitor and measure the voltage across it: 14.5VDC.

This number is about .8v less than our calculations because the diode has a voltage-loss across it of .8V

This is one reason we try to avoid diodes because each one inherently loses (as heat) a bit of power - .8v is 25% of the power for a 3.2v LED.

So, we will be using 15.3 volt as the basis our calculations.

http://www.instructables.com/id/Using-AC-with-LEDs-Part-1/
Image Notes
1. 10 LEDs arranged in 2 groups of 5; each group has opposite polarities.

step 2: Getting light


We know that most white and blue (and UV) LEDs range between 3 and 3.6 volts. So by dividing our PEAK voltage by an average LED voltage, we get an idea of the
number of LEDs our transformer can support:

15.3 / 3.3 = 4.6, which we round up to 5, giving about 3.1v per light. But remember, that AC has an identical NEGATIVE cycle! Which means we can add a mirror circuit
that work on alternate phases.

The advantage of using voltages to start our calculations is that, as long as we stay with similar LEDs, and stay within its operating voltages, the current will stay within
safe limits.

So, by adjusting the number of LEDs in use, we can handle most AC transformer outputs.

Now a quick check of the voltage shows that it is still at 10.8VAC. Our LEDs are only using a miniscule portion (4%) of the 500mA capacity of the transformer that...

We can multiply the light output up to 15 times just by adding chains of 10-LEDs arranged the same way across the supply! Imagine running 150 LEDs in an vast array off
one tiny transformer. Pure simple direct drive all the way.

http://www.instructables.com/id/Using-AC-with-LEDs-Part-1/
step 3: The pitfalls
One safeguard is that we have limited the drive to our LEDs to a very safe level - it will only reach its rated peak once per cycle. In fact it will be off completely when the
opposing chain is lit. So we can expect extreme longevity from this arrangement.

The fact that each chain is off for half the time means there will be some flicker, which you can see in the photos below, taken with a high shutter speed.

By alternating on and off rows, the effect is minimized, and is no worse than using fluorescent lighting.

Image Notes
1. When one set of LEDs are lit, the others are off. This happens 60 times per
second.

step 4: Some variations.


Sometimes, you cannot get the right number of 3.5v LEDs for what you need. Then you can 'cheat' by substituting an amber LED in each chain - they operate around 2.4
volts, so that allows you to fudge your numbers a bit.

And about those Dust-busters - if you applied our method to their wall-warts WHILE the unit is charging, you may well find that one chain of LEDs never lights - this is
because they only use half their circuit to charge the unit. Think of using the OTHER half of the cycle for LEDs as free power.

You can also adapt this method for DC supplies - but make sure you always measure the actual output first! Commercial units are notoriously bad for making up
numbers.

http://www.instructables.com/id/Using-AC-with-LEDs-Part-1/
Image Notes
1. This chain is off when the 'buster is charging.

Image Notes
1. ...but comes on in full force once the unit is removed from charge!
2. Means this cycle is never used - free power!

http://www.instructables.com/id/Using-AC-with-LEDs-Part-1/
step 5: Recapping
So, to find out what a transformer can support:

Measure its output:


- If it is AC, use the V-AC scale on your multimeter, and multiply the results by 1.4 to get V-peak
- If it is DC, use the V-DC scale read out V-peak.

The number of white (or blue) LEDs it can support is:


- Vpeak / 3.3 and round up to the next integer. (E.g 4.2 is 5)

(Use V-peak / 2 for Red, Orange and Yellow LEDs)

That is the number of LEDs you can put in a series to operate off the transformer safely.

For AC circuits, you will need to duplicate another chain in the opposite polarity.

LEDs can be any current, as long as they are all the same, and the transformer has the current (A or mA) to support it.

Note: AC transformers can also have a VA rating instead of amps - just divide that number by the volts to get amps.

- end of Part 1 -
(Continued here )

Related Instructables

Hobby ATX Power Faraday For


Reuse Electronics How to build a Supply --> Fun: An
Audio- "Wallwart" LED mood
Power Supplies Cheap Bench- Electronic
Controlled transformers by Part 1: Wall lamp/ Solder Top Power Batteryless Dice
Christmas Light Safety light by Supply
pir8p3t3 Warts by by Gadre
Flasher With joejoerowley (slideshow) by
clockbroke
Individually mortaldoom780
Controlled
Stereo
Channels by
MustangChris429

Advertisements

Comments
35 comments Add Comment

Jimmy Proton says: Aug 8, 2010. 2:00 PM REPLY


could you put 34 or 68 leds across 120VAC

qs says: Aug 9, 2010. 9:37 AM REPLY


You will need more than 34 (or 68) LEDs to run on 120vac without current limiting.

For AC, always start by calculating PEAK voltage, which is 170v here, then divide that by 3.3v to get the number of LEDs to safely drop the voltage,
which is 52. You will need another 52 to cover flow in the opposite direction unless a full wave bridge is used.

spark light says: Dec 21, 2010. 3:40 PM REPLY


Ah, but the actual peak only goes to half of that, because it is measured in peak to peak voltage, my friend. :D Same would go for rectified ac. it's
about 1.4*1/2(RMS)

Jimmy Proton says: Aug 9, 2010. 4:43 PM REPLY


ah i see

alexzs says: Mar 28, 2010. 5:41 PM REPLY


Hi, great posts about AC led lighting!!
But, how about heating?

http://www.instructables.com/id/Using-AC-with-LEDs-Part-1/
astar0214 says: Jun 24, 2009. 8:52 PM REPLY
Hey, I have a question: what is the value (farads) of the smoothing capacitor you´re using?

qs says: Jun 24, 2009. 10:06 PM REPLY


It's a 0.1uF capacitor. Since there is no load on the circuit (other than the high resistance of the multimeter), just about any value will work.

MattieShoes says: Feb 18, 2009. 2:50 AM REPLY


I'm trying to understand something here. Normally one has to use a current-limiting resistor with LEDs since they don't create appreciable load... Why isn't
this necessary here? It just seems to me like you'd be pushing something like 500ma instead of 20ma through these suckers. Obviously I'm wrong since this
works for you, but I'd like to understand WHY it works :-)

qs says: Feb 18, 2009. 7:31 AM REPLY


It's a fairly popular misconception, but LEDs DO have internal resistance, typically about 17ohms for 25mA units. The practice of adding the limiting R is
mostly because LEDs are usually based on battery power, and battery voltage can be quite different from the stated value. For example, 1.5v alkalines
can go from 1.8volt when new all the way down to 0, and if the designers are lazy (or uninformed), the stick the resistor in, just in case.

To see how this is true, let's take the common formula for a limiting resistor:

R = (V-Vf) / Iled

Basically it says, take the { (Supply voltage minus the LED's Voltage) and divide it by (the LED's current) } Now ask yourself, what happens when V is the
same as Vf? Then (V - Vf) equals zero! And 0 divided by any non-zero number is ALWAYS zero! Which means you don't NEED a resistor!

I've also added a couple of safety features here:


(1) I am using a relatively low Vf of 3.3v, which means the LED is never over-driven. And
(2) Remember we are using AC here, which means that we only reach the peak current for a small percentage of the time. The rest of the time, the LED
is simply "coasting" along.

votecoffee says: Feb 26, 2009. 5:50 PM REPLY


There are other reasons as well though. Everything you said is right. But if an LED is in parallel with another device, they sometimes add a resistor
because the current drop across the LED changes as the other device pulls different currents. An initial pull drops the current/voltage to the LED, but
when it stops both increase. AC power for example, when a compressor kicks on the lights dim, and when it stops they brighten. It's very brief but
visible. In DC applications as well, you want to beware that a device doesn't dump a voltage spike across the led and destroy it. Voltage spikes
happen on AC and DC and go above the normal supply voltage level, so it could go above your LED's voltage. Make sense?

qs says: Feb 26, 2009. 7:06 PM REPLY


I think we are talking absolutes here - there will never be a circuit that can protect against all possible mishaps. How many appliances can survive
a direct lightning strike? The key is to be sensible about it. If it makes you feel better, then feel free to add resistors, MOVs and a fuse if and when
you decide to build one! However, I DO know that in actual use these circuits have all continued to work as designed. The light from this article is
the walkway light outside the furnace room - with fan blowers and pumps cycling on and off, and nothing has 'zapped' yet. Other facts to keep in
mind: (1) The transformer has a huge capacity to absorb spikes, (2) LEDs can withstand temperatures up to 250C briefly and (3) LEDs are
routinely used in automobiles where the voltage goes from 10v to 16v, with surges as high as 75-volts, not to mention electrostatic charges. LEDs
these days are nowhere as fragile as earlier in their development history, and a lot of the precautions we take go back to the days when we
expect 10%-15% of any lot to fail within weeks.

votecoffee says: Feb 27, 2009. 2:50 AM REPLY


Good points. I'm impressed with your articles as well as how much you know on the topic in general. Out of curiosity, what causes 75 volt
surges in automobiles?

qs says: Feb 27, 2009. 9:07 AM REPLY


When the engine is cranking over, especially with a weaker battery, a surge of 75v can occur for up to half a second. Look up "load dump"
for more information.

MattieShoes says: Feb 19, 2009. 11:52 AM REPLY


Huh... I have some super-cheap LEDs that start to work at around 2v so I threw three of them in series and attached to a 6.5v DC power source and
it worked fine just as you say. :-) But now I'm confused about something else. I measured current at 16.5 milliamps. 6.5 volts and .0165 amps means
the resistance in the circuit has to be nearly 400 ohms. Resistance in series would just be summed, yes? That'd be something like 130 ohms per
LED, not 17... I don't think it's the power source limiting current...

MattieShoes says: Feb 19, 2009. 12:04 PM REPLY


I see you actually already answered my question in another response. never mind! Basically I was underdriving them so resistance was in effect
greater. :-)

solis365 says: Feb 23, 2009. 4:49 PM REPLY


hmm, im wondering. what is the "turn-on" voltage of the LEDs you are using here? most diodes have about a .7v "Von," meaning if you put .7v across them
they wont light at all, between .7 and 3.3v they are partially on, and at 3.3v+ they are fully on.

If you've got a bunch of LEDs in a row, say, 5, thats about 5*.7 = 3.5v of your 10V sine wave when NONE of your LEDs are on.

might there be a way to recapture that lost portion of the voltage swing? because youre losing it for both the positive and negative directions!

http://www.instructables.com/id/Using-AC-with-LEDs-Part-1/
qs says: Feb 23, 2009. 6:04 PM REPLY
You're confused between diodes made of Silicon and Light-Emitting Diodes made from (among other materials) Gallium Arsenide. They each have very
different conducting regions.

solis365 says: Feb 24, 2009. 1:45 PM REPLY


the wikipedia article on LEDs shows an Id vs. Vd curve very similar to the silicon diode curve I am familiar with, complete with a Von and a turning on
region... perhaps LED's Von are closer to the 3v than to .7, but the idea still holds, even more so. I dont mean to be a pain, just confused.

qs says: Feb 24, 2009. 4:17 PM REPLY


The danger with basing beliefs with a generalistic analysis is that they leave too much to guesswork. The following is a composite of the Current
vs Voltage for (1) the 25mA white LED from CREE, while the second is from the datasheet of the 1N4001 diode. While the LED shows that it will
"consume" 20mA at 3.4v and 80mA at 4.4v, it regresses to 0 somewhere around 3.0v. Meaning that there is NO significant current flow below the
threshold, Vth. The 1N4001, in contrast, will do 20mA just above 0.6v and 200mA by 0.8v. It should be clear that there is a tremendous world of
difference between these two devices - despite their sharing the term "diode" in their name.

qs says: Feb 24, 2009. 4:20 PM REPLY


The diode charts:

votecoffee says: Feb 26, 2009. 6:02 PM REPLY


So are you saying that LEDs have no von? The data sheet for the LED doesn't show it dropping to zero. It just gives no info. I would think
all diodes have a von region. They work by creating an electrically insulating gap and a specific voltage is needed to overcome that gap
even when operating in the right direction. The von is a small current bleed if I'm not mistaken when that gap is just bridging. I could be
wrong on this, I'm just guessing. Only way to reduce waste would be to regulate the voltage above 3 or whatever min is, but then you're
leaving it on and wasting more voltage anyways. No point, and to convert it to square wave uses more power than is lost. I mostly ask out
of curiosity.

qs says: Feb 26, 2009. 6:34 PM REPLY


If you look carefully, the chart for the 1N4001 doesn't go to 0 either. The key is that we are talking about effective resistance in the
hundreds if not thousands of ohms, and can be ignored for our purposes. What you call Von for the LED is what I term Vth - the point
you start seeing a definite glow in the LED - which happens around 2.9v, or therabouts, but only for these LEDs. The turn-on voltage
for semi-conductors do depend on the electron-gap and are fixed by the chemicals in their composition: Silicon is around 0.6v,
Germanium is 0.25v, but neither can produce any usable light. For red LEDs they only need 2v to work, while blue (and hence, white)
LEDs needs 3+volts to work. That's a rule of nature - it's not something we can "make" happen.

Cew27 says: Feb 18, 2009. 1:10 PM REPLY


but what i dont understand is if the current is constant through a circuit how canthe led "use current" and why does this matter when choosing a resistor

qs says: Feb 18, 2009. 1:39 PM REPLY


The basic calculation of current through a LED for a given voltage can be estimated to be:
Iled = (Vsupply - Vth) / Rled where Vth is the point at which it starts to glow (the threshold ), and Rled is about 17-ohms for 25mA LEDs.

Let us say our white LED starts glowing at 2.9v, and that will be our Vth. Then at 3.3v, our current will be: (3.3-2.9) /17 = 23.5mA.

That means, that, without ANY external resistors, if we put 3.3volt across this LED, it will "consume" 23.5mA of current.

If you work out the current for this LED at other voltages (try 3.2 and 3.4 first), you will see that the current varies quite a bit for very slight voltage
changes.

That is the primary reason resistors are added LED circuits - insurance, at the cost of lowered efficiency.

Cew27 says: Feb 18, 2009. 2:10 PM REPLY


so where did you get 17ohms from?

http://www.instructables.com/id/Using-AC-with-LEDs-Part-1/
qs says: Feb 18, 2009. 2:44 PM REPLY
The datasheet is your friend!

This is a chart for a 25mA white LED from the CREE website. Most manufacturers have a similar chart with almost identical figures.

We can see that the LED "uses" 20mA at 3.4volt, and 80mA at 4.4volt. Therefore, the current increased 60mA (0.060amps) for a 1-volt increase.

The dynamic resistance of this LED, therefore, is ( R = V / I ) or 1 / .06, or 16.667 ohms, which I've rounded to 17.

Cew27 says: Feb 18, 2009. 3:10 PM REPLY


ahh understood thanks

Cew27 says: Feb 18, 2009. 11:42 AM REPLY


what do you mean leds can be any current? if that is so can you explain why the current matter with working out a resistor value for leds
vsupply - vled / led current = resistor value needed.
also why if they run on any current are the operating currents specified for leds like my blue leds run at 20ma
thanks

qs says: Feb 18, 2009. 12:32 PM REPLY


If you consult the data sheets of LEDs, there is a voltage (Vf) when it will consume the designed-for current. Generally, for White, Blue and UV LEDs, this
is around 3.3v. In the resistor formula you quoted, when Vsupply and Vled are the same, then R is zero, at whatever current the LED is designed for -
and that is why we can leave it out of our calculations. Only when you are using external parts (resistors, in theis case to waste extra power) do you need
to look at overall current consumption. White LEDs are basically Blue LEDs with a coating of Yellow phosphor over it, so the two should have very similar
Vf of about 3.3volts.

PS118 says: Aug 14, 2008. 10:47 AM REPLY


Any ideas for just one LED? (Usually component count is a killer). Like, say you've got a heater you want to tell when it's on or something. I've heard like
MOSFET's can pick up current induced off an AC line. Is there some quick and simple way to sap off just enough to drive an LED?

qs says: Aug 14, 2008. 2:27 PM REPLY


MOSFETs can be used to sense current, yes, but it cannot, by itself, generate the power to light a LED.

You can find your circuit in the newly posted "Using AC with LEDs, part 2" .

sageserver says: Aug 13, 2008. 8:59 PM REPLY


This Instructable is put together with the goal of getting AC-transformers working with LEDs without diodes and capacitors. its funny to me that LEDs are
diodes. and you said without diodes. Also. Flashing a LED can save half as much energy being used--Thats good.

Phil B says: Aug 14, 2008. 6:55 AM REPLY


I think he meant without extra diodes to convert AC to DC.

qs says: Aug 13, 2008. 9:17 PM REPLY


Point taken. How 'bout "without extraneous diodes?"

Phil B says: Aug 13, 2008. 3:26 PM REPLY


The flicker effect is not bad, anyway. I read once that LED power indicator lights are designed to cycle on and off 50 or so times a second to extend the
bulb's life. But, it is so rapid that the human eye does not notice it. What you have done has probably been done before by someone, but it is still a clever
idea. I have a bicycle and I have a generator for AC. The voltage is too high for most LED circuits, but I could utilize your idea very well. Thanks.

http://www.instructables.com/id/Using-AC-with-LEDs-Part-1/

You might also like