Most electronics projects run on low-voltage DC, but the available power source in homes and workshops is high-voltage AC. AC-DC power supplies bridge this gap by converting mains voltage into safe, stable DC power.
This article explains how AC-DC power supplies work, the different types available and how to choose the right one for your project.
What is an AC-DC Power Supply?
An AC-DC power supply converts alternating current (AC) from the mains into direct current (DC) suitable for electronics.
These supplies are essential for powering Arduino boards, ESP32 modules, LED systems and many other circuits.
How AC-DC Conversion Works
The conversion process involves several steps:
- Rectification: converts AC to pulsating DC
- Filtering: smooths the voltage using capacitors
- Regulation: stabilizes the output voltage
- Switching (modern designs): improves efficiency
Modern switching power supplies combine all of these functions into compact modules.
Main Types of AC-DC Power Supplies
Wall Adapters (External Power Supplies)
- Plug directly into wall outlets
- Provide fixed DC output (e.g. 5V, 12V)
- Simple and safe to use
These are commonly used for consumer electronics and prototyping.
Encapsulated Power Modules
- Compact modules for PCB mounting
- Fully enclosed and insulated
- Provide isolated low-voltage output
Ideal for integrating AC power directly into a circuit board.
Open Frame Power Supplies
- Exposed components on a PCB
- Higher power capability
- Require careful handling and enclosure
Common in industrial and embedded systems.
Enclosed Power Supplies
- Fully enclosed metal housing
- Higher power ratings (e.g. 50W-500W+)
- Screw terminals for wiring
Used in LED systems, automation and larger installations.
Isolated vs Non-Isolated Supplies
Isolated Power Supplies
- Electrical isolation between input and output
- Improved safety
- Standard for mains-powered systems
Non-Isolated Supplies
- No isolation between input and output
- Smaller and cheaper
- Used only in specific controlled environments
For most projects, isolated supplies are strongly recommended.
Choosing the Right Output Voltage
- 3.3V → modern microcontrollers and sensors
- 5V → Arduino, USB-powered systems
- 9V / 12V → motors, relays, LED strips
- 24V → industrial systems
Always match the voltage to the requirements of your circuit.
Choosing the Right Current Rating
The power supply must provide enough current for all connected components.
- Add up all current requirements
- Include peak loads (e.g. WiFi modules, motors)
- Add a safety margin
Using a supply with higher current rating than needed is safe, as long as the voltage is correct.
Efficiency and Heat
- Switching power supplies are highly efficient (80-95%)
- Lower efficiency leads to more heat
- Proper ventilation may be required
Efficiency becomes especially important at higher power levels.
Safety Considerations
- Never work on live AC circuits
- Use insulated and certified modules
- Ensure proper grounding where required
- Keep adequate spacing on PCBs (creepage and clearance)
Mains voltage is dangerous and must be handled carefully.
Typical Applications
| Application | Recommended Type | Notes |
|---|---|---|
| Arduino project | 5V wall adapter | Simple and reliable |
| Embedded device | Encapsulated module | Compact integration |
| LED system | Enclosed PSU | Higher power required |
| Industrial control | Open frame or enclosed PSU | Robust and efficient |
Common Mistakes
- Using the wrong output voltage
- Undersizing the current rating
- Ignoring isolation requirements
- Using low-quality or uncertified power supplies
Conclusion
AC-DC power supplies are essential for converting mains voltage into usable DC power. Choosing the right type ensures safe, stable and efficient operation of your electronics projects.
Understanding the differences between wall adapters, modules and enclosed supplies helps you select the best solution for your application.
