“`html
You can build a 12V DC power supply from a transformer, bridge rectifier, and 7812 regulator, or convert an ATX computer PSU for higher current.
For the full breakdown, see our best 12V LED Power Supply guide.
Mains-powered gear usually runs on 12V DC, yet most homes only supply 120V AC — so learning how to make a 12V power supply is one of the more useful electronics skills you can pick up. Three honest routes exist: a transformer-and-regulator linear circuit for low-current projects, a converted ATX computer power supply for heavier loads, and a purpose-built switch-mode supply (SMPS) if you would rather buy than build.
Which 12V Power Supply Method Should You Build?
The deciding factor is current draw: a 7812-based linear supply delivers roughly 1A, a converted ATX power supply can source 10A or more on its +12V rail, and a bought SMPS covers any rating you like with zero soldering.
For anything under about an amp — sensors, small fans, microcontroller boards — the linear build is simple and safe enough for a first project. For bigger loads like 3D printer beds, car accessories, or long LED runs, the ATX conversion wins on price and current. Transformer headroom matters more than the label: the 7812 needs about 15V DC on its input to regulate 12V cleanly, so a 12V AC transformer, which rectifies to roughly 17V peak, is the standard pairing. If you want a neat enclosed unit without building, a purpose-built SMPS is the practical middle ground; Circuit Digest’s 12V SMPS circuit design shows how the switch-mode route works internally if you want to understand your options before buying.
| Build Route | Best For | Core Parts |
|---|---|---|
| 7812 Linear Supply | Low-current projects up to roughly 1A | Transformer, four diodes (1N4007), 1000–4700µF capacitor, 7812 regulator |
| Converted ATX PSU | High-current loads, typically 10A or more | Salvaged 300W+ ATX supply, switch, 10Ω/10W resistor |
| Ready-Made SMPS | No-build, enclosed 12V wherever you need it | Encased supply unit and terminal block |
Build a 7812-Based Linear Supply From a Transformer
This circuit steps 120V AC down to a safer low voltage, converts it to DC, smooths it with a capacitor, and locks it at 12V with a 7812 regulator — it is the classic beginner build and costs a few dollars in parts.
Wire it in this order:
- Pick a transformer with a 12–15V AC secondary rated at least 1.5× the current you need — a supply that must deliver 1A should use a transformer rated for 1.5A or more.
- Build a bridge rectifier from four diodes.
- Solder the filter capacitor across the rectifier output — 1000 to 4700µF at 25V is the working range — and add a 100nF capacitor close to the regulator pins to suppress noise.
- Test with a multimeter before connecting any load: you should read 12V, usually between 11.8V and 12.2V. Check for solder bridges and shorts, then close the circuit in a plastic enclosure and insulate every mains-side connection with electrical tape or heat-shrink.
The wiring
