
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:
Arduino and Raspberry Pi projects
Powering sensors and microcontrollers
DIY electronics and school projects
Final Year Projects (FYP) for engineering students
Safe isolation from mains voltage using a transformer
Stable 5V output for sensitive electronics
Simple and cost-effective solution
Widely available components (found at Hall Road Lahore or Qkzee Tech)
| Component | Specification | Purpose |
|---|---|---|
| Step-down Transformer | 220V AC to 12V AC, 1A | Steps down mains voltage |
| Bridge Rectifier | 1N4007 diodes (x4) or DB107 module | Converts AC to DC |
| Filter Capacitor | 1000µF, 25V | Smooths rectified DC |
| Voltage Regulator | 7805 IC | Regulates to 5V |
| Capacitors | 100µF & 0.1µF, | Noise filtering |
| Heat Sink | For 7805 | Prevents overheating |
| PCB/Breadboard | – | Circuit assembly |
| Fuse | 250V, 500mA | Safety protection |
Components are available at Qkzee Technologies Hall Road Lahore, an electronics hub. Check Qkzee Tech or Qkz Tech, which cater to engineering services and DIY enthusiasts for online purchases.
Connect the primary side to 220V AC through a 500mA fuse for safety
The secondary side will output 12V AC (this will become ~12V DC after rectification)
Build a bridge rectifier using 4x 1N4007 diodes (or use a DB107 module)
This converts 9V AC to pulsating DC
Add a 1000µF, 25V capacitor across the rectifier output
This reduces ripple and provides ~12V DC
Connect the 7805 regulator:
Input Pin → Filtered DC (~12V)
Ground Pin → Common ground
Output Pin → 5V DC output
Add 1000µF at input and 0.1µF and 100uF at output for stability
Attach a heat sink to the 7805 (especially if drawing >200mA)

⚠️ Warning: Working with 220V AC can be dangerous!
Always disconnect power when making changes
Use proper insulation for all connections
Consider using an enclosure for final projects
Double-check polarity of all components
Check Transformer Output (should be ~9V AC)
After Rectification (should be ~12V DC with ripple)
Final Output (should be stable 5V ±0.25V)
Common Issues:
No output? Check fuse and transformer connections
Overheating? Reduce load current or improve heat sinking
Unstable voltage? Check capacitor values and connections
Arduino power supply
USB charger circuit
Sensor power modules
DIY lab power supply
School and university projects
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.
Looking for affordable components for this Arduino project? Check out QKZee Technologies, an online shop in Lahore, Pakistan, offering the best components for students and DIY projects. Whether you’re looking for sensors, modules, or other electronics at a cheap price, they’ve got it all. Visit them at QKZeeTech.