Author Topic: LTspice 12V SMPS flyback transformer ?  (Read 2488 times)

0 Members and 1 Guest are viewing this topic.

Offline lordvader88Topic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 935
  • Country: ca
LTspice 12V SMPS flyback transformer ?
« on: April 20, 2019, 08:37:22 pm »
I made my 1st 1/2 of a 12V SMPS, using values from 1 whose bulk cap blew up, and blew the plastic case/glue apart.

So I have the EMI stage, the single nmos, an inductor standing in as 1/2 the flyback. And I made a pnp multi-vibrator to stand in for the PWM chip.

And it works 1st try !! Making circuits is fun.

So what's the easy way to make a flyback transformer in LTspice that will output about 12.7V @1A ?
« Last Edit: April 20, 2019, 08:38:57 pm by lordvader88 »
 

Online Buriedcode

  • Super Contributor
  • ***
  • Posts: 1876
  • Country: gb
Re: LTspice 12V SMPS flyback transformer ?
« Reply #1 on: April 20, 2019, 11:05:03 pm »
I'm not sure I fully understand.  You made an actual circuit, that blew up?

You mention you want a 12V output, but what is the input voltage? Mains? 48V ? 6v?

A flyback is essentially a boost converter, with a coupled inductor (an inductor with more than one winding). If you're just playing around with an inductor, NMOS and multi-vibrator I'm not sure you fully understand how a flyback converter works.  Start here: https://www.dos4ever.com/flyback/flyback.html

It is an excellent article explaining how the converter works, and why we select the parts and values we do.  LTspice is also very handy for testing ideas, but the values (inductance, saturation current, DC resistance etc..) for a transformer will vary depending on the application, its not really about output voltage - strictly speaking it isn't really a transformer, because in a flyback converter it stores energy. It isn't like a mains AC transformer that has a rated output voltage for a given input voltage.
 

Offline lordvader88Topic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 935
  • Country: ca
Re: LTspice 12V SMPS flyback transformer ?
« Reply #2 on: April 21, 2019, 01:34:21 am »
I have a real SMPS that blew up. And I had drawn the circuit ages ago, so I put it in spice. It runs from sine wave 169V 60Hz, I'm using the resistor and cap values from the real SMPS. So I made the hot side, but I need a flyback transformer model.
 

Offline mvs

  • Frequent Contributor
  • **
  • Posts: 370
  • Country: de
Re: LTspice 12V SMPS flyback transformer ?
« Reply #3 on: April 21, 2019, 10:30:02 am »
I need a flyback transformer model.
Put two inductors (L1 and L2) on your schematic and couple them using SPICE directive K1 L1 L2 1
 

Online Buriedcode

  • Super Contributor
  • ***
  • Posts: 1876
  • Country: gb
Re: LTspice 12V SMPS flyback transformer ?
« Reply #4 on: April 21, 2019, 06:25:24 pm »
I have a real SMPS that blew up. And I had drawn the circuit ages ago, so I put it in spice. It runs from sine wave 169V 60Hz, I'm using the resistor and cap values from the real SMPS. So I made the hot side, but I need a flyback transformer model.

Start with a boost converter.  I'm aware this will step up voltage, but once you have a boost converter, you can add a second winding to the inductor in LTspice as indicated by mvs above.  The turns ratio of the inductors is the square of the inductance. So if you want a 10:1 ratio, then primary should have 100 times the inductance of the secondary.  The feedback comes from this secondary winding.
 

Offline lordvader88Topic starter

  • Frequent Contributor
  • **
  • !
  • Posts: 935
  • Country: ca
Re: LTspice 12V SMPS flyback transformer ?
« Reply #5 on: April 21, 2019, 10:38:17 pm »
ok thanks
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf