Step-by-Step SMPS Power Supply Circuit Design and Schematic Guide

For a 5V/2A output with a 12–24V input range, use a flyback topology paired with a NCP1014 controller. This IC integrates a 700V MOSFET, reducing external component count while handling up to 15W without heatsinks. Place the transformer primary winding (47μH) directly between the IC’s DRAIN pin and the input bulk capacitor (47μF/50V). Add a 1N4007 diode across the MOSFET to clamp voltage spikes, preventing avalanche breakdown.
On the secondary side, employ a SB560 Schottky diode for rectification–its 5A/60V rating ensures minimal conduction losses. Follow this with a 10μF/16V output capacitor placed no farther than 2cm from the diode’s cathode to reduce ripple to under 50mV. Include a 10Ω resistor in series with a 1μF ceramic capacitor between the output and feedback pin to stabilize the control loop, cutting oscillation risks by 30%.
Position the feedback resistors (10kΩ/1% and 2.2kΩ/1%) adjacent to the IC’s FB pin, avoiding long traces that pick up noise. Route the optocoupler (PC817) return path directly to the transformer’s auxiliary winding–this ensures consistent regulation even with 10% input voltage swings. Add a 1kΩ resistor between the optocoupler’s collector and the controller’s VCC pin to enhance startup reliability.
For EMI suppression, insert a 100nF/250V X-capacitor between the input lines and a 1mH common-mode choke before the bridge rectifier. Ground the Y-capacitors (2.2nF/2kV) at a single point near the transformer’s core to prevent ground loops. Test the layout with a 50Ω load; efficiency should exceed 82% at full load, with standby power under 0.1W.
Designing a Compact Switching Regulator Layout
Use a flyback converter topology for low-cost applications under 100W, pairing a MOSFET (e.g., Infineon IPA60R160P7) with a PWM controller (e.g., UC3843) to achieve 85-92% efficiency at 12V/5A output. Place the input filter capacitors (2x 220μF/400V) within 10mm of the bridge rectifier’s cathode to suppress high-frequency noise, and route the ground return of the snubber network (1KΩ + 0.1μF) directly to the MOSFET source to minimize ringing.
- Keep the high-current paths–MOSFET drain to transformer primary, output diode to LC filter–as short and wide (minimum 3mm for 5A) as possible to reduce I²R losses.
- Mount the output diode (STTH8S06D, 60V/8A) on a heat sink if ambient exceeds 50°C; thermal resistance drops from 45°C/W to 8°C/W with a 25x25mm aluminium pad.
- Add a ferrite bead (e.g., Murata BLM21PG121SN1L) in series with the feedback path to prevent EMI coupling into the control loop.
- Use a 10nF/630V ceramic capacitor across the transformer primary to clamp voltage spikes; exceeding 550V risks MOSFET avalanche breakdown.
Ensure the feedback divider (10KΩ + 2.2KΩ) connects to the output node via a twisted pair to reject noise, and position the optocoupler (PC817) less than 30mm from the controller to avoid phase lag in the regulation loop.
Core Elements for Constructing a Switch-Mode Converter

The foundation of any switch-mode converter lies in its high-frequency transformer, which must be selected based on the target output voltage and current. For low-voltage applications (5V–24V), toroidal or E-core transformers with a ferrite core (e.g., N87 or 3C90 material) offer minimal losses at 50–200 kHz switching frequencies. Avoid powdered iron cores–they saturate quickly and generate excessive heat. Calculate the primary-to-secondary turns ratio using Ns/Np = Vout/(Vin × D), where D is the duty cycle (typically 0.4–0.6). Always add a 10–15% safety margin to core size to prevent saturation under load transients.
A PWM controller IC such as the UC3843, TL494, or SG3525 governs the switching action. The UC3843 excels in current-mode control, offering built-in overcurrent protection with a 1% accuracy in duty cycle regulation. For designs requiring adjustable dead-time (e.g., half-bridge topologies), the SG3525 provides independent control of on/off delays. Ensure the IC’s maximum switching frequency aligns with the transformer’s optimal range–exceeding 250 kHz with ferrite cores increases core losses exponentially. Decouple the IC’s VCC pin with a 1µF ceramic capacitor to suppress noise-induced malfunctions.
The power switch–usually a MOSFET–must withstand at least 1.5× the input voltage plus a 20% safety margin. For 230V AC inputs, a 600V device like the IRFB4110 or IXFH40N60 balances low RDS(on) (≤ 0.1Ω) with fast switching (≤ 50ns rise/fall times). Gate drivers (e.g., IR2110, UCC27424) are mandatory for isolated topologies; use a bootstrap circuit for high-side switches. Drive the gate with a 10–15V signal via a 10Ω resistor to prevent ringing–gate resistors over 22Ω slow switching and increase losses.
Output rectifiers must handle peak currents without recovery losses. For outputs ≤ 5A, Schottky diodes (e.g., 1N5822, MBR20200CT) reduce forward voltage drop to ~0.3V, but their 40V reverse voltage limit restricts use in higher-voltage converters. For 12V–48V outputs, ultrafast diodes (e.g., BYV29-500) with
A filter network smooths the rectified output. Start with a 10µH–100µH inductor (e.g., 744355440 for 3A) and a 470µF–2200µF electrolytic capacitor (low-ESR, e.g., Nichicon UHW series). The inductor’s saturation current must exceed the maximum load current by 30%. For noise-sensitive loads, add a 0.1µF–1µF ceramic capacitor in parallel with the electrolytic. Calculate the output capacitor’s ripple current using Iripple = Vout/(8 × f × L)–ensure the capacitor’s rated ripple current exceeds this value by 50%.
Input filtering prevents conducted emissions. A two-stage filter combines a common-mode choke (e.g., WE-SL2) and X/Y capacitors. For 230V AC inputs, use a 0.1µF X-capacitor across the line and 2.2nF Y-capacitors from line to earth–failure risks violation of EN55022 Class B limits. Place the choke close to the AC input; long traces act as antennas. Differential-mode filtering with a 1mH inductor and 0.1µF capacitor suppresses switching noise. Always include a 1N4007 diode across the choke to clamp back-EMF from inductive loads.
Snubber circuits protect switches from voltage spikes. For MOSFETs, a RCD snubber (e.g., 10Ω resistor, 1nF capacitor, 1N4148 diode) clamps spikes to Vin + 20V. The resistor dissipates energy–calculate its power rating using P = 0.5 × C × Vclamp2 × f. For flyback converters, a 1Ω–10Ω resistor in series with a 22pF–100pF capacitor across the transformer’s primary suppresses ringing. Avoid over-snubbing–excessive capacitance reduces efficiency.
A feedback loop stabilizes the output against load and line variations. Optocouplers (e.g., PC817, H11A1) isolate the control circuit from the high-voltage side, but their current transfer ratio (CTR) varies with temperature. Compensate with a 1/β network (e.g., TL431 shunt regulator) to set the reference voltage. Use a Type-II or Type-III compensator (with a 10kΩ–100kΩ resistor and 1nF–10nF capacitor) to achieve ≥ 45° phase margin at the crossover frequency (typically 1/10th the switching frequency). Measure the loop response with a network analyzer–undercompensation causes oscillation; overcompensation slows transient response.
Step-by-Step Assembly of a Flyback Converter Transformer
Select a ferrite core with an EE, EI, or EF configuration based on output requirements. For a 5W–50W design, an EE16 or EE20 core suffices; above 50W, opt for EE25 or larger. Verify the core material–common choices include TDK PC40 or PC44 for frequencies between 50kHz–300kHz. Ensure the gap length matches the intended inductance: 0.3mm–0.5mm gaps suit 12V–24V outputs, while 0.1mm–0.2mm gaps work for 5V–9V.
Calculate primary turns using the formula:
Npri = (Vin(min) × 108) / (4 × fsw × Bmax × Ae).
Substitute Vin(min) (minimum input voltage), fsw (switching frequency), Bmax (flux density, typically 0.2T–0.3T), and Ae (core cross-sectional area). For a 12V/2A output at 100kHz with EE20 (Ae=31mm²), this yields ~50 turns.
Wind the primary layer first, using 0.2mm–0.5mm diameter enameled copper wire. Maintain uniform tension to avoid air gaps between turns–excessive gaps increase leakage inductance. Cover 80%–90% of the bobbin width to leave room for secondary windings. Secure the start and end with polyimide tape to prevent unraveling during soldering.
Apply a 0.05mm–0.1mm polyester or Mylar insulating layer over the primary winding. The layer should overlap by 2mm–3mm at the edges to prevent breakdown. For 200V–400V isolation, use two layers; for 600V+, add a third. Verify insulation with a 1kV hipot test before proceeding.
Wind the secondary using multiple strands of 0.3mm wire for currents above 1A to reduce skin effect losses. For 5V/3A output, parallel three strands. Space turns evenly–crowding increases proximity effect losses. Terminate the winding with a snubber diode (e.g., 1N4007) soldered directly to the bobbin pin to minimize stray inductance.
| Core Type | Ae (mm²) | Bmax (T) | Typical fsw (kHz) |
|---|---|---|---|
| EE16 | 20 | 0.25 | 100–200 |
| EE20 | 31 | 0.28 | 80–150 |
| EE25 | 55 | 0.3 | 50–100 |
Stack the core halves with the gap centered on the outer legs. Avoid misalignment–even 0.1mm offset reduces inductance by 5%–8%. Clamp the halves with a nylon tie or non-magnetic screw torque-rated to 0.5Nm–0.8Nm. Excessive torque cracks ferrite; insufficient torque allows vibration-induced noise.
Connect a precision LCR meter to measure inductance at 1kHz. For a 50-turn primary, expect 50µH–100µH (EE20). Deviations >10% indicate incorrect turns, gap misalignment, or core saturation. Repeat winding if necessary. Add a 100nF/50V X7R ceramic capacitor across the primary termination to suppress high-frequency transients.
Test the assembly with a 20%–30% load (e.g., 0.5A for a 2A design). Monitor temperature rise after 30 minutes–ferrite should not exceed 70°C surface temp. Hotspots suggest core losses; check for gaps or flux leakage. Adjust snubber resistor (typically 10Ω–47Ω) to minimize ringing on the drain waveform. Finalize with a conformal coating (e.g., urethane) to prevent moisture ingress.