Re: Flyback transformer design confusion!!
- From: Terry Given <my_name@xxxxxxxx>
- Date: Sun, 19 Nov 2006 20:13:36 +1300
lemonjuice wrote:
[snip]
1) The power given by the expression above is that of the inductance
at the primary coil. To find the power dissipated in the load you
would have to calculate the average current flowing through the load.
indeed. and unless something is horribly wrong with your smps, the two should be roughly equal - losses mean the "inductor power" dE*F is somewhat larger than the load power.
and of course for a DC supply with a fixed load, the integration is pretty darned easy. Pout = Vout*Idc_out = Vout^2/Rl
eg
1) Integration???Didn't you know its Ohms law that says Idc_out =
Vout/Rl ?
duh. you went on about integration (which although technically correct is trivial with DC)
I went about it ...???? Check any of my posts ...I never mentioned it!
you wrote:
1) The power given by the expression above is that of the inductance
at the primary coil. To find the power dissipated in the load you
would have to *calculate the average current* flowing through the load.
which is of course integration.
Oh come of it ... The per capita income of a nation is an average
value but you will never be able to calculate that using an
integration.
thats because its discrete, not continuous. Otherwise, it is an integration (or a summation, which is the discrete form)(
The case above is a different but IMO Ohms law is
sufficient.Well if you like playing around with mathematical terminology/techniques
that is another story.
2)I hope you haven't forgotten that also from Ohm's law
Pout=Iout^2*Rout. So changing the output current(through the load)
Iout will change the power output.
Right. I can do that by changing the voltage and/or the resistance. but its a power supply, so the voltage, by definition, is not supposed to change (at least not by very much). Therefore the only way to change Iout is to change the resistor.
damn You seem to have lost the whole sense of this thread then. The
op was asking why different inductance values could work for a given power
output.
He was not talking about varying Resistive load differences ... man
learn how to read.
I can. I have doubts about your literacy though.
and yeah, sure, changing L changes the depth (or lack thereof) of CCM.
try a real-world example: a 300W 5V supply with a 10 Ohm load resistor. Pload = 2.5W. Now try changing the current thru that resistor. you cant, its connected across a fixed voltage source.....
if I then change it to a 1 Ohm resistor, its still 5V, but Pout is now 25W (and Iout = 5A)
Totally irrelevant. Op and I were talking about design equations for
a Power supply to be designed. Not an already built power supply
with fixed unchangeable components!!!!!!!!!!!
true, but your design equation is WRONG.
You must admit that more then 90% of your rambling is about a case
that was never raised by the Op ... and that I was not talking about.
Either you misunderstood the case because of lack of clarity or as it
seems you wanted to launch a personal attack on me. Whatever the case
Mr instead of round abouting the most important issue just try like me
to talk/argue about the main issue ..
no personal attacks dude, just poking a large hole in your incorrect equation.
try (without snipping them) to answer these three questions (or rebut my answers):
1) what is the energy stored in the core, just after the switch turns on
Estart = 0.5*L*Imin^2
2) what is the energy stored in the core, just before the switch turns off
Efinish = 0.5*L*Ipeak^2
3) what is the change in energy in the core during the on time
delta_E = Efinish - Estart = 0.5*L*(Ipeak^2 - Imin^2)
1)Glad to see you are now using the delta E instead of the dE which
you used in your previous messages.
personally, I prefer the variable INGWELLRIGHT. its just an arbitrary placeholder....
2) Well if I agreed on your formula ... there wouldn't be any argument
or would they? Its correct only in the DCM case in which case both yours and mine
give the same answer.
your equation is indeed "correct" for DCM, it just falls to pieces in CCM.
which is of course rather different from *your* so-called design equation, delta_E = 0.5*L*(Ipeak - Imin)^2
You don't think about increasing (possible though) or maintaining
constant the power capabilities of an already built power supply which
is what i've been talking about all the time.
Hecks I hope you understand at least that.
its quite possible, I've done so many times. but not using your incorrect "design" equation, which is my point.
And as you notice above I also agreed on the possibility of that.
the examples I have used were chosen specifically to highlight the error in your equation (although the above calculation shows it quite clearly).
which examples? Sorry maybe I missed them. I think I thoroughly
answered them.
LOL
Now now .. you didn't follow my hint below on understanding why you are wrong.2) You don't have to vary Rl when you change the load power demands.
this must be a semantic issue; Rl = load resistance. changing Rl is the only way to change load power if the output voltage remains constant.
It wasn't clear whether you meant R*I or RLoad however
as I pointed out above Pout=Iout^2*Rout would still apply.
The flyback transformer regulates itself over a large value of input
voltages and currents. If the load demands are below its Power
capabilities the flyback transformer operates in discontinous mode by
shutting itself inbetween cycles.
this covers a wide range of phenomena - load reducing, moving from CCM into DCM (at which point duty cycle begins reducing) into pulse skipping, where D has reduced to the minimum value, and the associated minimum quanta of energy is greater than the actual load, so the output voltage overshoots, and the error amp prevents pulses until the output voltage has (slowly, there is very little load) decayed below the reference (by an amount governed by the error amplifier compensation components).
I wasn't talking about the typical SMPS voltage regulating effect but
a different effect limited to flybacks.
which one? sounds like a blocking oscillator, or some form of self-oscillating flyback converter.
I specifically used the example of CCM to *prove* your equation 0.5*L*(Ipeak - Imin)^2 was wrong.
My formulae is the universal one all Flyback transformer designers in
the world use! I enjoy the fact that you can't see why it is right. This is your last
chance ... to derive it.
Dude, I'm one of them, and I DONT use that equation, I use the correct one.
******************************************************************
OK, assume operating at fixed F, CCM.
know Vin(min - max), Vout, Pout, F
choose max duty cycle Dmax
calculate turns ratio from Vout + Vdiode = Vinmin*(Ns/Np)*Dmax/(1-Dmax)
choose the load current Idcm below which the psu operates in DCM
during the interval Toff = (1-Dmax)/F, all of that energy is transferred to the load, in a single sawtooth pulse. The charge used by the load over one cycle (no charge is transferred to the load during the on time) is:
Qload = Idcm*Tsmps = Idcm/F.
This charge must be transferred during the off time, which is the integral of the secondary current:
Qsec = 0.5*Toff*Is_peak = 0.5*Is_peak*(1-Dmax)/F
equating the two:
Qload = Qsec: Idcm/F = 0.5*Is_peak*(1-Dmax)/F
cancel the F's and re-arrange:
Is_peak = 2*Idcm/(1-Dmax)
We know the off time and the secondary voltage, which allows us to solve for the secondary inductance:
(Vout + Vdiode) = Lsec*(Is_peak - Is_min)/Toff
now because this is the boundary between CCM and DCM, Ismin = 0, so the change in secondary current is Is_peak. solving for Lsec:
Lsec = (Vout + Vdiode)*Toff/Is_peak
substituting in the ecpressions for Toff and Is_peak gives:
Lsec = (Vout + Vdiode)*[(1-Dmax)/F]/[2*Idcm/(1-Dmax)]
Lsec = (Vout + Vdiode)*(1-Dmax)^2/(2*F*Idcm)
and then reflect that to the primary to get the primary inductance:
Lprim = (Np/Ns)^2*Lsec
Lprim = (Np/Ns)^2*(Vout + Vdiode)*(1-Dmax)^2/(2*F*Idcm)
if we want, we can use the relationship between Vin and Vout to simplify this further:
Vout + Vdiode = Vinmin*(Ns/Np)*Dmax/(1-Dmax), so
Lprim = (Np/Ns)^2*(Vinmin*(Ns/Np)*Dmax/(1-Dmax))*(1-Dmax)^2/(2*F*Idcm)
simplifying:
Lprim = (Np/Ns)*Vinmin*Dmax*(1-Dmax)/(2*F*Idcm)
voila. as one moves the degree of DCM (choosing a bigger or smaller Idcm) the required primary inductance moves. so what does the current waveform look like at full load?
Pin = Pout/n (n = efficiency, IOW include losses)
the input current up-slope is now fixed (we have chosen L,F,Vin):
Vinmin = Lprim*delta_Ip/Ton
delta_Ip = Vinmin*Ton/Lprim
we know what Ton is:
delta_Ip = Vinmin*(Dmax/F)/Lprim
so:
delta_Ip = (Np/Ns)*Vinmin*(Dmax/F)/[Vinmin*Dmax*(1-Dmax)/(2*F*Idcm)]
delta_Ip = (Np/Ns)*(2*Idcm)/(1-Dmax)
or, in other words, delta_Ip = (Np/Ns)*delta_Is, which it should.
That the equations prove each other is a strong indication they are right - this sort of cross-checking is useful as a bull*** detector.
****************************************************************
The relations above look good though I use a different design approach
and different formulae. If you're interested I'll give my comments
on them but the real important points related to our argument are not
here.
I just wrote that lot down OTTOMH. thats not the approach I use either, but is fairly similar.
OK, now we get to the fun bit, where your supposed design equation arises - what is the trapezoid offset at full power:
energy transferred per cycle:
delta_E = Pin/F
energy at start of on-time:
E_start = 0.5*Lprim*Ip_min^2
energy at end of on-time:
E_finish = 0.5*Lprim*Ip_max^2
Ip_max = Ip_min + delta_Ip
E_finish = 0.5*Lprim*(Ip_min + delta_Ip)^2
expanding:
E_finish = 0.5*Lprim*(Ip_min^2 + 2*Ip_min*delta_Ip + delta_Ip^2)
by definition, delta_E = E_Finish - E_start
(this is where you go wrong)
delta_E = 0.5*Lprim*[(Ip_min^2 + 2*Ip_min*delta_Ip + delta_Ip^2) - Ip_min^2]
simplifying:
delta_E = 0.5*Lprim*[2*Ip_min*delta_Ip + delta_Ip^2]
solving for Ip_min:
2*delta_E/Lprim = 2*Ip_min*delta_Ip + delta_Ip^2
simplifying:
2*delta_E/Lprim - delta_Ip^2 = 2*Ip_min*delta_Ip
so
delta_E/(Lprim*delta_Ip) - 0.5*delta_Ip = Ip_min
but delta_E = Pin/F thus:
Ip_min = Pin/(F*Lprim*delta_Ip) - 0.5*delta_Ip
My expression is for power ... The above equations at first looks,
seem to be valid but are unrelated and so they do not disaprove in
anyway my formula.
not yet. but a little bit further on....
voila, everything is now calculated. but we can simplify this equation further, as we know:
delta_Ip = (Np/Ns)*(2*Idcm)/(1-Dmax)
thus:
Ip_min = Pin*(1-Dmax)/(2*F*Lprim*(Np/Ns)*Idcm) - (Np/Ns)*Idcm/(1-Dmax)
although thats hardly an improvement.
I hate telling people the answers as I prefer them to get to the
right conclusions by reasoning on it themselves ... IMO it is more
dignifying. Think about this ... Do you know exactly what is the current flowing through the primary inductor?
yes of course I do. its a trapezoid
You've been yelling trapezoid before ... so that is a rather obvious
answer.
So when you calculate the power you insert the values of a trapezoid
in the formula? Tell me what values ? What is the average current? I already asked you this before.
during the trapezoid (Ton for primary, Toff for secondary) the average value is (Imin + Imax)/2.
As you and any engineer is well aware of Power = average voltage * average current
ROTFLMAO!
So, for a 50Hz ac power system driving a resistive load:
Vaverage = 0
Iaverage = 0
==> Paverage = 0
by your reasoning. which (given that my electric oven heats things up) is patently untrue, and is of course (in the case of AC) why we use RMS.
To give you an example your 100W lamp implies that at 240V ac you have a current of 0.416A. Both the 240V and the 0.416A are rms
values or in other words averages ... square roots of the average of
square values because we working with negative sinusoids.
then they are NOT averages. by definition. RMS = Root Mean Square.
So my approach is to calculate power you have to work with average
currents and voltages and forget all the other nice looking formulae.
I dont use any averages at all, except in deriving the equations, and they are really integrals, just with "easy" waveforms.
As you said the input voltage is normally a constant value ... even if
directly operated from the ac mains we would be working with a rms
value in the expression for power.
Vin = Ldi/dt (1)
di/dt is the gradient of the inductor's waveform which as I showed in
my previous post is very simply seen to be equal to Imax - Imin /ton substitutuing in eqn (1)
Vin = L * (Imax - Imin)/ton (2)
yep.
The voltage change across the inductor at the primary is caused by a current change of Imax-Imin.
nope. impressing a voltage across an inductor causes the current to change; a constant voltage gives rise to a linear change in current (unless of course the inductor saturates)
The average value of this current change is
Iavg =( Imax-Imin)/2 (3)
yep. just not very useful.
Power = Vin * Iavg (average current causing voltage change at primary
inductor) (4)
substituting eqn (2 ) and (3) in eqn (4) you get
Power = 0.5 * L* (Imax - Imin) ^2 /ton
The rest is self explanatory.
indeed, but the explanation is that you were wrong.
you just stated:
" Power = 0.5 * L* (Imax - Imin) ^2 /ton "
yet previously you stated that:
"Energy entering the primary winding during each cycle of the core is
from the definition of inductance
E= 1/2* L * i2
or more like 1/2 *L* (i peak - i min)^2 "
We all agree that Power = delta_E*F
but *YOU* said delta_E = 0.5*L*(Ipeak - Imin)^2
ergo P = 0.5*L*(Ipeak - Imin)^2*F
yet above you just wrote Power = 0.5 * L* (Imax - Imin) ^2 /ton
where ton = D*T = D/F
ergo Power = 0.5 * L* (Imax - Imin) ^2 *F/D
one of these things is not like the other.
oops, you just contradicted yourself!
they cant both be right.
You can derive the same formula using an alternative approach by
applying differential analysis methods.
rather than the method I used above, I can directly calculate the secondary trapezoid at full power, by equating charges again:
charge delivered to load over one cycle:
Qload = Imax/F where Imax = max output load current
charge removed from secondary during Toff:
Qsec = [(Is_min + Is_max)/2]*(1-Dmax)/F
equating the two and simplifying:
Imax/(1-Dmax) = 0.5*(Is_min + Is_max)
but Is_max = Is_min + delta_Is, so:
Imax/(1-Dmax) = Is_min + 0.5*delta_Is
so
Is_min = Imax/(1-Dmax) - 0.5*delta_Is
but Imax = Pout/Vout, so:
Is_min = Pout/[Vout*(1-Dmax)] - 0.5*delta_Is
- actually, use Pin, and "pretend" the power is delivered to the output, even though not all of it gets there (theoretical analyses just assume 100% efficiency):
Is_min = Pin/[Vout*(1-Dmax)] - 0.5*delta_Is
now I already derived the equation for Ip_min:
Ip_min = Pin/(F*Lprim*delta_Ip) - 0.5*delta_Ip
so if I reflect the equation for Is_min thru the transformer, these should equate:
Ip_min = (Ns/Np)*Is_min
substituting in the expression for Is_min:
Ip_min = (Ns/Np)*Pin/[Vout*(1-Dmax)] - 0.5*(Ns/Np)*delta_Is
and we know, by definition, that delta_Ip = (Ns/Np)*delta_Is, so:
Ip_min = (Ns/Np)*Pin/[Vout*(1-Dmax)] - 0.5*delta_Ip
which ought to equal the original equation:
Ip_min = Pin/(F*Lprim*delta_Ip) - 0.5*delta_Ip
the 0.5*delta_Ip is in both equations, so equating the two gives:
Pin/(F*Lprim*delta_Ip) = (Ns/Np)*Pin/[Vout*(1-Dmax)]
re-arranging and simplifying:
F*Lprim*delta_Ip = Vout*(1-Dmax)*(Np/Ns)
and we know what delta_Ip is:
delta_Ip = (Np/Ns)*(2*Idcm)/(1-Dmax)
so:
F*Lprim*(Np/Ns)*(2*Idcm)/(1-Dmax) = Vout*(1-Dmax)*(Np/Ns)
thus:
F*Lprim*(2*Idcm) = Vout*(1-Dmax)^2
and we also know that:
Lprim = (Np/Ns)*Vinmin*Dmax*(1-Dmax)/(2*F*Idcm)
therefore:
F*[(Np/Ns)*Vinmin*Dmax*(1-Dmax)/(2*F*Idcm)]*(2*Idcm) = Vout*(1-Dmax)^2
simplifying:
(Np/Ns)*Vinmin*Dmax/(1-Dmax) = Vout
which, of course, it does! Therefore the two expressions for Ip_min are in fact equal.
[OK, ignoring diode drop. If I assume all of the loss is in the diode, the equations line up exactly, but it gets a little bit messier]
Hint: Ipeak ? I min? or a function of the two? If you can tell the
value then you can easily see why my formula is right and yours
isn't.My formula was written for the limiting condition of DCM but it
works also in CCM with a factor of 1/2 applied. Let me know if you
still don't get the point.
give a worked example. your formula is just plain wrong.
So you think your formula P = 0.5 L (Ip^2 - Imin^2) is right?
In 1 cycle the average current flowing through
I never wrote this. therefore you must have.
I did write this, and its true.the input voltage sets the current up-slope
average current flowing through input voltage ???? I assume you mean
through the input inductor?
you wrote the rubbish about average current
The triangular or trapezoidal (as you fancied calling them) upslope
(as you call it) on the current - time waveform of the inductor is
set by the ratio of the input voltage and the primary inductance.
BECAUSE Ipeak - Imin = Vin * ton /L (1)
=> slope is Ipeak-Imin/ton = Vin/L Vin input voltage , ton time transistor is on , L inductance of
primary
yeah, thats right.
Contrary to what you say the "average current" is a completely
different entity and SETS no slope.
I never said that. I dont know where you got that line of text from, but *you* wrote it, not me.
damn strange ... I've never corrected my own self ... hey it could be
the first time!
The current-time waveforms of the inductors are made up only of
instantaneous currents! Write the mathematical expression for the
average current and you will see that.
Even from eqn.1 it is quite evident that by reducing L you can
increase Ipeak - Imin which increases the permissible power. They are
magnetic and physical limits to this but that is another story.
off on a tangent
and the output voltage sets the down slope, so Ipeak - Imin is constant, regardless of load (as long as the load is sufficient to ensure DCM operation).
Wrong man ... totally inaccurate. So according to you I can't inject
whatever current I want into the transformer ... even after changing
the primary inductance?
since when does one change the primary inductance of a flyback converter?
Yes you have to decide that when designing it.
the input and output voltages, power, frequency and mode of operation all combine to select the primary inductance value. design it, build it, it stays constant.
Though what you are considering is not the case I and the Op were
working on I remind you that in an SMPS Input voltages are not necessarily constant ... Vout = ton/toff * Vin
what, no duty cycle?
Yes it is related to the duty cycle ... I imagine with all the
equations you've written its kids play for you to see how the above is
related to the duty cycle.
appropriate variation of pulse duty cycle works to maintain Vout
constant during operation.
during a single switching cycle however, Vin is pretty much constant.
OK ... agreed. I was considering more then 1 cycle but even then with
an unrectified input , low frequency etc Vin can change .
Neither is the mode of operation it all depends on the
limiting current flowing through the load which is a function also of
the turns ratio. Now I would have to write so much on the limiting
current ... but I'll stop here.
it is also true to say that, assuming the smps can in fact drive the load, the *LOAD* sets the load current.
Yes. But even with no load a current will flow in the primary ... it
could even be designed to be larger then the limiting current.
this is semantics, but we were talking about changing the load current....
How does that sound to you? Hint: what are the current steady state interrelations? How are these
related to the output/input voltage in the flyback transformer?
Double the output power (by halving Rl) and the trapezoid gets taller - Ipeak and Imin *both* increase - but the slopes dont change (nor does the duty cycle).
Now whoever suggested halving RLoad? you ? Its unnecessary. Just
increase the input current and your trapezoids get taller.
wow, you can increase the input current of your power supply (which presumably regulates the output voltage) but dont change Rload! where does the input current go to?
oh, thats right, according to your maths, the power stays the same regardless of the height of the trapezoid, it only depends on (Ipeak - Imin).
weren't you rambling about increasing power? Now you claim I'm
saying power stays constant. I'm starting to give up understanding
you.
Your formula for Power has exactly the same variables as mine does Yr formula is P = 0.5 L (Ip^2 - Imin^2) Now don't say I invented that ... you
wrote it.
yep, and its right
well ... its a free world
there is an F missing: P = 0.5*L*(Ipeak^2 - Imin^2)*F
CCM or DCM
Mine is 0.5*L*(Ipeak - Imin)^2 CCM
yep, and its wrong.
disagree on that
Common sense would warn you that something is wrong with yours ...
really?
I'm trying to help you see your errors. I could give you the answers
immediately but stimulating your thinking is best IMO.
LOL
you cant even grasp a simple energy balance, which shows your maths to be wrong. I'm picking you dont design flyback converters for a living.
Energy balance ... wheeeeeee . Where is it? .
although this dissertation contains pretty much everything needed to design flybacks, for the purpose of our argument (your incorrect equation), its irrelevant. all that matters is:
1) what is the energy stored in the core, just after the switch turns on
Estart = 0.5*L*Imin^2
2) what is the energy stored in the core, just before the switch turns off
Efinish = 0.5*L*Ipeak^2
3) what is the change in energy in the core during the on time
delta_E = Efinish - Estart = 0.5*L*(Ipeak^2 - Imin^2)
and that is a thorough dis-proof of your equation.
Well I feel I have sufficiently disproved your equations / techniques
but as I said its a free world.
I would add basic physics will tell you that dc components don't contribute to
inductor voltage obviously ignoring resistive effects.
Your equations above contain dc components.
?!
Till later
lemonjuice
Cheers
Terry
Frankly I'm getting bored with this topic. I think we've exhausted
this argument ... whether you agree or disagree with me :)
Maybe its time to pass on to something else . What do you think?
I think you made a mistake and dont want to admit it.
.
lemonjuice
ALL INCOMING MESSAGES CONTAINING BARTOLI ARE DELETED BY SYSTEM
- Follow-Ups:
- Re: Flyback transformer design confusion!!
- From: Jonas Klein
- Re: Flyback transformer design confusion!!
- From: elishaphat@xxxxxxxxx
- Re: Flyback transformer design confusion!!
- References:
- Re: Flyback transformer design confusion!!
- From: Terry Given
- Re: Flyback transformer design confusion!!
- From: Fred Bartoli
- Re: Flyback transformer design confusion!!
- From: Terry Given
- Re: Flyback transformer design confusion!!
- From: lemonjuice
- Re: Flyback transformer design confusion!!
- From: Fred Bartoli
- Re: Flyback transformer design confusion!!
- From: Terry Given
- Re: Flyback transformer design confusion!!
- From: Terry Given
- Re: Flyback transformer design confusion!!
- From: lemonjuice
- Re: Flyback transformer design confusion!!
- From: Terry Given
- Re: Flyback transformer design confusion!!
- From: lemonjuice
- Re: Flyback transformer design confusion!!
- From: Terry Given
- Re: Flyback transformer design confusion!!
- From: lemonjuice
- Re: Flyback transformer design confusion!!
- From: Terry Given
- Re: Flyback transformer design confusion!!
- From: lemonjuice
- Re: Flyback transformer design confusion!!
- Prev by Date: Re: Now that the dems are in office...
- Next by Date: Re: Flyback transformer design confusion!!
- Previous by thread: Re: Flyback transformer design confusion!!
- Next by thread: Re: Flyback transformer design confusion!!
- Index(es):