This guide will show you how to build a safe and reliable 220V AC to 5V DC converter using a step-down transformer and 7805 voltage regulator. This circuit is perfect for:
| Component | Specification | Purpose |
|---|---|---|
| Step-down Transformer | 220V AC to 12V AC, 1A | Steps down mains voltage — available on order, message us on WhatsApp |
| Bridge Rectifier | 1N4007 diodes (x4) or DB107 module | Converts AC to DC — available on order, message us on WhatsApp |
| Filter Capacitor | 1000µF, 25V | Smooths rectified DC — available on order, message us on WhatsApp |
| Voltage Regulator | 7805 IC | Regulates to 5V — available on order, message us on WhatsApp |
| Capacitors | 100µF & 0.1µF | Noise filtering — available on order, message us on WhatsApp |
| Heat Sink | For 7805 | Prevents overheating — available on order, message us on WhatsApp |
| PCB/Breadboard | MB102 breadboard | Circuit assembly — Rs 250 |
| Fuse | 250V, 500mA | Safety protection — available on order, message us on WhatsApp |
If you want a ready-made step-down module instead of building the mains circuit, see the LM2596 DC-DC buck converter module (Rs 165) — it takes a DC input and gives an adjustable DC output, with no mains wiring at all.

⚠️ Warning: Working with 220V AC can be dangerous!
Common Issues:
Creating your own 220V AC to 5V DC power supply using a 7805 voltage regulator is simple, affordable and highly useful. Whether you're building a smart system for your FYP or tinkering with DIY electronics, this basic power supply module will be a reliable power source.
If you only need to step down a DC voltage (for example, 12V to 5V for an Arduino), you don't need the mains circuit at all — see our 12V to 5V converter using 7805 for the DC-only version.
The MB102 breadboard (Rs 250) and the LM2596 buck converter module (Rs 165) are available at QKZEE Technologies, Shop 20, 1st Floor, Al-Khalil Center, Hall Road, Lahore, and online at qkzeetech.com with delivery all over Pakistan — see the links above. The transformer, bridge rectifier, 7805, capacitors, heat sink and fuse are available on order — message us on WhatsApp and we will arrange them for you.
If the output is 0V, or the 7805 gets hot immediately, message us — tell us the voltage at each stage (transformer output, after the rectifier, and at the 7805 output) and whether the fuse is intact, and we will help you find the fault.
Chat on WhatsApp Watch on YouTube
Why does the transformer output say 12V AC but the DC after the rectifier is higher?
A 12V AC secondary gives about 12 × 1.414 ≈ 17V peak, minus about 1.4V lost in the bridge rectifier, so the filtered DC is roughly 12–15V depending on load. That is normal — the 7805 needs at least 7V at its input, so 12–15V is fine.
Can I use a 9V transformer instead of 12V?
Yes — a 9V AC secondary gives about 11V DC after rectification, which is still above the 7805's 7V minimum. The old post mixed 9V and 12V in different steps; this guide uses 12V throughout for consistency.
Why does the 7805 get so hot?
The 7805 burns the extra voltage as heat: (input voltage − 5V) × current. At 12V in and 500mA out, that is (12 − 5) × 0.5 = 3.5W — a lot of heat. Use a heat sink, and for currents above 500mA consider a switching module like the LM2596 instead.
Do I need the 100µF and 0.1µF capacitors?
Yes — the 0.1µF ceramic filters high-frequency noise and the 100µF electrolytic smooths the output. Without them the output can oscillate. The 1000µF capacitor is the main filter at the input (step 3) — do not add a second 1000µF at the 7805 input.
Is this safe to build as a student?
Only with an adult's supervision and only when it is unplugged while you wire it. Mains voltage can kill. If you are not confident, use a ready-made 5V adapter or the LM2596 module with a DC input instead — no mains wiring needed.
Can I power an Arduino from this?
Yes — the 5V output can power an Arduino through its 5V pin (not the barrel jack, which needs 7–12V). Keep the load under 500mA unless the 7805 has a good heat sink.
A 220V AC to 5V DC converter is one of the most useful power supplies you can build: transformer, bridge, filter cap, 7805, and two small output capacitors. Keep the voltages consistent — 12V AC in, about 12–15V DC after the filter, 5V out — use a fuse on the primary, and never wire it live. That is the whole project, and it works.