# Need to convert 12VAC to 12VDC & cheap = good

**URL:** <https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161>\
**Category:** Factual Questions\
**Created:** [April 27, 2012, 6:16pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161 "2012-04-27T18:16:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanicbird](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kanicbird](https://boards.straightdope.com/u/kanicbird)\
**Post date:** [April 27, 2012, 6:16pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/1 "2012-04-27T18:16:03Z")

</div>

I have some 12VDC colorchanging LED’s and I have a available 12VAC source, I need a way to combine the 2.

I could do this with a single diode but I don’t want any flicker effect.

I know there is a simple circuit I could build with diodes and a capacitor which is a option, but would need help in getting the correct ones for this purpose.

Or is there a simple and cheap premade device to do exactly that, which would be ideal?

Also what would happen if I hooked up the LED’s direct to the 12VAC as they are diodes already, it would seem like it may work but have the flicker effect?

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [April 27, 2012, 6:18pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/2 "2012-04-27T18:18:04Z")

</div>

Use an LM7812-type regulator, a bridge rectifier and 2 capacitors.

ETA: [here’s](http://www.phoenixcomputerlabs.com/All-About-Mixers/images/LM7812-1Amp-12v-Power-Supply.gif) a schematic - ignore the transformer (you already have that).

EETA: Remember to put the regulator on a heatsink if you are going to dissipate more than a Watt or so (power dissipated by the regulator is Vdrop from input to output of the regulator X the current the LEDs are using).

---

<div class="post-metadata">

**Author:** ![Crafter\_Man](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/crafter_man/32/458_2.png) [@Crafter\_Man](https://boards.straightdope.com/u/Crafter_Man)\
**Post date:** [April 27, 2012, 9:46pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/3 "2012-04-27T21:46:48Z")

</div>

With full-wave regulation and capacitor filtering, a 12 VAC transformer will generate a no-load voltage of around 15.6 VDC. The voltage will quickly drop from this value as the load resistance is decreased. If the input voltage to the LM7812 drops below 14 VDC the LM7812 will stop working. That’s not much of a margin. A bigger capacitor can help, but only up to a point. A 14 VAC to 18 VAC transformer would be more suitable.

---

<div class="post-metadata">

**Author:** ![figure9](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@figure9](https://boards.straightdope.com/u/figure9)\
**Post date:** [April 27, 2012, 10:27pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/4 "2012-04-27T22:27:45Z")

</div>

Go to a thrift store. Look at toys and computer printers. You may find a 12VDC adapter ready to go.

---

<div class="post-metadata">

**Author:** ![figure9](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@figure9](https://boards.straightdope.com/u/figure9)\
**Post date:** [April 27, 2012, 10:32pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/5 "2012-04-27T22:32:50Z")

</div>

Or this place might work [http://www.goldmine-elec-products.com/prodinfo.asp?number=G17259](http://www.goldmine-elec-products.com/prodinfo.asp?number=G17259)

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 27, 2012, 10:50pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/6 "2012-04-27T22:50:08Z")

</div>

Where the heck are you getting a 12VAC source?

A rectifier and capacitor would work, but you’d never get really clean output. Your best bet might be a full-wave rectifier and something like [this](http://www.ebay.com/itm/LM2577-DC-DC-Converter-3-34V-to-4-35V-15W-Step-up-Power-Supply-Boost-Module-/150803933025?pt=LH_DefaultDomain_0&hash=item231c9d6761#ht_4468wt_1196). It handles anywhere from 3-34 VDC input and 4-35 VDC output. Depending on the input frequency and output current, the unit’s internal capacitors may be enough to handle the low-voltage periods; otherwise, an extra capacitor would do the trick.

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [April 27, 2012, 11:16pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/7 "2012-04-27T23:16:07Z")

</div>

> [@Dr.Strangelove](#):
>
> Where the heck are you getting a 12VAC source?
> 
> A rectifier and capacitor would work, but you’d never get really clean output. Your best bet might be a full-wave rectifier and something like [this](http://www.ebay.com/itm/LM2577-DC-DC-Converter-3-34V-to-4-35V-15W-Step-up-Power-Supply-Boost-Module-/150803933025?pt=LH_DefaultDomain_0&hash=item231c9d6761#ht_4468wt_1196). It handles anywhere from 3-34 VDC input and 4-35 VDC output. Depending on the input frequency and output current, the unit’s internal capacitors may be enough to handle the low-voltage periods; otherwise, an extra capacitor would do the trick.

Careful.  
That is **not** a buck/boost converter. It’s boost-only, which means that the input voltage **must** be lower than 12v. If it’s higher, the output voltage will rise.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 27, 2012, 11:20pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/8 "2012-04-27T23:20:22Z")

</div>

> [@beowulff](#):
>
> Careful.  
> That is **not** a buck/boost converter. It’s boost-only, which means that the input voltage **must** be lower than 12v. If it’s higher, the output voltage will rise.

Good point. If there’s enough capacitance, that shouldn’t be a problem, plus there will be some voltage drop from the rectifier. But if you wanted to be extra careful you could put an LM7809 or some such on the input.

---

<div class="post-metadata">

**Author:** ![kanicbird](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kanicbird](https://boards.straightdope.com/u/kanicbird)\
**Post date:** [April 27, 2012, 11:24pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/9 "2012-04-27T23:24:54Z")

</div>

> [@Dr.Strangelove](#):
>
> Where the heck are you getting a 12VAC source?

It’s from a low voltage landscape lighting system, which I would like to also add in these color changing LED’s but the system operates at 12VAC. I don’t want to run another wire just for these LED’s, and also would like the LED’s to light up when the other lights come on and not have 2 different timers.

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [April 27, 2012, 11:39pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/10 "2012-04-27T23:39:27Z")

</div>

How much current do your new LEDs require?

---

<div class="post-metadata">

**Author:** ![kanicbird](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kanicbird](https://boards.straightdope.com/u/kanicbird)\
**Post date:** [April 28, 2012, 12:09am UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/11 "2012-04-28T00:09:01Z")

</div>

> [@beowulff](#):
>
> How much current do your new LEDs require?

It appears like 20mA x 5 LED’s, so if I am reading this right 100mA’s for all.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 28, 2012, 12:13am UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/12 "2012-04-28T00:13:11Z")

</div>

> [@kanicbird](#):
>
> It appears like 20mA x 5 LED’s, so if I am reading this right 100mA’s for all.

Well, it depends on whether they’re wired in series or parallel. However, if these are RGB color changers, then they’ll need at least 3 volts or so, which all told exceeds 12 VDC. So there’s a good bet the rest of the voltage is handled via current-limiting resistors.

With that low of a current rating, I’d just stick with a full-wave rectifier and a capacitor. You wouldn’t need much of a cap to handle that low of a current.

---

<div class="post-metadata">

**Author:** ![kanicbird](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kanicbird](https://boards.straightdope.com/u/kanicbird)\
**Post date:** [April 28, 2012, 12:05pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/13 "2012-04-28T12:05:53Z")

</div>

The LED’s came prewired individually (not linked together) , they are for now each hooked up to 12VDC for testing - right now using a transformer though that’s not how I want to run them in the garden as I want to use this existing 12VAC source. So I assume there is a resistor.

Thanks for the help so far, but these questions remain.

Should I get a rectifier or make one? Doing a quick search it looks like rectifiers are made to attach to a PCB instead of being wired, also some of them appear to be 3 wire instead of 4 and I’m not sure how that would work.

What happens if I hook up the LEDs directly to the 12VAC? Will I damage them?

---

<div class="post-metadata">

**Author:** ![kanicbird](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kanicbird](https://boards.straightdope.com/u/kanicbird)\
**Post date:** [April 28, 2012, 12:13pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/14 "2012-04-28T12:13:04Z")

</div>

Looking at the Radio Shack site I see this rectifier:

> **[RadioShack.com Official Site - America's Technology Store](https://www.radioshack.com/)**
>
> The Shack Is Back! Shop Radios, Headphones, TV Antennas, Cables & Adapters, DIY Tools & Parts, Electronics Maker Kits, and much more brand new arrivals daily! Don't forget to visit any of our 450+ RadioShack locations across America!

Would that do what I need it to and would I need a capacitor or is it part of the rectifier?

---

<div class="post-metadata">

**Author:** ![johnpost](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@johnpost](https://boards.straightdope.com/u/johnpost)\
**Post date:** [April 28, 2012, 12:22pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/15 "2012-04-28T12:22:56Z")

</div>

you would need a capacitor in addition to that rectifier.

---

<div class="post-metadata">

**Author:** ![beowulff](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/beowulff/32/542_2.png) [@beowulff](https://boards.straightdope.com/u/beowulff)\
**Post date:** [April 28, 2012, 1:38pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/16 "2012-04-28T13:38:06Z")

</div>

> [@kanicbird](#):
>
> Looking at the Radio Shack site I see this rectifier:
> 
> [Shop Now RadioShack Products | RadioShack Official Website](http://www.radioshack.com/product/index.jsp?productId=2062581)
> 
> Would that do what I need it to and would I need a capacitor or is it part of the rectifier?

You NEED a regulator!  
If you rectify and filter 12v, you will generated nearly 17v! (You are capturing the peaks of the AC sinewave). This will likely destroy your LEDs.

---

<div class="post-metadata">

**Author:** ![Crafter\_Man](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/crafter_man/32/458_2.png) [@Crafter\_Man](https://boards.straightdope.com/u/Crafter_Man)\
**Post date:** [April 28, 2012, 2:33pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/17 "2012-04-28T14:33:34Z")

</div>

A 12 VDC regulator is best, obviously. But as I mentioned above, using something like an LM7812 with a 12 VAC transformer might not work due to the regulator’s dropout voltage.

If the OP does not want to use a regulator chip, there may be some ways of getting around it (albeit less efficient and less elegant). Because I do not know the precise specs for the transformer and load, I will not guarantee any of these will work right off the bat; some experimentation is probably in order:

[Circuit Idea 1](http://i1103.photobucket.com/albums/g471/ohio_rifleman/Slide1.jpg)  
[Circuit Idea 2](http://i1103.photobucket.com/albums/g471/ohio_rifleman/Slide2.jpg)  
[Circuit Idea 3](http://i1103.photobucket.com/albums/g471/ohio_rifleman/Slide3.jpg)

---

<div class="post-metadata">

**Author:** ![engineer\_comp\_geek](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/engineer_comp_geek/32/504_2.png) [@engineer\_comp\_geek](https://boards.straightdope.com/u/engineer_comp_geek)\
**Post date:** [April 28, 2012, 6:17pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/18 "2012-04-28T18:17:33Z")

</div>

There are a lot of different types of power supply circuits.

You could just stick a capacitor on the end of your single diode, like this circuit:  
[http://www.electronic-circuits-for-hobbyists.com/images/half-wave-rectifier-circuit-diagram.JPG](http://www.electronic-circuits-for-hobbyists.com/images/half-wave-rectifier-circuit-diagram.JPG)

This circuit actually works fine for some applications, and it has the advantage of being very simple and very cheap. The disadvantage is that the single diode makes what is called a half-wave rectifier, meaning that it simply chops off and ignores the negative half of the AC sine wave. This makes it less efficient than a full wave rectifier and it will also be able to supply less DC power than a full wave rectifier, all other things being equal. The filter capacitor also has to be larger than the filter capacitor in a full wave rectifier, since it has to hold up the voltage for a longer period of time.

It also has a disadvantage in that there is no voltage regulation at all in it. AC power in your house isn’t 120 volts exactly (or 220 depending where you are in the world). If the power company guarantees 120 +/- 5 percent, then the voltage could be anywhere from 112 to 126 volts. This would mean your AC output of your transformer would be anywhere from 11.2 to 12.6 volts. Some circuits don’t mind that much variation. Other circuits want that 12 volts to be very close to 12 volts.

You can also use four diodes to make a full wave rectifier, like this circuit:  
[![](https://upload.wikimedia.org/wikipedia/commons/thumb/a/a3/RC_Filter.png/400px-RC_Filter.png) ](https://upload.wikimedia.org/wikipedia/commons/thumb/a/a3/RC_Filter.png/400px-RC_Filter.png)

This has the advantage of using the entire AC wave, which means it can supply more power and it requires a smaller filter capacitor than the half wave rectifier above. It still has the disadvantage of not having any regulation in it, so the output voltage will still vary with the input AC voltage.

If you want your 12 volts to be 12 volts, and not somewhere between 11 and 13 volts, then you can add a voltage regulator, like the top circuit here:  
[http://www.dwengo.org/sites/default/files/domotics\_circuit\_0.png](http://www.dwengo.org/sites/default/files/domotics_circuit_0.png)

You have to be careful with this, as most voltage regulators will not regulate all they way “to the rail” (up to the supply voltage). Most of them need to be a volt or two above their output voltage. If you try to drive a 12 volt regulator off of a voltage that varies between 12 and 14 volts you are going to find that it doesn’t work properly.

About capacitors: An electrolytic capacitor is good for the bulk filtering, but they don’t work very well at high frequencies. Ceramic disk capacitors work very well at high frequencies, but they are too small to be used for bulk filtering. Many power supply circuits will therefore use both types of capacitors in parallel, with the big electrolytic doing the bulk of the work and the small ceramic making sure you don’t get any high frequency weirdness.

Also keep in mind that a full wave or half wave rectifier alone, with a capacitor filter, is going to have a voltage fairly close to the peak voltage, not the average (RMS) voltage. So if you have a 12 VAC transformer output, the peak output is up close to 17 volts. Factoring in the voltage drop of your diodes and the ripple in your filter capacitor and the output voltage will probably be hovering somewhere around 15 to 16 volts. ETA: But again, without a regulator this voltage will be higher or lower depending on the AC supply voltage, so it could be anywhere between maybe 14 to 17 volts or so.

---

<div class="post-metadata">

**Author:** ![Dr.Strangelove](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/dr.strangelove/32/6613_2.png) [@Dr.Strangelove](https://boards.straightdope.com/u/Dr.Strangelove)\
**Post date:** [April 28, 2012, 6:30pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/19 "2012-04-28T18:30:45Z")

</div>

> [@beowulff](#):
>
> You NEED a regulator!  
> If you rectify and filter 12v, you will generated nearly 17v! (You are capturing the peaks of the AC sinewave). This will likely destroy your LEDs.

Eh… as best I can tell the voltage drop of that rectifier is 1.4v, so you’re really talking 15.5v. If the base voltage drop of the LED is 3.3v, then that implies a 440 ohm limiting resistor. If at 15.5v, the higher current implies a voltage of 3.5v, then the current has gone up to only 27 mA. That’s very unlikely to smoke an LED, or even significantly shorten its lifespan.

I had to guess on the voltages since I don’t have the datasheet, but I know they aren’t too far off. And if he’s still worried, he can just stick 3 LM4004s in series after the rectifier to get the voltage to drop to closer to 12.

Still, a regulator would be best. It’s a bit more expensive than the one I linked to upthread, but [this](http://www.ebay.com/itm/Auto-Buck-Boost-Solar-Power-Voltage-Regulator-3-35V-to-1-2-30V-1A-DC-Converter-/280867874670?pt=LH_DefaultDomain_0&hash=item416507a76e#ht_5304wt_902) supports both up and down regulation. You’ll still need a rectifier and a cap, though.

---

<div class="post-metadata">

**Author:** ![Michael63129](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@Michael63129](https://boards.straightdope.com/u/Michael63129)\
**Post date:** [April 28, 2012, 7:13pm UTC](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161/20 "2012-04-28T19:13:57Z")

</div>

One thing to consider that hasn’t been mentioned yet is that small AC transformers in particular have a relatively high internal resistance, and output voltage is specified at full load, so the no load (and light load, as in the OP’s use, assuming the transformer isn’t really small) output voltage will be higher; I have seen no-load voltages as high as 20v (after rectification) on 12v transformers. Also, instead of using standard 1N400x diodes, you could use schottky diodes like 1N5819s and gain about a volt (voltage drop is more like 1 volt at load using standard diodes and 0.5v for schottky diodes).

In any case, if the load is relatively constant or doesn’t vary much (is the power going to LEDs only or is there additional circuitry being powered?), resistors may be sufficient, chosen for the middle of the expected voltage range (e.g use 16v for 18v no-load, 14v full load).

Also, while it may be overkill, if any significant current is needed, I’d make a simple switching regulator to convert to a regulated 12 v (or even a bit lower if the LEDs can run at lower voltage); one can even be built using a couple transistors, zener diode, inductor and some resistors and capacitors (i.e no IC needed).

[Next page](https://boards.straightdope.com/t/need-to-convert-12vac-to-12vdc-cheap-good/620161.md?page=2)
