logo elektroda
logo elektroda
X
logo elektroda

Why is my flyback converter primary current sinusoidal instead of triangular or square?

291 12
ADVERTISEMENT
  • #1 21671186
    Emre Celik
    Anonymous  
  • ADVERTISEMENT
  • #2 21671187
    DAVID CUTHBERT
    Anonymous  
  • ADVERTISEMENT
  • #3 21671188
    Emre Celik
    Anonymous  
  • #4 21671189
    DAVID CUTHBERT
    Anonymous  
  • ADVERTISEMENT
  • #5 21671190
    DAVID CUTHBERT
    Anonymous  
  • #6 21671191
    DAVID CUTHBERT
    Anonymous  
  • #7 21671192
    DAVID CUTHBERT
    Anonymous  
  • ADVERTISEMENT
  • #8 21671193
    DAVID CUTHBERT
    Anonymous  
  • #9 21671194
    DAVID CUTHBERT
    Anonymous  
  • #10 21671195
    Emre Celik
    Anonymous  
  • #11 21671196
    DAVID CUTHBERT
    Anonymous  
  • #12 21671197
    DAVID CUTHBERT
    Anonymous  
  • #13 21671198
    DAVID CUTHBERT
    Anonymous  

Topic summary

✨ The discussion addresses why the primary current waveform of a flyback converter appears sinusoidal instead of the expected triangular shape in discontinuous conduction mode (DCM) or square wave in continuous conduction mode (CCM). The primary cause is identified as transformer parasitic elements, particularly leakage inductance and inter-winding capacitances (turn-to-turn and primary-to-secondary capacitance), which are often omitted in simplified SPICE models. These parasitics create resonant circuits with the output diode capacitance, resulting in high-frequency ringing and distorted current waveforms. Measurement and modeling of transformer leakage inductance, primary inductance, and stray capacitances are recommended to improve simulation accuracy. To mitigate ringing, RC snubbers across the output diode are commonly used, with typical starting values around 100 pF and 1 kΩ, though they introduce power dissipation and reduce efficiency. Transformer construction techniques such as interleaving primary and secondary windings can reduce leakage inductance and improve waveform quality but may increase capacitive coupling and cost. Diode selection should consider junction capacitance, as lower capacitance reduces resonant effects but may increase ringing frequency. Efficiency trade-offs are significant, with flyback converters typically achieving around 80-92% efficiency depending on design and losses in leakage inductance clamps and snubbers. Transformer resistance and saturation current ratings are critical for power handling and waveform integrity. Overall, a balance between transformer design, snubber optimization, diode characteristics, and efficiency is necessary to achieve the desired primary current waveform in flyback converters.

FAQ

TL;DR: Your “sinusoidal” flyback primary current is ringing from leakage inductance and diode capacitance; in one validated model the converter hit 92% efficiency, and “The efficiency is 92%.” [Elektroda, DAVID CUTHBERT, post #21671197] Why it matters: Fast, clear fixes (snubbers, winding, parts) can tame ringing without tanking efficiency.

Quick-Facts

Quick Facts

Why does my flyback primary current look sinusoidal instead of triangular or square?

You’re seeing damped ringing, not a true sine. The leakage inductance resonates with output diode capacitance and parasitic capacitances. That resonance rides on the expected CCM/DCM current ramps, making the trace look rounded. Add realistic parasitics to your model and it will match lab scope shots. [Elektroda, DAVID CUTHBERT, post #21671189]

How do I quickly reduce the ringing I see on my current waveform?

Add an RC snubber across the output diode. Start with 100 pF in series with 1 kΩ, then tune. This damps the leakage-L and diode-C resonance. Expect some heat in the resistor; use the minimum capacitance that achieves acceptable ringing. “Output diode snubbers are commonly used.” [Elektroda, DAVID CUTHBERT, post #21671193]

How do I calculate the diode RC snubber values for my flyback?

Move leakage L to the secondary (multiply by turns ratio squared). Use the diode’s reverse-bias capacitance. Set R ≈ sqrt(L/C). Use a series C about 5× the diode capacitance. Example: 43 µH with 10 pF gives ~2 kΩ and 47 pF. Then lab-optimize. [Elektroda, DAVID CUTHBERT, post #21671194]

3-step: How do I measure transformer capacitances and include them in SPICE?

  1. Measure primary and secondary DC resistances; note Lp and leakage L.
  2. Find shunt capacitance: energize a winding at low DC, disconnect, and extract C from the ring frequency (subtract probe C).
  3. Add primary–secondary capacitance from a meter; include all in the model. [Elektroda, DAVID CUTHBERT, post #21671196]

Can I eliminate the ringing by reducing leakage inductance?

Yes. Interleave windings (pri–sec–pri–sec) to cut leakage. Benefits include cleaner low-power behavior, fewer snubber demands, and lower output snubber loss. Note: interleaving raises capacitive coupling unless you add shields. [Elektroda, DAVID CUTHBERT, post #21671189]

Which parameters matter most for an accurate flyback SPICE model?

Use five: primary inductance, turns ratio, leakage inductance, primary resistance, and secondary resistance. Including generous transformer capacitances changed little in waveform or efficiency in the shared model. Target these five first. [Elektroda, DAVID CUTHBERT, post #21671197]

What diode type improves efficiency in a high-voltage flyback?

Use a smaller-junction, fast high-voltage diode; a SiC Schottky with about half the junction capacitance can halve snubber loss. Then recalc R and C (e.g., ~2 kΩ, 47 pF) to maintain damping. Select by reverse voltage, CJ vs VR, and recovery. [Elektroda, DAVID CUTHBERT, post #21671196]

How much loss do snubbers and clamps add at a few hundred watts?

Example at 241 W output: leakage clamp ≈9.3 W, input RC ≈3.4 W, output diode RC ≈1.5 W, with total efficiency ≈92%. This shows why you should minimize necessary snubber capacitance. [Elektroda, DAVID CUTHBERT, post #21671197]

Will lowering switching frequency help my design?

Yes, if the core does not saturate. Lower frequency stores more energy per cycle and reduces switching loss, often raising efficiency and maximum power. Verify peak magnetizing current stays below saturation. [Elektroda, DAVID CUTHBERT, post #21671196]

Is a flyback topology efficient for 200–300 W applications?

It works but is not optimal. The advisor calls flyback less efficient with higher RMS currents and poorer FET utilization. For 250 W PV, another topology would outperform, though a tuned flyback can still hit strong numbers. [Elektroda, DAVID CUTHBERT, post #21671196]

What is leakage inductance and why does it matter here?

Leakage inductance is uncoupled flux that acts like a series inductor. In flybacks it resonates with diode and winding capacitances, creating current and voltage ringing. Reducing leakage directly reduces ringing and snubber stress. [Elektroda, DAVID CUTHBERT, post #21671191]

Edge case: What if my core saturates around 10.5 A?

You’re power-limited. In one analysis, delivering 240 W drove primary current to about 23 A. A 10.5 A saturation would cap output near 60 W. Design current headroom is essential. [Elektroda, DAVID CUTHBERT, post #21671198]

Will an active clamp fix the current shape?

It recovers leakage energy and improves efficiency but does not by itself produce a perfect triangular current. Snubbers and winding strategy still set the waveform’s cleanliness. [Elektroda, Emre Celik, post #21671195]

What is an RC snubber in this context?

It’s a damping network placed across the output diode to absorb and slow energy from leakage inductance. Power dissipated scales with V²·C·f, so choose the smallest C that controls ringing acceptably. [Elektroda, DAVID CUTHBERT, post #21671196]

How do I reconcile lab waveforms with ideal SPICE predictions?

Include leakage inductance, diode capacitance, realistic transformer loss, and measured resistances. When you set leakage to zero in SPICE, ringing vanishes, but diode-charge spikes remain. Model what you can measure. [Elektroda, DAVID CUTHBERT, post #21671190]
ADVERTISEMENT