A regulated power supply circuit uses four stages: transformer, rectifier, filter, and regulator to convert AC mains into stable DC voltage.
Without a stable DC supply, most modern electronics wouldn’t function. The AC to DC power supply diagram shows how mains voltage gets transformed into smooth, regulated DC that circuits actually need. Understanding these four stages lets you build, repair, or spec a power supply for any small electronics project.
AC to DC Power Supply Circuit: The Four Essential Stages
Every AC to DC power supply follows the same core flow. The circuit takes incoming AC mains, passes the voltage through four sequential stages, and delivers DC power clean enough for sensitive electronics. Each stage has a specific job, and skipping any one means the output won’t be usable.
Stage 1: Transformer
The transformer steps down the high mains voltage to a lower AC voltage safe for the rest of the circuit. In the US, that means converting 110V AC to something like 12V or 18V AC. A center-tap transformer is common, with typical ratings like 127V/18V or 230V/12V. The transformer also provides galvanic isolation between the mains and the output — a critical safety feature.
Stage 2: Rectifier
A W02M diode bridge contains four diodes that convert the AC waveform into pulsating DC. Full-wave rectification uses both halves of the AC cycle, producing a series of positive voltage pulses instead of the alternating positive-negative swing of AC.
Stage 3: Filter
A 1000 µF electrolytic capacitor smooths the pulsating DC into a more stable voltage. Without this capacitor, the output would still pulse between zero and peak voltage — fine for a few specific loads but useless for most electronics.
Stage 4: Regulator
An LM7805 linear regulator takes the filtered DC and outputs a rock-solid 5V DC regardless of small input fluctuations. The LM7809 (9V output) or other 78xx-series regulators work the same way for different voltage needs.
What Components Make Up the AC to DC Converter?
The component list for a basic 5V DC power supply is short and inexpensive. Each part has a specific function that contributes to the final output.
| Component | Function | Typical Value / Part |
|---|---|---|
| Transformer | Steps down AC mains voltage and provides isolation | 127V/18V or 230V/12V center-tap |
| Bridge Rectifier | Converts AC to pulsating DC | W02M diode bridge |
| Filter Capacitor | Smooths voltage ripple | 1000 µF electrolytic |
| Voltage Regulator | Stabilizes output voltage | LM7805 (5V output) |
| Input Stability Cap | Prevents regulator oscillation | 0.33 µF ceramic |
| Output Stability Cap | Maintains regulator stability | 0.1 µF ceramic |
| Fuse | Overcurrent protection | Rated for load current |
The transformer and bridge rectifier handle the raw conversion, the filter capacitor cleans up the signal, and the LM7805 regulator locks the output at the right voltage regardless of load changes. The two small ceramic capacitors on the regulator’s input and output prevent oscillation — a condition where the regulator rapidly switches on and off instead of producing steady voltage.
How Do You Build a Basic AC to DC Power Supply?
Building a 5V DC power supply from the diagram is straightforward with the right parts. Follow these steps in order, and check each connection before applying power.
- Wire the transformer. Connect the mains AC input to the transformer’s primary side. Connect the secondary side to the AC input terminals of the W02M bridge rectifier.
- Add the bridge rectifier. The W02M has two AC input pins and two DC output pins. The transformer secondary connects to the AC inputs; the DC outputs carry pulsating DC voltage.
- Install the filter capacitor. Connect a 1000 µF electrolytic capacitor across the DC output of the bridge rectifier — positive to positive, negative to negative. The capacitor charges between voltage peaks and discharges into the troughs, smoothing the waveform.
- Connect the voltage regulator. Wire the capacitor’s positive output to pin 1 (input) of the LM7805. Connect the negative output to pin 2 (ground). Pin 3 (output) provides the regulated 5V DC.
- Add stability capacitors. Place a 0.33 µF ceramic capacitor between the LM7805 input pin and ground. Place a 0.1 µF ceramic capacitor between the output pin and ground. These parts prevent oscillation.
The complete linear power supply build guide from Build Electronic Circuits walks through the full design with PCB layout tips and load testing.
When powered up, the output between pin 3 and ground should read 5V DC on a multimeter with no visible AC ripple.
Common Mistakes That Ruin a Power Supply Build
Even experienced builders hit these traps. Here’s what to watch for.
- Reversed capacitor polarity. Electrolytic capacitors are polarized. Install one backwards and it bulges, leaks, or explodes. The negative lead is marked with a stripe and minus symbol.
- No filter capacitor. That pulsing voltage can confuse or damage sensitive circuits.
- Wrong transformer input voltage. A 127V primary running on 230V mains saturates the core and overheats quickly. Match the transformer primary to your local mains voltage.
- Missing stability capacitors. Skipping the 0.33 µF and 0.1 µF capacitors lets the LM7805 oscillate at high frequency, ruining the output quality. These cost pennies and should never be omitted.
- No heatsink on the regulator. The LM7805 dissipates excess voltage as heat. At currents above 500 mA, it needs a heatsink or it enters thermal shutdown.
Safety First: Working With Mains Voltage
The input side of any AC to DC power supply carries lethal voltage. 110V or 230V AC can kill, and the current capability of a mains circuit makes it especially dangerous. Always unplug the circuit before touching any part of it, and confirm the transformer provides proper isolation between primary and secondary.
Linear regulators turn excess voltage into heat. At high current, the LM7805 needs a heatsink. The built-in thermal shutdown protects the chip but means output can drop without warning if cooling is inadequate.
If you ever power a linear AC-DC supply from a DC source, the transformer won’t operate, and safety certifications like UL or CE may no longer apply. A DC input also requires a properly rated DC fuse rather than an AC fuse, per XP Power’s application guidance.
Troubleshooting Common AC to DC Power Supply Problems
When a newly built supply doesn’t behave as expected, this table helps narrow the cause quickly.
| Problem | Likely Cause | Fix |
|---|---|---|
| Output has AC ripple | Missing or undersized filter capacitor | Add 1000 µF or larger electrolytic capacitor |
| Regulator runs too hot | High voltage drop across regulator | Add heatsink or reduce current draw |
| No DC output at all | Blown fuse, bad solder joint, or wrong wiring | Check continuity with multimeter |
| Capacitor bulging or leaking | Reverse polarity or voltage exceeded | Replace with correct polarity and higher voltage rating |
| Oscillation or buzzing | Missing stability capacitors on regulator | Add 0.33 µF input and 0.1 µF output caps |
| Transformer runs hot | Overloaded secondary or shorted winding | Reduce load or replace transformer |
| Output voltage too low | Excessive current or thermal shutdown | Reduce load or improve regulator cooling |
Final Checklist for Your AC to DC Power Supply Build
Before you power up for the first time, run through this checklist. One missed step can fry components or create a dangerous condition.
- Transformer primary matches your local mains voltage
- Bridge rectifier wired with correct polarity to the transformer
- Filter capacitor installed with negative lead to ground
- LM7805 pins: pin 1 input, pin 2 ground, pin 3 output
- 0.33 µF capacitor between input and ground
- 0.1 µF capacitor between output and ground
- Clean solder joints with no bridges or cold joints
- Output reads 5V DC on multimeter before connecting any load
- Heatsink attached for loads over 500 mA
If you’d rather buy a tested commercial unit than build your own, check out the best AC to DC power supply options we’ve reviewed — they cover a range of voltages and current ratings for any project.
FAQs
What is the difference between a linear and a switching power supply?
A linear power supply uses a transformer operating at mains frequency and a linear regulator, making it heavy but very clean. A switching power supply rectifies AC directly, chops it at high frequency through a smaller transformer, and regulates via PWM — lighter and more efficient but noisier on the output.
Can I build an AC to DC power supply without a transformer?
Technically yes, using a capacitive dropper circuit, but it’s not recommended. A transformerless design lacks galvanic isolation, meaning the output is directly referenced to mains and poses a serious shock hazard. It also offers no protection against voltage surges.
Why does my power supply still show ripple after adding a filter capacitor?
The filter capacitor reduces ripple but doesn’t eliminate it entirely unless the capacitor is very large or a regulator follows. For a 1A load with 1.2V ripple tolerance, you need roughly 3,400 µF. Adding the LM7805 regulator after the filter removes the remaining ripple completely at its rated current.
What happens if I use a capacitor with too low a voltage rating?
The capacitor can break down, short circuit, or explode. The voltage rating should be at least 1.5 times the peak DC voltage at that point in the circuit. For a 12V DC output after rectification, use a 25V or higher rated capacitor.
Can I use an LM7805 to get more than 5V output?
No. The LM7805 is fixed at 5V. For other voltages, use the corresponding 78xx part: LM7809 for 9V, LM7812 for 12V, or an adjustable regulator like the LM317. All have the same basic wiring but different output voltages.
References & Sources
- Build Electronic Circuits. “How to Build a DC Linear Power Supply” Step-by-step guide covering transformer selection, rectification, filtering, and LM78xx regulation.
- Cadence. “Understanding Simple DC Power Supply Circuits” Details the four-stage architecture of basic DC supplies.
- XP Power. “Supplying an AC-DC Power Supply from a DC Source” Explains safety certification implications and fuse requirements for alternate input configurations.
