Design a capacitive dropper transformerless power supply. Calculate X-rated capacitor, surge resistor, zener, and component ratings.
A capacitive transformerless power supply (capacitive dropper) uses the reactance of a capacitor to limit current from mains voltage instead of a transformer. By choosing the right X-rated capacitor, you can step down 120V or 230V mains to a low-voltage DC output for small loads — LEDs, microcontrollers, relays, and sensors.
The key component is an X2-rated film capacitor connected in series with the mains. Its reactance Xc = 1/(2πfC) limits the current to I = V/Xc, where V is the mains voltage minus the output voltage. A zener diode regulates the output, a bridge rectifier converts AC to DC, and a filter capacitor smooths the ripple.
This calculator sizes all components: the dropping capacitor, surge-limiting resistor, bleeder resistor, zener diode, and filter capacitor. It includes safety warnings and voltage rating requirements, because these circuits are NOT isolated from mains — they must only be used in enclosed, non-touchable applications.
Capacitive dropper circuits are cheap, compact alternatives to transformers for low-power applications inside sealed enclosures. However, incorrect component selection can be dangerous — undersized capacitor voltage ratings, missing surge protection, or inadequate zener power dissipation can cause fires or electric shock.
This calculator automates the design process, selecting the correct X2 capacitor value and voltage rating, surge resistor, bleeder resistor, zener diode, and filter capacitor. It includes safety warnings and a comparison table of standard X2 capacitor values.
Xc = 1/(2πfC). Required C = 1/(2πf × Xc). Xc = (V_peak − V_zener − V_diode) / I_out. V_peak = V_rms × √2. Capacitor voltage rating ≥ V_peak × safety margin.
Result: 0.98 µF dropping capacitor, ≥ 400V X2 rated
For 230V/50Hz mains and 5V/100mA output: V_peak = 325V. Xc = (325 − 5.1 − 0.7) / 0.1 = 3193Ω. C = 1/(2π × 50 × 3193) = 0.997 µF ≈ 1.0 µF X2 capacitor rated at ≥ 400VAC.
The capacitor in series with the mains acts as a current limiter. Unlike a resistor, which converts excess energy to heat, a capacitor stores energy during one part of the cycle and returns it during the next. The voltage across the capacitor shifts 90° out of phase with the current, meaning power dissipation is ideally zero.
The maximum current available is I = V_rms / Xc, where Xc = 1/(2πfC). By choosing C, you set the current limit. A zener diode clamps the output voltage, and any excess current is diverted through the zener. This is why zener power rating is critical — it must handle the full output current at the zener voltage.
**Dropping Capacitor (C1):** Must be X2-rated for across-the-line use. Voltage rating must exceed V_peak × safety margin. Use polypropylene film type — they self-heal from minor breakdowns and fail safely open-circuit.
**Surge Resistor (R1):** A 47-150Ω wirewound resistor limits inrush current. It must handle the peak inrush for several cycles. Some designs use an NTC thermistor instead, which has low resistance when warm (normal operation) and high resistance when cold (startup).
**Bleeder Resistor (R2):** Required by safety standards to discharge C1 when mains is disconnected. Typical value 1MΩ, which discharges a 1µF capacitor with time constant τ = 1 second.
Capacitive dropper supplies are used in billions of devices (LED bulbs, IoT sensors, appliance controls) but are inherently dangerous due to the lack of isolation. Key safety requirements: double-insulated enclosure, proper fusing, X-rated capacitor, bleeder resistor, and creepage/clearance distances meeting IEC 60950 or equivalent standards.
The output is NOT isolated from mains — there is a direct electrical connection. These supplies must only be used inside sealed enclosures where no one can touch the circuit. They are common inside appliances but never for external/user-accessible circuits.
X2 capacitors are safety-rated for connection across mains. They are designed to fail open (not short) and withstand transient overvoltages. Never use a regular film or ceramic capacitor across mains — only X-rated capacitors.
A resistor would dissipate enormous power as heat: P = I × V_drop. A capacitor stores and returns energy each half cycle, so it dissipates almost no power (ideally zero). This makes the capacitive dropper much more efficient.
Practically, capacitive droppers are limited to about 100-200 mA. Above that, the required capacitor becomes large and expensive, and the lack of isolation becomes more dangerous. For higher currents, use a proper switch-mode power supply.
When the mains is switched on at peak voltage, the uncharged capacitor allows a very large inrush current for a fraction of a cycle. The surge resistor (typically 47-150Ω) limits this current to protect the bridge rectifier and capacitor.
After power is disconnected, the X2 capacitor retains a dangerous charge. The bleeder resistor (typically 1MΩ) discharges it within a few seconds. Safety standards require X-cap discharge below 60V within 1 second.