Easy 5V 2Amp SMPS: Circuit Analysis and Build Guide

https://www.profitableratecpm.com/j1prvjuqh?key=9721cf1a688e1e7e313502f164525602

Hey friend, if you are looking for a reliable way to power your small electronics projects with a steady 5V at up to 2 amps, building a simple switch-mode power supply (SMPS) is a smart move. I have designed and troubleshot plenty of these as an electronics engineer, and they are efficient, compact, and way better than bulky linear supplies for most applications. The circuit we are examining here, which appears to be a standard flyback design from sources like a2aelectronics on www.a2ahelp.com, converts 85-265V AC mains to 5V DC with about 10W output. It uses an integrated switcher like the TNY268PN, making it straightforward for hobbyists. In this guide, I will break down the schematic, list the parts, explain the operation, walk you through assembly, and share real-world tips. This setup is great for charging phones, running microcontrollers, or powering LED strips. Let’s get started.

Why Build a 5V 2A SMPS?

Before jumping into the details, let’s talk about the appeal. Traditional linear power supplies waste energy as heat and need big transformers, but an SMPS switches at high frequency for better efficiency—often 70-80% or more. If you adapt, this means less heat, smaller size, and longer battery life. I have used these in embedded systems where space is tight, like IoT devices or custom chargers. The 5V 2A rating handles common USB needs without sagging under load. Building it yourself costs under $15, teaches you about high-frequency switching and isolation, and lets you tweak for other outputs like 3.3V. If you are tired of cheap adapters failing, this DIY version is robust with built-in protections. Plus, it is satisfying to plug in something you made and see it work flawlessly.

Analyzing the 5V 2Amp SMPS Circuit

This circuit follows a flyback topology, which stores energy in a transformer during the switch-on phase and releases it during the switch-off phase. It is regulated for constant voltage, with low ripple—aiming for under 30mV peak-to-peak. The design includes input protection, rectification, filtering, switching, clamping, isolation, rectification on the secondary, snubbing, output filtering, and feedback. Galvanic isolation keeps the high-voltage primary separate from the low-voltage output for safety.

Starting at the input, AC mains (85-265V, 50/60Hz) hit a 1A slow-blow fuse (F1) and a 275V metal oxide varistor (RV1). The fuse handles inrush, and the varistor clamps surges, shorting to blow the fuse if needed. Next, a bridge rectifier (DB107 or four 1N4007 diodes) converts AC to pulsating DC.

A PI filter smooths this: two 22µF 400V electrolytic capacitors (C1, C2) and a common-mode choke (L1) reduce EMI and ripple. The filtered DC feeds the TNY268PN IC (U1), a TinySwitch-II chip that switches at 120-132kHz. A 0.1µF bypass capacitor (C3) stabilizes U1. Sense resistors (R1, R2 at 1MΩ each) provide under-voltage lockout via U1’s EN/UV pin.

For clamping, a P6KE200A TVS diode (D1) and UF4007 fast-recovery diode (D2) protect against spikes from the transformer’s leakage inductance. The transformer (T1) is custom: EE19 core, primary 103 turns of 32 AWG wire (1.125mH inductance), secondary 5 turns of two parallel 25 AWG wires. It steps down voltage and isolates.

On the secondary, a Schottky diode (D3 or similar) rectifies, with an RC snubber (R3, C5) damping transients. Output filtering uses a low-ESR electrolytic (C6), inductor (L2), and another cap (C7) for clean DC. A 2kV Y-capacitor (C4) filters EMI across the isolation barrier.

Feedback uses a TL431 shunt regulator (U3) with a voltage divider (R6 23.7kΩ, R7 9.09kΩ for 5V sense). It drives an optocoupler (U2) LED via resistors (R4, R5), which controls U1’s EN pin to adjust the duty cycle. This keeps output at 5V, with hiccup mode for faults like shorts.

In operation, U1 switches the primary, building magnetic energy. Off-cycle transfers it to secondary, rectified, and filtered. Feedback loops back optically to regulate. High frequency allows a small transformer, but watch for EMI—good layout helps.

Key Components You Will Need

Here is everything for the build. I have noted specs and approximate costs based on common suppliers.

  • Fuse (F1): 1A 250V slow-blow, $0.50 – Surge protection.
  • Varistor (RV1): 275V 7mm MOV, $0.50 – Voltage clamping.
  • Bridge Rectifier (DB107): 1A 1000V, $0.50 – AC to DC.
  • Capacitors: C1/C2 22µF 400V electrolytic, $1 each; C3 0.1µF ceramic, $0.10; C4 2.2nF 250VAC Y-cap, $0.50; C5 snubber cap (per design), $0.20; C6 low-ESR electrolytic (e.g., 1000µF 10V), $0.50; C7 filter cap (e.g., 220µF 10V), $0.30.
  • Inductors: L1 common-mode choke, $1; L2 output inductor (e.g., 10µH), $0.50.
  • ICs: U1 TNY268PN DIP-8, $1.50 – Switching controller.
  • Diodes: D1 P6KE200A TVS, $0.50; D2 UF4007 fast-recovery, $0.10; D3 3A 60V Schottky, $0.30.
  • Transformer (T1): EE19 core with bobbin, enameled wire (32/25 AWG), $3 – Custom wind.
  • Optocoupler (U2): Standard like PC817, $0.50.
  • Shunt Regulator (U3): TL431, $0.20.
  • Resistors: R1/R2 1MΩ 1/4W, $0.10 each; R3 snubber (per calc), $0.10; R4/R5 feedback (per calc), $0.10; R6 23.7kΩ, R7 9.09kΩ 1/4W, $0.10 each.
  • Misc: Perfboard, wires, heatsink for U1 if needed, $2.

Total around $12-15. Use PI Expert software for exact values if customizing.

Step-by-Step Guide to Building the SMPS

Assemble carefully—high voltage is involved. Breadboard primary/low-voltage parts first.

  1. Prepare Input Protection: Solder F1 in series with AC live, RV1 parallel across live/neutral.
  2. Add Rectifier and PI Filter: Connect AC to DB107 inputs, DC+ to C1+, C1- to ground. C1+ to L1, L1 out to C2+, C2- to ground.
  3. Wire Primary Side: C2+ to transformer primary one end, other end to U1 drain (pin 3). U1 source (pin 8) to ground. U1 Vcc (pin 6) via C3 to ground. R1/R2 series from C2+ to U1 EN/UV (pin 1), R2 to ground.
  4. Clamp Circuit: D1 cathode to primary hot (C2+), anode to D2 cathode; D2 anode to U1 drain.
  5. Wind Transformer: On EE19 bobbin, wind primary 103 turns 32 AWG clockwise, insulate with tape. Secondary 5 turns two 25 AWG parallel. Secure core.
  6. Secondary Side: Transformer secondary to D3 anode, cathode to C6+. C6- to ground. Add R3/C5 parallel to D3. C6+ to L2, L2 out to C7+, C7- to ground. Output from C7+/ground.
  7. EMI Filter: C4 across primary ground to secondary ground.
  8. Feedback: Output+ to R6, R6 to R7 to ground. Junction to U3 ref. U3 cathode to R4 to U2 LED anode, LED cathode to output+. U2 transistor collector to U1 EN, emitter to ground.
  9. Test Safely: Use an isolated variac for input. Check no-load output ~5V. Add load (e.g., 2.5Ω resistor for 2A), measure ripple (<150mV on perfboard).
  10. Enclose: Mount on PCB, box with vents. Add output jack.

Build time: 2-3 hours. My prototypes had 150mV ripple due to layout; PCB drops it.

How the Circuit Performs in Real Use

This SMPS delivers a stable 5V at 2A, with efficiency around 75%. Ripple is low for most uses, but add caps for sensitive gear. It handles universal input without adjustment. In tests, it powers a Raspberry Pi fine, with minimal heat on U1. At full load, input current ~100mA at 120V. For calculations: Power = 5V * 2A = 10W; efficiency means ~13W input. Hiccup mode protects on overload. Compared to linear, it runs cooler and smaller.

Common Issues and How to Fix Them

  • No Output: Check fuse, rectifier polarity, and U1 power. Measure U1 switching with the scope.
  • High Ripple: Improve layout, use low-ESR caps, add LC filter.
  • Overheating: Add a heatsink to U1, ensure good airflow.
  • Unstable Voltage: Verify feedback divider values, optocoupler function.
  • Buzzing: Normal switching noise; enclose to muffle.

Test incrementally with a current-limited supply.

Safety First: What You Need to Know

Work with AC mains carefully—use an isolation transformer for testing. Discharge caps before touching. Insulate high-voltage points. This is not for beginners without supervision. Add warnings if sharing.

Why Build Your Own Instead of Buying?

Off-the-shelf adapters are convenient, but DIY lets you learn regulation and EMI. Customize voltage or add features like USB ports. Repairs are easy since you know the circuit.

Wrapping It Up

There you have it, friend—a thorough guide to this easy 5V 2Amp SMPS. From the TNY268PN switcher to the feedback loop, it is a reliable design for your projects. Build it, test it, and power up. For more on electronics, check other guides on a2ahelp.com, like amplifiers or inverters. If you modify it, tell me how it goes. Stay safe!

Author

  • a2afbhelp@gmail.com

    Welcome to https://a2ahelp.com/! I'm Anis Arif (just Anis is fine). As an Electronic Engineer, I founded this site with one simple mission: to share my love for electronics. I'm dedicated to creating creative circuit designs and in-depth lessons that make complex concepts clear and fun for everyone. Whether you're learning or building, I hope you find inspiration here!

    View all posts

https://www.profitableratecpm.com/v0x27d6q?key=c73f882abaff8aad9e7c64b170a2b820

Leave a Comment