Basic Switched-Mode Power Supply Circuit Design Guide

Start with a flyback topology for low-to-medium power applications under 100W. This configuration minimizes component count while ensuring galvanic isolation–critical for safety and noise reduction. Use an offline quasi-resonant controller like the NCP1251 or L6565 for efficiency gains up to 90% at 20W loads. The transformer primary should be wound with 20-25 turns of 0.3mm diameter enameled wire on an EE16 or EE20 core for 5V/3A outputs, balancing inductance and saturation margins.
Place a snubber circuit across the MOSFET drain-source to clamp voltage spikes exceeding 500V. A 1N4937 fast recovery diode in series with a 4.7nF/2kV capacitor and 22Ω resistor effectively absorbs leakage inductance transients. For output rectification, choose a Schottky diode like the STPS30L60C (60V/30A) to reduce forward voltage drop to 0.5V at 10A, cutting conduction losses by 30% compared to ultrafast silicon diodes.
Implement a PI compensation network in the feedback loop using a TL431 shunt regulator. The optocoupler (e.g., PC817) isolates the control circuit, with a 2kΩ resistor from the TL431 cathode to the optocoupler LED ensuring stable regulation. Add a 1μF/50V ceramic capacitor across the output to filter high-frequency ripple below 50mVpp. For input protection, fuse the AC line at 1.5x the maximum expected current and include a 10D471 varistor to suppress surges above 700V.
Test the circuit with a 20MHz oscilloscope on the MOSFET gate to verify switching transitions under 50ns. Confirm the absence of cross-conduction in half-bridge designs by checking dead-time intervals of at least 200ns between high-side and low-side FETs. For multi-output supplies, use coupled inductors with a turns ratio tolerance of ±2% to maintain cross-regulation within 3% across all rails.
Compact Power Supply Circuit Design Guide
Start with a flyback converter topology for low-power applications under 50W, as it requires fewer components and handles isolation naturally. Select a switching transistor like the STMicroelectronics VIPer22A–it integrates a MOSFET, controller, and protective features, reducing external parts to just an inductor, diode, and capacitors.
Core Component Selection
- Transformer: Use an EE16 or EFD15 core with 3-5 turns for the primary winding and 8-12 turns for the secondary, depending on the target output voltage. Bifilar winding improves coupling and reduces leakage inductance.
- Output Diode: Schottky diodes (e.g., 1N5822) minimize forward voltage drop, critical for efficiency in low-voltage outputs (5V or 3.3V). For higher voltages (12V+), ultrafast diodes (UF4007) prevent reverse recovery losses.
- Feedback Network: Opt for an optocoupler (e.g., PC817) paired with a TL431 voltage reference to regulate the output with ±2% accuracy. Place the TL431’s compensation pin near the optocoupler to avoid noise pickup.
Add a snubber circuit across the primary switch to suppress voltage spikes caused by transformer leakage inductance. A 470Ω resistor in series with a 1nF capacitor works for most 24V input designs. For higher voltages, scale the capacitor to 2.2nF and the resistor to 220Ω.
Filter input noise with a common-mode choke and X/Y capacitors. For a 220VAC input, use a 1mH choke and 0.1µF X-capacitors (rated 275VAC) at both the input and output. Y-capacitors (4.7nF, 250VAC) between primary/secondary ground and earth ground suppress EMI.
Layout and Safety Considerations
- Creepage Distances: Maintain ≥5.5mm between primary and secondary traces for 220VAC inputs to comply with IEC 60950. Use a slot in the PCB or a physical barrier for high-voltage designs.
- Ground Planes: Separate primary and secondary ground planes, connecting them only at a single star point. This prevents ground loops from coupling switching noise into the output.
- Heat Dissipation: Place the switching transistor and output diode on the top copper layer with thermal vias to a bottom ground plane. For TO-220 packages, allocate ≥1cm² of copper per watt of dissipation.
Test the circuit with a 1kΩ load resistor before connecting sensitive electronics. Measure output ripple with an oscilloscope probe in 10x mode, using a spring-loaded ground clip to avoid false readings. Ripple should stay below 50mVpp for a 5V output.
For fault protection, add a 10Ω resistor in series with the input and a 10Ω NTC thermistor to limit inrush current. A 130°C thermal fuse in the transformer’s windings prevents overheating. If output voltage exceeds the target by 20%, the TL431 will shut down the converter via the optocoupler.
Core Elements for a Barebones Switched-Mode Power Supply Build
Select a flyback, forward, or buck-boost topology based on input-output isolation needs; flyback suits low-power (
- Primary switch: 600 V MOSFET (e.g., Infineon IPA60R160P7) with Qg ≤ 20 nC for
- Input filter: X2-rated 0.1 µF cap + 2 × 10 Ω NTC thermistor + 2 × 1 mH differential chokes (TDK SL series) to meet IEC 61000-3-2 Class D.
- Output diode: Schottky pair (e.g., ON Semiconductor MBRB2060CT) for 24 V.
- Voltage feedback: TL431 + optocoupler (Everlight EL817) for isolated designs; 0.5% resistors for
Critical Layout Guidelines
Keep high-current loops on top layer: input cap → transformer → switch → diode → output cap must be 1 W dissipation. Route VCC trace (controller supply) ≥3 mm away from switching nodes to prevent coupling. Thermal via array (8 × 0.3 mm) under the MOSFET drain pad transfers heat to ground plane–1 oz copper on both layers halves θJA. For >1 A outputs, add a secondary LC filter (10 µH + 220 µF) to attenuate ripple below 50 mVpp.
Step-by-Step Wiring of a Flyback Power Supply Layout
Start by positioning the primary switching transistor (e.g., MOSFET or bipolar) as close as possible to the transformer’s primary winding to minimize parasitic inductance. Use heavy-gauge copper traces or direct soldered wire links for connections carrying switching currents above 1A. Place a snubber circuit (R-C network) across the transistor’s drain-source or collector-emitter terminals to suppress voltage spikes exceeding the device’s breakdown rating by 20-30%.
Route the feedback path from the secondary output to the controller IC with a twisted-pair wire or tightly coupled PCB traces to reject noise. A precision shunt regulator (e.g., TL431) or optocoupler (e.g., PC817) should isolate the secondary ground from the primary side. Calculate the feedback resistor values using the formula: R_fb = (V_out – V_ref) / I_fb, where V_ref is the reference voltage (typically 2.5V) and I_fb is the optocoupler’s LED current (typically 5-10mA).
Connect the transformer’s auxiliary winding to the controller’s VCC pin through a small signal diode (e.g., 1N4148) and a low-ESR capacitor (10-47µF, 25V). Ensure the capacitor’s voltage rating exceeds the auxiliary winding’s peak voltage by at least 50%. Add a 10-22Ω series resistor between the diode and capacitor to limit inrush current and prevent ringing at startup.
Critical Trace Placement
Keep high-current loops–primary switch, transformer primary, and input bulk capacitor–physically small and on the same PCB layer to reduce EMI. Separate analog ground (feedback, controller) from power ground (input/output caps, switching nodes) and connect them at a single point near the input capacitor. For outputs above 10W, use a pi filter (L-C-L) or ferrite bead on the secondary output to comply with conducted emissions standards (e.g., CISPR 22).
Mount the output diodes (fast recovery, e.g., SB560) on heatsinks if their power dissipation exceeds 1W. Thermal resistance of the heatsink should be ≤30°C/W for TO-220 packages. Add a 1-10nF ceramic capacitor in parallel with each output diode to reduce high-frequency ringing and diode recovery losses. For multi-output designs, cross-regulate outputs by tying auxiliary windings in series or using post-regulators (LDOs) for tighter tolerance.
Place the input bulk capacitor (electrolytic, 220-470µF) within 10mm of the transformer’s primary winding and switching transistor. Include a 1-10Ω inrush current limiter (NTC thermistor or resistor) in series with the input if soft-start is required. For universal input (85-265VAC), ensure the bulk capacitor’s voltage rating is ≥450VDC and add a 275VAC varistor (MOV) across the input to clamp transients.
Verify wiring before power-up by checking continuity and insulation resistance (>10MΩ) between isolated primary and secondary circuits. Use an oscilloscope to confirm the switching node waveform (ideal: trapezoidal with
Choosing the Right Switching Transistor for Low-Power Applications
For sub-10W designs, prioritize MOSFETs with RDS(on) < 50mΩ and gate charge below 20nC to minimize conduction and switching losses. The STP4NK60Z (600V, 4A) or IRFB4110 (100V, 97A) work well for flyback or buck converters, while the IPP60R180P6 (600V CoolMOS™) excels in quasi-resonant topologies due to its low Qg of 12nC. Ensure the transistor’s VGS(th) aligns with your driver–3–5V for logic-level (e.g., IRLZ44N) or 8–12V for standard (e.g., FQPF8N80C). For offline applications, opt for 700V+ breakdown voltage to handle voltage spikes from parasitic inductance.
Thermal and EMI Considerations
Select devices with TO-220 or SOT-223 packages for <5W designs to avoid heatsinks; verify θJA <60°C/W. For noise-sensitive circuits, pick transistors with fast recovery times (trr <100ns) like the STP3N150 or IXFH10N100 to reduce EMI. Avoid “slow” body diodes if driving inductive loads–use external Schottky diodes for high-frequency switching (>100kHz).