Despite the fact that not so long ago, quite well written articles about the calculation of a transformer of a switching power supply skipped, I will offer you my method, and not just a bare method, but the most transparent description of the principles used in it.
There will be no pictures, there will be about 18 simple formulas and a lot of text. Anyone wishing to join please.
I want to tell you about how to calculate such a cunning beast as a pulse transformer of the flyback power source. A reverse switch or FlyBack is probably the most popular topology of a pulse converter. In my opinion, in the IIP there are two very important and subtle points - this is a transformer and a feedback loop. In this article, I want to show one of the possible sets of simple mathematical equations, solving which we can obtain the data of a quite real transformer for flyback.
On the Internet, in various authors' articles, or in AppNotes of various producers, one can find various calculation methods that are often “compressed” as much as possible, so that the formulas do not understand how they work out. I want to focus not on accuracy, but on maximum clarity and transparency of the calculations made, so that you understand “why so”.
')
Next, I will try to write briefly and capaciously, so that you can sit down and count immediately after reading the article. I will not draw diagrams of voltages and currents in the flyback source, I think that you are sufficiently prepared for such terms as “leakage inductance”, “reflected voltage”, “peak value of current through the power switch”, “demagnetization of the magnetic circuit” to you are clear.
So, we will consider the transformer of the return power source, without the power factor corrector, as the most common, and my “calculation” is only sharpened for it.
Separately, I will make a note of what the so-called quasi-resonant mode of operation of the converter, when the pumping of energy into the transformer begins immediately after the complete demagnetization of the magnetic circuit. Those. so-called "Current continuity coefficient" = 1, i.e. as soon as all the energy has flowed out through the secondary winding (and dissipated in the snubber circuit), immediately turn on the key and pump it up again. Such a regime has recently been very popular in flyback power sources, since allows you to increase efficiency slightly.
I would like to make a reservation in advance - the method below is very rough, but it “works in reinforced concrete”, it has been repeatedly tested on real transformers in real power sources.
To get started, download the calculation, open, run over your eyes. The values for calculating the transformer of the power source, with an output power of 100W, have already been “driven into” it.
Calculation:
unfortunately, for some unknown reason, the public link is not displayed.
Perhaps the publication of public links is contrary to the rules. I hope that the moderators will hear this cry from the heart and send me a personalized filter setting, but for now you can rewrite to Excel, or matkad, all the below formulas and get a good result.So let's go. In order to start the calculation we need to specify several initial parameters (all of them are highlighted in green in the calculation), namely:
1. The output power of the power source for which we make a transformer (POUTmax).
2. The output voltage of the source (Uout) (1).
3. The output voltage of the service winding (Ubias) (2).
4. Minimum supply voltage (UACmin) (3).
5. Maximum mains voltage (UACmax) (3).
6. The ripple level on the filter capacitor of the mains rectifier (Urpl) (4).
7. The expected efficiency of the transformer (take 0.85 and do not lose) (ŋ).
8. Frequency of the converter (5).
9. Peak value of the current flowing through the key switching primary winding (ILPRpeak) (6).
(1) If the output voltages are low enough, consider the direct voltage drop across the diode.
(2) In the overwhelming majority of power supply designs, a third winding is required, from which the control chip will be powered.
(3) Always take with a stock, i.e. if the range is 180-264, take from 160 to 280.
(4) This parameter can often only be guessed; take 10% of the constant component on it and you will not go wrong; in fact, the resulting working prototype is “dredged”.
(5) Frequency to converters with expectation of demagnetization of the core - floating, we take "from the ceiling" the one we want to get at full load.
(6) I hope you know that the current shape is triangular, that the key switches, what is a key, etc.
So, the first formula:
We begin by defining the inductance of the primary winding, Lpr.
Lpr = (1000 × 2 × POUTmax) / (ŋ × F × ILPRpeak ^ 2) (1)
For simplicity, I’ll throw out efficiency, and a factor of 1000, which is needed only to bring the result to Henry’s micro, will have the following equation:
Lpr = (2 × POUTmax) / (F × ILPRpeak ^ 2) (1.1)
At first glance, it is completely incomprehensible how this happens. Let's try to convert it. Transferring the multipliers from right to left, we get.
(Lpr × ILPRpeak ^ 2) / 2 = POUTmax / F (1.2)
Transform the right side, we get:
(Lpr × ILPRpeak ^ 2) / 2 = POUTmax × T (1.3)
So, on the left side we have the energy contained in the inductance (physics textbook, if it is not clear). In the right part we have the power consumed during the period of the converter operation. Those. the energy stored in the inductance of the primary winding (at the pumping stage, from the beginning of the period to the opening of the key) is equal to the power transmitted to the load over the entire period T (from the beginning of the pumping, until the energy in the transformer is completely exhausted and the beginning of a new pulse).
In the steady state, what is pumped into the transformer from the network should be equal to what was poured into the load. Those. all the arguments suggest that our source is already working, and not starting.
Let us leave this formula (1) for now, we will use it later in the calculation, I just wanted to demonstrate how it turns out.
Now about the parameters. Let's look at the formula. By fixing (choosing at our discretion) three out of four unknowns, we can get the value of the fourth.
Power (POUTmax), we have already set.
Frequency, you can simply choose at will. Without further ado, let's say 50kHz and not lose. Climb over 150kHz is not worth it, since the switching loss will become unreasonably high, and even the skin effect, we do not need it in the flyback.
The peak value of the current through the primary winding, and at the same time the key, ILPRPeak, is a parameter on the nerves of which we will play. Choosing its value ILPRPeak, we change the Lpr, and with it a lot of other things. In my calculation, we will change ILPRpeak and observe other cells of the table, which will contain the results of other formulas. Again, closer to reality, for a 100W source, you can set ILPRpeak = 3 ... 4A to start.
Just try to substitute different numbers in the cell, and you will see how other derived parameters change. In particular, choosing the peak current of the “primary”, we look at the “reflected” voltage, and proceed from the considerations of the keys that we have. Also, this parameter affects the peak value of the “secondary” current, which is also important, because in flybacks the currents have the shape of a right triangle, and the peak values are several times higher than the effective ones, i.e. if the load current is 5A, then the peak may be 50, be guided by the presence of diodes and losses in the copper winding.
The second formula:
UDCmin = UACmin × 1.41-Urpl (2)
There is nothing to simplify, I think it is clear that we get the worst value of the constant voltage, taking into account the drawdown on the buffer capacitor, which is behind the network rectifier, or behind the CMC.
Ton = (Lpr × ILPRpeak) / UDCmin (3)
In the formula (3) we calculate how much time the key must be open, so that the current in the inductance, when our worst UDCmin is applied to it, grows from zero to the desired ILPRpeak.
T = 1 / F × 1000 (4)
We set the frequency earlier, the period was calculated in (4). We multiply by 1000 because we recorded the desired frequency in kHz and not in the 1000 Hertz.
Toff = T-Ton (5)
The rest of the period, which will be devoted to the transfer of energy to the load, is calculated by the formula (5).
Q = Toff / Ton (6)
The maximum fill factor for the worst voltage in the network and the maximum drawdown on the filter capacitor is calculated in (6).
Urv = UDCmin × Ton / Toff (7)
"Reflected" voltage. Our transformer, albeit a flyback, but still a transformer, and therefore the transformation ratio to it is also applicable. If on our secondary winding during the current flow through a rectifier diode, the voltage (for example) is 12.7V, then through the ratio of the number of turns this voltage is transformed into the primary winding (after all, the magnetic flux washes all the windings simultaneously).
Formula (7), a little tricky, let's try to unleash it. We get:
UDCmin × Ton = Urv × Toff (7.1)
(7.1) Demonstrates one very important point, popularly called “equality of volt * second intervals”. Perhaps the validity of the statement (7.1) is not obvious, or is not immediately clear, as long as we use the numerical value obtained using (7) as it is, do not doubt its validity.
UVTmax = UACmax × 1.41 + Urv (8)
I hope you understand well that on the reverse course, the primary winding, for a constant voltage, is just a piece of wire on the filter capacitor, i.e. if our filter capacitor is still charged up to 310V, then when the power key is open, the current flows through the secondary winding, the constant simply “passes” through the primary and is applied to the key, but the reflected voltage is also added to the key. And the saddest thing is that it adds up to a constant. And this is without taking into account the emission from the leakage inductance, keep this in mind, in the calculation this circumstance is specifically highlighted in red.
Then (8) shows what voltage will be applied to the power switch on the return stroke. You can immediately add to the maximum voltage, on which the key is designed, still on top of the volts that way 200 and you can’t go wrong. Layout will show the real amplitude of the voltage surge generated by the leakage inductance.
Now we can calculate the transformer ratio, for example:
Kfb = Uout / Urv (9)
I call this transformation ratio "inverse", because He is considered backwards. Now the classic transformation ratio, which can be obtained:
K = 1 / Kfb (10)
Next, we calculate the maximum voltage that will be applied to the rectifier diode in the forward path of the converter. I think you are well aware that it will be the sum of the voltage across the filtering capacitor of the load, which in operating mode, can be considered constant, and transformed, through the transformation ratio, the voltage applied to the primary winding.
UVDmax = Uout + (VACmax × 1.41) / K (11)
And do not forget that the emissions from the parasitic inductances of the transformer windings act on the diode including. If we are talking about sources with high output voltages, take a voltage margin of at least 200V. For low voltage, at least 1.5, and carefully look at the rectifier with an oscilloscope.
Further.
Lsec = Lpr / K ^ 2 (12)
From (12) we obtain the inductance of the secondary winding of the transformer. The rule that is used in the formula states that "the inductances of the transformer windings are related as squares of their turns", since expression can be represented as:
Lsec / Lpr = N2 ^ 2 / N1 ^ 2 (12.1) (N2 ^ 2 / N1 ^ 2 = K ^ 2)
Next, calculate the peak current of the secondary winding. Get ready to get large enough numbers here, because this is a “return flow”, and its current in the “secondary housing” is triangular, and the peak value can be significantly greater than the load current.
ILSECpeak = √ (1000 × 2 × POUTmax) / (F × × Lsec) (13)
This formula is converted in the same way as the first formula for ILPRpeak.
ILSECrms = ILSECpeak√ (1-Q) / 3 (14)
In (14), the effective current value is calculated through the secondary winding of the transformer. I cannot explain why the root of (1-Q) / 3, it can probably be explained by plotting and resorting to geometry. Here we also estimate the effective value of the current of the primary winding.
ILPRrms = ILPRmax √Q / 3 (15)
So, inductances, currents, frequencies are calculated. And how to choose a magnetic core, you ask how to calculate a non-magnetic gap? To begin with, we will “estimate” it, based on our life experience, and “having driven” its parameters into the calculation, having looked at the calculated induction, we can choose another magnetic circuit. Here I wanted a power source of 100W, with an output voltage of 12V. I take the “PQ2620” magnetic core “from the ceiling”.
From his Datasheet I write out Ae, the estimated gap, and inductance coefficient for a given gap (in Epcos datasheets, a table is often given with standard gaps for a given magnetic circuit, and Al and equivalent permeability values). If there is no data on the Al coefficient for the gap you want, you will have to make it (the gap), wind the trial 100 turns, and calculate it using the simple formula Al = √ (L / N ^ 2), where L is the measured inductance value on the core with a gap that you sawed through, N is the number of turns that you have sketched (I recommend to wind the trial 100 turns).
Explain that Such Ae, G, and Al will not, assuming that you yourself know why you need a gap in the magnetic core, and that such Al. Also, the equivalent permeability of the core with a gap can be entered into the calculation, but it is not used there (purely for beauty). In formula (16) we consider the required number of turns.
Npr = √ Lpr / Al (16)
One of the most important parameters for a transformer is the peak value of the flux of magnetic induction.
B = (Lpr × ILPRpeak) / (Npr × Ae) (17)
To exceed the value of 0.3, I categorically do not recommend, and 0.4 is a disaster. Coincidentally, this magnetic circuit seems to fit well with our needs. Induction is less than 0.3 TL, and I want to lay it under our needs. Unfortunately, the calculation does not contain formulas for calculating the filling of the magnetic window of the magnetic circuit; therefore, it is impossible to give a final verdict on it.
If the induction is greater than 0.3 Tl, we can either choose a larger magnetic circuit, or increase the gap. Increasing the gap, we get a different value of Al and acc. induction flow value.
In general, life experience shows that it is better not to climb into the gaps of more than 1.5mm., Because they are characterized by their parasitic phenomena, such as buckling of magnetic field lines, heating the coils located near the gap, to temperatures at which they can come "Khan", in short from 0.2mm to 1.5mm. Less than 0.2 - temperature expansion of the material can significantly change the parameters of the transformer. More than 1.5mm - wrote above.
Choosing the magnetic core, namely comparing different models, only along the core cross-section (Ae), one can lose sight of the fact that the length of the magnetic line also affects Al with the same cross-section and gap.
For example, the PQ2620 magnetic core has a core area of 122mm.kV, and ETD34 is only 97mm.kv, but the lengths of the magnetic lines of these magnetic circuits are different, and you can also successfully pump 100W through ETD34, as well as through PQ2620. I mean, take and substitute in the calculation all the ferrrites that are near those sizes that, as you think, can pump the desired power.
After calculating the magnetic induction in the calculation, the number of turns of the secondary winding and the auxiliary winding is calculated, I will not dwell on them specifically, the methodology is the same as before.
I hope the above will be useful to you. The development of an IIP is a huge reservoir of applied science, and this “calculation” is only a small leaf of one of the Talmuds, in which all the experience of mankind is gathered, but it is extremely useful in the applied plan for developing simple “flybacks”.
My “calculation” (and not really mine, but inherited from the ideological mastermind) is a rather primitive tool, so I can recommend using the collection of programs of Vladimir Denisenko, which are easily found through a search engine. Those who "chop" in the "power" theme, and has something to say, to my co-workers in comments. Any criticism is welcome!
What is not clear - ask, I will supplement the article with more detailed explanations.