SOFT-SWITCHING BIDIRECTIONAL DC-DC CONVERTER USING A LOSSLESS ACTIVE SNUBBER

Photo of author

By Jackson Taylor

Home » Hardware » SOFT-SWITCHING BIDIRECTIONAL DC-DC CONVERTER USING A LOSSLESS ACTIVE SNUBBER

As an Amazon Associate we earn from qualifying purchases.

YouTube video
YouTube video
Untitled

BASIC CIRCUIT

HARDWARE

SIMULATION

YouTube video
zvs matlab

zvs in matlab for switch S1

HARDWARE

IMG 1 IMG 2 IMG 3
  • BATTERY -4V AND 12V 
  • Micro controller -dspic30f2010
  • drivers -fan7392 and tlp250
  • MOSFET -CSD19534 (OR USE IRF540)
  • DIODE -BYQ28E

waveforms

zvs waveforms for switch S1

waveform 1 waveform 2

waveforms S1-gate and Vds1 without snubber (no zvs)

waveform 3 waveform 4 waveform 5 waveform 5

waveforms S1-gate and Vds1 with snubber ( zvs)

zvs waveforms for switch S2

waveforms S2-gate and Vds2 without snubber (no zvs)

Hardware Hack

Stop Buying New Batteries for Your Tech

Electronics are expensive, but their power sources don't have to be. Discover the simple engineering trick to recondition dead batteries and bring your gadgets back to 100% capacity.

Watch the Free Video
waveform S2 2

waveforms S1-gate and Vds1 with snubber ( zvs)

gate waveforms at S1(yellow) and S2(blue)

gate waveforms at S1(yellow) and S3(blue)

gate waveforms at S1(yellow) and S4(blue)

gate waveforms at S2(yellow) and S4(blue)

Design

DUTY CYCLE CALCULATION

Gain = Vhi / Vlo = 14/2 = 7

DUTY CYCLE = 1/(Gain + 1) = 1/(7+1) = 0.125 = 12.5%

DUTY CYCLE (BOOST) = 12.5%

INDUCTOR VALUE CALCULATION

Vout = 14 V
Vlo = 2 V
Vhi = 14 V
Iin = 5 A
Fout = 100 kHz
Fsw = 1000 kHz
Ts = 1 / Fsw = 1 µs
Vout = (Vhi * D + Vlo * (1‑D)) / 2
Vout = 7 V (boost mode)
Gain = Vhi / (2*Vlo) = 14 / 4 = 3.5
D = 1 / (Gain + 1) = 1 / (3.5 + 1) = 0.222 = 22.2%
L = (Vhi – Vlo) * D * Ts / (Iin) = (14‑2) * 0.222 * 1 µs / 5 A = 0.53 µH ≈ 1 µH (standard value)

Auxiliary Inductor design

Is1 = Vhi * ∆Ts / (2 L2)
∆Ts = 1 µs
For boost mode Is1 = 5 A
L2 = 14 * 1 µs / (2 * 5 A) = 1.4 µH ≈ 1.4 µH

Sustainable Tech

Keep Toxic E-Waste Out of Landfills

Don't throw away your failing laptop, phone, or car batteries. Learn how to recondition them at home in just a few hours. It's better for the planet—and your wallet.

Learn How It Works

Auxiliary Capacitor design

Vca = Vhi / 2 = 7 V
During dead time the current through the capacitor is 5 A
C = I * dt / dV = 5 A * 1 µs / 7 V = 0.71 µF ≈ 1 µF (standard value)

program(mikroc -dsPIC30f2010) (boost operation only)

//crystal of 16 MHz
#define boostgates1   LATE.F0        //S1
#define buckgates2   LATE.F1        //S2
#define snubberlowergates3   LATE.F2 //S3
#define snubberupperergates4   LATE.F3 //S4

void main()
{
    TRISE.F0=0;TRISE.F1=0;TRISE.F2=0;TRISE.F3=0;
    snubberupperergates4=0;
    boostgates1=0;
    snubberlowergates3=0;
    buckgates2 =0;
    while (1)
    {
        buckgates2 =1;snubberupperergates4=1;Delay_us(1);   //s2 & s4 is on   ,time =1
        buckgates2 =0; Delay_us(1);                       //s2 off
        boostgates1=1;Delay_us(11);                       //s2 off, s4 and s1 on,time =12
        snubberupperergates4=0;                           //s4 -off & s1 on   ,time =12
        snubberlowergates3=1;   Delay_us(1);              //s3 on & s1 on   ,time =13
        boostgates1=0;Delay_us(1);                       //s1 off ,s3 on , time =13
        buckgates2 =1;   Delay_us(6);
        snubberlowergates3=0;
    }
}

program(mikroc -dsPIC30f2010) (buck or boost mode using mode switch)

//crystal of 16 MHz
#define boostgates1   LATE.F0        //S1
#define buckgates2   LATE.F1        //S2
#define snubberlowergates3   LATE.F2 //S3
#define snubberupperergates4   LATE.F3 //S4
#define modeswitch   PORTD.F0   //modeswitch

void offallswitches(void);
int time=14,f=0;

void main()
{
    TRISE.F0=0;TRISE.F1=0;TRISE.F2=0;TRISE.F3=0;   //gates as output
    TRISD.F0=1;   //modeswitch
    offallswitches();
    while (1)
    {
        if(f==0)   //boost mode duty
        {
            buckgates2 =1;snubberupperergates4=1;Delay_us(1);   //s2 & s4 is on   ,time =1
            buckgates2 =0; Delay_us(1);                       //s2 off
            boostgates1=1;Delay_us(14); //11                  //s2 off, s4 and s1 on,time =12
            snubberupperergates4=0;                           //s4 -off & s1 on   ,time =12
            snubberlowergates3=1;   Delay_us(1);               //s3 on & s1 on   ,time =13
            boostgates1=0;Delay_us(1);                        //s1 off ,s3 on , time =13
            buckgates2 =1;   Delay_us(4);                     //6
            snubberlowergates3=0;
        }
        else if(f==1)        //buck mode duty
        {
            buckgates2 =1;snubberupperergates4=1;Delay_us(1);   //s2 & s4 is on   ,time =1
            buckgates2 =0; Delay_us(1);                       //s2 off
            boostgates1=1;Delay_us(9); //11                    //s2 off, s4 and s1 on,time =12
            snubberupperergates4=0;                           //s4 -off & s1 on   ,time =12
            snubberlowergates3=1;   Delay_us(1);               //s3 on & s1 on   ,time =13
            boostgates1=0;Delay_us(1);                        //s1 off ,s3 on , time =13
            buckgates2 =1;   Delay_us(4);                     //6
            snubberlowergates3=0;
        }
        if(modeswitch==0)
        {
            offallswitches();
            if(f==0) f=1; else f=0;
            Delay_ms(1000);
        }
    }
}

void offallswitches(void)
{
    snubberupperergates4=0;
    boostgates1=0;
    snubberlowergates3=0;
    buckgates2 =0;
}

Frequently Asked Questions

What does soft switching mean in this converter?

In a hard-switched converter, a MOSFET turns on or off while it has both voltage across it and current through it, and that overlap wastes energy as heat. Soft switching shifts the switching moment so the voltage across the switch is already near zero when it turns on (ZVS). That is why the S1 and S2 waveforms with the snubber look cleaner than the ones without it.

See also
ARDUINO

Why use a lossless active snubber instead of an RC snubber?

An RC snubber absorbs the energy of a voltage spike and burns it in a resistor. An active snubber uses an auxiliary inductor, a capacitor and extra switches (S3 and S4 here) to move that energy back into the circuit, so very little of it is dissipated. The trade-off is more parts and more careful gate timing.

What should I check if I do not see ZVS on the scope?

  • Dead time between the gate signals. If it is too short or too long, the switch node will not have time to swing to zero before turn-on.
  • The auxiliary inductor value. It needs to carry enough current to discharge the switch capacitance during the dead time.
  • Gate driver delays. Different drivers have different propagation delays, so the gate signals on the scope may not match the code timing.
  • Layout. Long wires add stray inductance and ringing, which can hide the soft-switching effect.

Why does the firmware use a 1 µs delay for the snubber switches?

The delays in the code set the dead time and the snubber conduction time. Because they are written as fixed microsecond delays, the real timing also depends on the microcontroller clock and the driver response. Check the actual gate waveforms with an oscilloscope and adjust the delay values instead of assuming the calculated timing is exact.

Can I use a different MOSFET?

Yes, the article suggests an IRF540 as an alternative to the CSD19534. A different MOSFET changes the output capacitance and gate charge, so the dead time and auxiliary inductor may need to be tuned again.

Revive Your Dead Electronics

Got a drawer full of dead gadgets or a failing car battery? Instead of paying a premium for replacements, use this simple trick to easily recondition them right from home.

See How It Works