2650Views49Replies

Author Options:

Would this work? (simple circuit diagram) Answered

Well, i'm pretty much clueless about electronics, so I was just wondering whether or not this diagram would work, and if not, why? Thanks =]

Discussions

The forums are retiring in 2021 and are now closed for new topics and comments.
0
LinuxH4x0r
LinuxH4x0r

12 years ago

Does this help? (works of 120 without transformer)

whitelednight.jpg
0
Patrik
Patrik

Reply 12 years ago

That's a cute trick!

That first capacitor essentially limits how much charge is injected into the rectifier bridge each half cycle, essentially suplying a constant current to the LEDs, regardless of how many you have in series (provided you stay <<110V).

This is the original page at discovercircuits.com, in case you have a hard time reading the circuit diagram above.

Here's an even simpler version:

AC Line Powered LED Pilot Light

And a more complicated version, with a light sensor to shut off during the day:

Modified LED Night Light

0
guyfrom7up
guyfrom7up

12 years ago

it might work, what's the voltage supply?

0
Weissensteinburg
Weissensteinburg

Reply 12 years ago

Haven't figured that out yet, nor that resistor value. There will be more LEDs than that, too. I'm mainly trying to make sure that the wiring configuration would work.

0
guyfrom7up
guyfrom7up

Reply 12 years ago

that could work, but it's recomended to have a resistor for each individual led

0
guyfrom7up
guyfrom7up

Reply 12 years ago

plus as good hart said each led will only be on 40% of the time, put a bridge rectifier in and it'll be on 80% of the time

0
guyfrom7up
guyfrom7up

Reply 12 years ago

oops, I meant to say 50%, this setup only takes half the wave.

0
guyfrom7up
guyfrom7up

Reply 12 years ago

half of the sine wave, the other half is negative and the leds won't conduct

0
Goodhart
Goodhart

Reply 12 years ago

Here's an example:

sine.gif
0
Weissensteinburg
Weissensteinburg

Reply 12 years ago

..is that how the electricity travels?

0
Goodhart
Goodhart

Reply 12 years ago

AC, yes, not DC though

0
Weissensteinburg
Weissensteinburg

Reply 12 years ago

So with a transformer, it takes away the need to worry about that, and the LEDs will be on constantly?

0
guyfrom7up
guyfrom7up

Reply 12 years ago

typing with my ipod Nope transformers take ac in and put ac out

0
guyfrom7up
guyfrom7up

Reply 12 years ago

they efficiently boost or lower the voltage

0
Weissensteinburg
Weissensteinburg

Reply 12 years ago

So what changes it to DC current?

0
Goodhart
Goodhart

Reply 12 years ago

many Wall warts (transformers) have the added bonus of a bridge rectifier (set of four diodes or a diode IC that does the same thing) that effectively smooths out the sine wave, while a voltage regulator brings it to a relatively precise voltage, and a few capacitors smooth out the little bumps that are left. this is a basic one:

03263.png
0
Patrik
Patrik

Reply 12 years ago

Thank, G. Here's a nice little animation showing how a bridge rectifier works. Note that current flows through the diodes only in the direction of the triangle of the symbol:

Bridge Rectifier

0
Goodhart
Goodhart

Reply 12 years ago

Hey thanks, that is really cool. I hadn't come across that before.

0
Patrik
Patrik

Reply 12 years ago

Using Goodhart's little diagram - if you hook up the LEDs to the AC voltage directly, they will only conduct when the voltage is positive. So the current through the LEDs will look like the first image below.

If you had a second set of LEDs, connected in the opposite direction, those would light up during the other half of the AC wave. Now, it turn out that you can do a little trick with 4 diodes (that's the "bridge" Goodhart mentioned), to send that current during the second half of the wave through that same set of LEDs. Now the current will look like in the second image below.

Note that this is not quite "DC" yet, because there is still a huge fluctuation in the current through / voltage across the LEDs. But you can smooth that out easily enough using a capacitor.

half_wave.gifrectified.gif
0
guyfrom7up
guyfrom7up

Reply 12 years ago

yeah, listen to that, not to my discription

0
guyfrom7up
guyfrom7up

Reply 12 years ago

a sine wave is a signal that goes up and down and up and down and p and down (and in yourcase, 40 times a second). They are all slopoes, so it's not sudden. half of the time the wave is positive and the other half it's negative.

0
guyfrom7up
guyfrom7up

Reply 12 years ago

yep, or you could leave out the transformer, have a ton of led's in series, and then put a real diode (like a 1n1004 or something, I forgot the name) in series. Then you need one big fat resistore (like 1 or 2 watt)

0
Weissensteinburg
Weissensteinburg

Reply 12 years ago

series would require so much more voltage though. I don't know what a real diode is. Without a transformer, I won't be able to plug it into the wall, will I?

0
guyfrom7up
guyfrom7up

Reply 12 years ago

you could still plug it into the wall (I'd put a fast blow fuse somewhere though). By a real diodes, I mean something that could handle the voltage, like an led reversed biased could break down at 10 volts. a "real" diode (like a 1n4004) could let up to 200 volts pass through, and oppose up to like a 1000 volts (don't hold me to it)

0
guyfrom7up
guyfrom7up

Reply 12 years ago

ok, how many volts is from the socket where you live what color leds do you want how many

0
Weissensteinburg
Weissensteinburg

Reply 12 years ago

I don't know I don't know I don't know I've got a friend with a connection for LEDs, so it's based on what he has.

0
guyfrom7up
guyfrom7up

Reply 12 years ago

what's the leds for, just woundering for saftey

0
Goodhart
Goodhart

12 years ago

Think of it this way; imagine those LED's all hooked up to a singe connection point (which is literally what is being done anyway) on both sides. The one problem I see is the 40Hz power supply. Half the cycle will be "clipped" by the LED's, or if one or more burn / go out, the circuit could overload.

0
Goodhart
Goodhart

Reply 12 years ago

Remember the D in LED = Diode :-) one way gate unless the breakdown voltage is reached

0
Weissensteinburg
Weissensteinburg

Reply 12 years ago

Remember how clueless I am...that means nothing to me.

0
Goodhart
Goodhart

Reply 12 years ago

A Diode will allow current to flow in one direction only (up to a point), a bridge of 4 diodes are used in power supplies to alter AC into DC. Ok, if the power supply is actually DC and not AC as in the drawing, and IF there is enough power (there is a voltage drop across each LED, depending on which are used), it will work, but if just one LED fails it could mean "good bye" to the whole string, and so, too little power and nothing happens, and too much fries a lot of LEDs.

0
Weissensteinburg
Weissensteinburg

Reply 12 years ago

Isn't wall power AC? Bridge? I don't quite get why the LEDs would be fried if one goes out.

0
Goodhart
Goodhart

Reply 12 years ago

wall power is AC, yes....one thing we don't see in the drawing is which way the LED's are "facing". Since power moves through them like any diode, in one direction only, the return wave could wipe the LED out, depending on the power level. The reason I warn about the LED in parallel problem is that, once you figure the proper voltage / amperage for the circuit, and the voltage drop across each LED, when one "drops out", the figures are then skewed. More power will be available to each of the remaining LED's and they could fail in a cascading fashion or all at once.

0
Weissensteinburg
Weissensteinburg

Reply 12 years ago

Ah, I understand now. So that's why a resistor for each one is best? Is there a way to stop power from coming back? Is that why a normal diode was suggested?

0
gmoon
gmoon

Reply 12 years ago

Due to the distribution, one resistor will waste much more current (as heat) than several resistors (and you'd need a 5 or ten watt resistor, too.) If the current limiting resistors are the correct value, the reverse polarity won't hurt the LEDs, but they won't be lit for half the cycle (and they won't be fully lit for most of the 'on' cycle, either.) Some one already suggested using a bridge rectifier. That will convert the negative portion of the AC wave to positive. Add a capacitor or two to filter the ripple, and you've got a decent DC power supply. The DC will be somewhat higher voltage than the AC wave form. AC voltages are given as RMS, which is more of an average (VOMs also measure RMS.) Since the peak AC voltage is higher, the DC will be higher.

0
Weissensteinburg
Weissensteinburg

Reply 12 years ago

Don't worry about the resistor or power supply numbers...the diagram thing I used chose those automatically.

0
Patrik
Patrik

Reply 12 years ago

I recommend using the "Guru" on http://ledcalc.com. Note that if you use the "parallel leds" calculator on that page, it will put all the leds in parallel, with a single limiting resistor - this is wrong. For the same choice of parameters, the "Guru" calculator will correctly put a resistor in series with each led.

Also, you can put a number of leds in series with a single resistor, and then put a number of these series circuits in parallel.

0
guyfrom7up
guyfrom7up

12 years ago

well I have to go to bed, nighty night (school night)

0
guyfrom7up
guyfrom7up

Reply 12 years ago

oh and by the way, does this have to deal with the led contest in any way ;)

0
guyfrom7up
guyfrom7up

12 years ago

ummm.... what's the circles?