When integrating a mains AC power switch into a custom power supply build, the switch must handle both the steady-state RMS current and the massive inrush current of the input capacitors or transformer magnetization. For a typical 300W bench supply, use a 10A or 16A TV-5 rated rocker switch, or an IEC C14 inlet with an integrated switch and fuse. Sizing the switch purely on steady-state wattage is the most common cause of welded switch contacts and chassis fires in DIY power electronics.

This guide breaks down the input-stage design for both linear and switching topologies, provides a complete 120W linear bench supply design with dropout math, and details the NEC-style chassis wiring rules required to keep your mains input safe.

Topology Dictates Your Input Switch and Protection

The choice between a linear transformer-based supply and a Switch-Mode Power Supply (SMPS) fundamentally changes the stress placed on your AC power switch. Linear supplies suffer from massive transformer inrush currents, while SMPS designs suffer from capacitive inrush and high-frequency switching noise.

Linear vs. SMPS Topology Comparison for Bench Supplies
Criteria Linear (Transformer + Linear Regulator) SMPS (Active PFC + Buck/Forward)
Efficiency 40% - 60% (Excess voltage burned as heat) 85% - 95% (High-frequency switching)
Heat Generation High (Requires large extruded heatsinks) Low (Small TO-220 heatsinks or SMD pads)
Ripple & Noise < 1 mV RMS (Excellent for audio/RF) 20 - 50 mV p-p (Requires LC output filtering)
Inrush Stress on Switch Extreme (Transformer core saturation, up to 40x steady state) High (Bulk capacitor charging, mitigated by NTC thermistors)
Component Cost (120W) $45 - $70 (Heavy copper/iron) $15 - $25 (Off-the-shelf modules or discrete)

Linear vs. Switching for this load: If you are building a bench supply for sensitive analog circuits, op-amp testing, or audio preamps, the microvolt-level ripple of a linear supply justifies the heat and cost. If you are powering motors, LED strips, or digital logic (like an ESP32 or Raspberry Pi cluster), an SMPS is the mandatory choice for efficiency and size.

Input Range and Protection: A universal input SMPS requires an 85-264VAC range and must include an NTC inrush limiter (like the Ametherm SL32 2R025) and a metal oxide varistor (MOV) across the line to clamp transient spikes. Linear supplies designed for 120VAC only need a primary-side slow-blow fuse and an MOV rated for 130VAC continuous.

Design Example: 120V AC Input Stage for a 120W Linear Bench Supply

Let us design the input and regulation stage for a 12VDC @ 10A (120W) linear bench supply. This requires careful headroom math to ensure the regulator does not drop out under full load.

Bill of Materials & Input Specifications
Stage Component Part Number / Value
AC Inlet & Switch IEC C14 Inlet with Switch & Fuse Drawer Schurter DG12 (10A/16A TV-5 rated)
Protection Slow-Blow Glass Fuse 3.15A 250V (Handles transformer inrush)
Transformer Toroidal Step-Down 160VA, 120VAC Primary / 15VAC Secondary
Rectifier Bridge Rectifier KBPC3510 (35A, 1000V)
Filter Bank Electrolytic Capacitors 2x 10,000µF 35V (Parallel = 20,000µF)
Regulator Adjustable Linear Regulator + Pass Transistor TI LM317 driving TIP35C (NPN)

Dropout Voltage and Headroom Math

The LM317 datasheet specifies a maximum dropout voltage of 2V. To maintain a stable 12VDC output, the input voltage to the LM317 must never fall below 14V. Let us calculate the worst-case valley voltage under a 10A load.

  • Peak DC Voltage: 15VAC × 1.414 = 21.2V peak. Minus 1.4V for the bridge rectifier diode drops = 19.8V DC peak.
  • Ripple Voltage (V_ripple): Using the formula I / (f × C). Full-wave rectification on a 60Hz line gives f = 120Hz. C = 0.02 Farads (20,000µF). V_ripple = 10A / (120 × 0.02) = 4.16V peak-to-peak.
  • Valley Voltage: 19.8V (peak) - 4.16V (ripple) = 15.64V minimum.
  • Headroom Check: 15.64V (valley) - 12V (output) = 3.64V headroom.

Because 3.64V is greater than the 2V dropout requirement, the LM317 will maintain regulation even at the absolute bottom of the AC ripple cycle. The average voltage across the TIP35C pass transistor is roughly (17.7V avg - 12V) = 5.7V. At 10A, the transistor must dissipate 57W of heat, mandating a large extruded aluminum heatsink with forced air or thermal compound and a mica insulator.

Thermal Derating and Mains Chassis Wiring Rules

⚠️ MAINS VOLTAGE WARNING: Working with 120VAC/240VAC is lethal. Always de-energize the branch circuit at the breaker panel, lock out or tag the breaker, and verify the conductors are dead using a known-working CAT III multimeter before touching any chassis wiring. Local electrical codes (NEC/CEC) may require a licensed electrician for permanent hardwired installations.

Switches are rated at a specific ambient temperature, usually 25°C. Inside a sealed metal chassis sitting next to a 57W heatsink and a warm toroidal transformer, ambient temperatures easily reach 50°C to 60°C. According to Carling Technologies switch derating curves, a 10A rated switch at 55°C ambient derates to approximately 7A. If your steady-state draw is 5A, a 10A switch will overheat and fail prematurely. Always spec a 16A switch for 5A-8A continuous loads to provide a thermal margin.

Wire Sizing and Termination

For the AC mains wiring inside the chassis (from the IEC inlet to the fuse, switch, and transformer primary):

  • Wire Gauge: Use 14 AWG THHN or TEW (Appliance Wiring Material). Per NFPA 70 (NEC) Table 310.16, 14 AWG copper is rated for 15A at the 60°C column. While chassis wiring allows higher ampacities in free air, sticking to the conservative 60°C column ensures the insulation will not melt if routed near the transformer.
  • Color Code: Use Black for Line (Hot), White for Neutral, and Green (or bare) for Earth Ground. Bond the Earth Ground directly to the metal chassis using a star washer and a dedicated grounding screw to ensure equipotential bonding.
  • Termination: Never solder wires directly to switch lugs or IEC inlet pins. The heat from the soldering iron can melt the internal plastic housing of the switch, causing internal shorts. Use fully insulated crimp spade terminals (16-14 AWG, 0.250" width) and a proper ratcheting crimp tool.

FAQ: Power Switch Power Supply Integration

What input range and protection does a universal power switch power supply need?

A universal input supply (designed to accept 85VAC to 264VAC) requires a switch rated for at least 250VAC, regardless of your local mains voltage. Protection must include a primary-side slow-blow fuse sized to 1.5x the maximum steady-state RMS current at the lowest input voltage (85VAC). Additionally, place a 130VAC or 275VAC Metal Oxide Varistor (MOV) directly after the fuse and switch to clamp lightning-induced transients and grid switching spikes before they reach the rectifier.

How do I calculate inrush current for my power supply switch?

Inrush current depends on the topology. For a linear supply, transformer inrush is dictated by the point-on-wave where the switch closes and the core's residual magnetism, often hitting 20x to 40x the steady-state current for the first half-cycle (e.g., a 2A steady-state draw can spike to 80A). For an SMPS, inrush is capacitive: I = C × (dV/dt). If you have a 470µF bulk capacitor charging to 325VDC (from 230VAC) in 2 milliseconds, the peak inrush is 470e-6 × (325 / 0.002) = 76A. This is why your switch must carry a "TV-5" or high-inrush certification, which tests the contacts' ability to withstand 117A peak inrush without welding shut.

Should I use a relay or a mechanical switch for high-wattage power supplies?

For supplies exceeding 500W, use a hybrid approach: a low-current mechanical toggle or rocker switch on the front panel that triggers a heavy-duty contactor or solid-state relay (SSR) on the mains input. Mechanical panel switches are not designed to break high inductive or capacitive loads; doing so causes arcing that degrades the contacts. An SSR with zero-crossing detection eliminates inrush current entirely by only turning on the AC waveform when the voltage crosses zero, protecting both your switch and your downstream rectifiers.