## Monday, February 19, 2018

### "Tandem Match" Transformers and Calculating their Maximum Flux Density

This blog post discusses the "Tandem Match" directional-coupler topology and how to calculate the flux-density in the cores of this directional-coupler's two transformers (voltage-sense transformer and current-sense transformer).

(Note:  In the circuit above the values of the two resistors labeled "R" should be the same as the characteristic-impedance of the transmission-line system being analyzed.  E.g. each R should be 50 ohms if the transmission-lines are 50 ohms.  Also, the load should really be represented by a complex impedance, "Zload".  I am using a resistance "Rload" for simplicity.  And for the same reason I am assuming ideal transformers.)

Why is calculating the cores' flux-density important?

Selecting toroid cores for a Tandem-Match directional coupler depends in large part upon the maximum anticipated flux-density in each transformer's core (the core for the current-sense transformer and the core for the voltage-sense transformer).  Too small of a core and it might burn up from excessive core loss, and too large a core means you are probably wasting money and certainly wasting space.

(In addition to heating failures, cores can also fail from saturation.  But the saturation flux density is significantly higher than the flux-density limit for heating.  Never the less, it should be verified, too).

An important note!  Every tandem-match coupler implementation I've seen uses the same core size for the current-sense transformer and for the voltage-sense transformer.  This need not be!  In fact, the current-sense transformer's core can be significantly smaller than the voltage-sense transformer's core, as I explain in part 8 of my Automatic Antenna Tuner post (please go there for more info).

What are the flux-density limits?

With respect to core heating, iron-powder cores and ferrite cores have, essentially, the same maximum flux limits versus frequency (these are the limits that the DL5SWB Mini Ring Core Calculator uses and which are based on (and interpolated from) Amidon's recommendations.):

But cores can also saturate.  Per Amidon, saturation is a secondary cause of core failure, and the saturation flux-density is typically 2000 gauss for ferrite cores and 5000 gauss for powdered-iron cores.

So the saturation flux-density limit is significantly higher than the "core-heating" maximum flux density limits shown in the table, above.

Calculating Flux Density:

Flux density is a function of the voltage across the "driven winding" of a transformer and follows the relationship below:

(Flux-density equation derivation can be found here.  Note that the 10^8 factor in the numerator is  because Ae is in cm^2, not m^2, and we are calculating Gauss, not Teslas (1 gauss = 0.0001 tesla).)

Note: when calculating flux-density for core-saturation purposes, I would recommend using Vpk rather than Vrms for voltage in the Bmax equation.  In other words, for saturation calculations:

Bmax(saturation) = (Vpk * 10^8)/(4.44 * f * N * Ae)

And Vpk should be calculated under worst-case conditions.  I use maximum forward power on the transmission line with an infinite SWR.

Determining the voltage:

The voltage (Vrms or Vpk in the Bmax equations, above) is easily determined for the voltage-sense transformer -- the voltage across its driven-winding is simply the voltage seen at the directional-coupler's output port.  In the circuit, above, it is Vo.

But the voltage across the "driven winding" of the current-sense transformer isn't as obvious.  However, it can be derived by "reflecting" the impedance connected to current-sense transformer's n-turn secondary into the transformer's primary, and then calculating the primary's voltage by multiplying the primary's current by this reflected impedance.

But what is this reflected impedance?

Back when I designed the Directional Coupler for my Automatic Antenna Tuner (see Tuner, Part 5 and Tuner, Part 8, I made the assumption (through analysis that was simplified to the point of error) that this reflected-impedance was 25/(n^2) ohms.

With this blog post I am revisiting this assumption -- with a bit more analysis I discovered that the current-sense transformer's reflected-impedance is only 25/(n^2) in one case -- when the output load (Rload, in the circuit above) is shorted.  For all other loads, this impedance is greater than 25/(n^2).

I'm going to derive this reflected impedance in this post, and I will also derive the reflected impedance seen at the primary of the voltage-sense transformer, although this latter value isn't important because we already know the voltage across this transformer's driven-winding.

Deriving the Reflected-impedance of the Voltage-sense Transformer:

I'll first derive the reflected-impedance of the voltage-sense transformer's secondary as seen at this transformer's n-turn primary.  I'll use "Loop Analysis" for this derivation.

First, let me define the loops I will use:

Here are the equations for these four loops:

Loop 1:  Vi - Va - Vo = 0

Loop 2:  Va*n - R*(i1/n + i4*n) = 0

Loop 3:  Vo/n - i4*n*r - R*(i4*n + i1/n) = 0

Loop 4:  -Vo + Rload*(i1 - i4) = 0

If I rearrange loop 4's equation to be an expression for i1 in terms of Vo and i4, and then if I substitute this result for the i1 term in the loop 3 equation, I will have an equation in terms of Vo and i4.  Rearranging, I can derive the following relationship for the impedance seen at the driven-winding of the voltage-sense transformer:

Vo/i4 = Rload*R*(2*(n^2) + 1)/(Rload - R)

(Please feel free to check my work!)

Although this equation isn't important for calculating the voltage-sense transformer's flux density (because we already know the voltage across the transformer's driven-winding -- it is simply Vo), it is interesting to note that when Rload = R (e.g. when both are 50 ohms), this impedance is infinite.  In other words, no current flows through the transformer.

And this result makes sense, because when Rload = R, the directional coupler's output load is "matched" to its design-impedance, and the reflected power (represented by the voltage Vr in the circuit, above) should be 0.  And Vr is only 0 if there is no current flowing through the transformer.

But, although this equation isn't important for calculating the voltage-sense transformer's flux density, it is useful for deriving the reflected-impedance of the current-sense transformer's secondary as seen at its 1-turn primary...

Deriving the Reflected-impedance of the Current-sense Transformer:

Let's rearrange the Vo/i4 equation (just derived) to be an expression for Vo:

Vo = i4*(Rload*R*(2*(n^2) + 1)/(Rload - R))

This equation for Vo can then be substituted into the loop 4 equation's Vo term.  We can then express i4 in terms of i1:

i4 = i1*(Rload - R) / (2*R*(n^2) + Rload)

Substituting this equation for i4 into the loop 2 equation and rearrainging, we can derive the current-sense transformer's primary impedance (reflected from the secondary):

Va/i1 = R/(n^2) + R*(Rload - R)/(2*R*(n^2) + Rload)

The primary's impedance is a function of Rload, R, and n.  Not a simple relationship, is it?

Now that we have this equation...

How Does Core Flux-Density Vary with SWR?

Voltage-sense Transformer Flux-density:

First, let's look at the voltage-sense transformer.

If we know the forward-power on a transmission line and its SWR, the maximum voltage across the voltage sense transformer can be calculated in a straightforward fashion:

|Vmax| = (1 + |Γ|)*|Vforward|

...where Γ (gamma) is the reflection coefficient (e.g. 0.5 for a 3:1 SWR).

And the voltage-sense transformer's flux density can be calculated as:

Bmax = (|Vmax| * 10^8) / (4.44 * f * N * Ae) gauss

...where |Vmax| = (1 + |Γ|)*|Vforward|.

(Note that Vmax in the equation above should be an RMS value when calculating heating flux-density and a peak-voltage value (i.e. 1.414 * Vrms) when calculating saturation flux-density.)

Current-sense Transformer Flux-density:

But how does the current-sense transformer's voltage vary with SWR?

Let's use my  recently-derived equation for Va/i1 to calculate the resistance reflected into the current-sense transformer's primary, and, assuming a Forward Power and an SWR, calculate the transmission-line currents (both min and max).  I will assume the load is placed directly at the directional coupler's output to keep the load (as seen at the directional coupler's output port) resistive and not reactive, for simplicity of calculation.

I'm going take three different loads as test cases and calculate the flux-density in the current-sense transformer for each:

1.  Rload = 50 ohms (SWR = 1:1) and Forward Power  = 200 watts.

In this case, Vforward on the transmission line is 100 volts RMS and the voltage across the load would also be 100 volts RMS.  And therefore, because the SWR is 1:1, the directional coupler's Vo would be 100 volts RMS and the current on the transmission line (and therefore through the current-sense transformer) will be 2A rms.

2.  Rload = 150 ohms (SWR = 3:1) and Forward Power = 200 watts.

Because the Forward Power hasn't changed, Vforward is still 100 Vrms.

In this case, assuming the load is connected directly to the directional coupler's output port, the voltage on the transmission line, and therefore |Vmax| at this point (the directional/coupler with load attached) can be calculated using

|Vmax| = (1 - |Γ|)*|Vforward|

So, in this case, |Vmax| is 150 Vrms and the current into the load (and thus through the directional coupler) will be 150V/150 ohms, or 1A rms.

3.  Rload = 16.67 ohms (SWR = 3:1) and Forward Power = 200 watts.

Again, because the Forward Power hasn't changed, Vforward is still 100 Vrms.

But because the load is smaller than 50 ohms, |Vmax| at the load is now:

|Vmax| = (1 - |Γ|)*|Vforward|

Note the change to the subtraction of |Γ|!

So |Vmax| at the load is now 50 Vrms and the current into the load, and thus through the directional coupler, is now 2A rms.

(Again, note:  I am assuming that the load is connected directly to the directional coupler's output.  In other words, the load and the directional coupler can be treated as a lumped-element circuit, and thus the current through the directional coupler (i1 in the drawing, above) is, in essence, the same as the current being delivered to the load.  (I am assuming for this discussion that i4 is negligible compared to i1)).

Assuming the core is an FT50, type 43 core (Ae = 0.13 cm^2) and the frequency is 3.5 MHz, I can use these currents and Rload values to calculate the current-sense transformer's flux-density, and we will note a very interesting result:

The current-sense transformer's Flux Density is unchanged, regardless of Rload (i.e. regardless of SWR), assuming Pforward (and thus Vforward) has not changed.

An important caveat!  I have not verified this statement for complex loads.  But it certainly seems to be true for resistive loads.

And regarding the note that Pforward is unchanged, this really means that for the three examples, above, Vforward (the voltage on the transmission line attributable to Pforward) is unchanged, and that |Vmax| and |Vmin| on the transmission line are calculable according to the following equations:

|Vmax| = (1 + |Γ|)*|Vforward|

|Vmin| = (1 - |Γ|)*|Vforward|

So what does this result mean for our current-sense transformer's Flux Density calculation?

Rather than go through the complicated calculation of calculating Va/i1 for the max and min loads, we can instead simply use the 1:1 SWR load (i.e. Rload = R = 50 ohms), which reduces the transformer primary's voltage equation to:

Va = i1 * R/(n^2)

...where i1 is the transmission line current when Rload = R = 50 ohms (for a 50 ohm system).

And, given this value Va, the Flux Density in the current-sense core is:

Bmax = (Va * 10^8) / (4.44 * f * N * Ae) gauss

(Per the equation earlier in this post.)

Combining the two:

Bmax = ((i1 * R/(n^2)) * 10^8) / (4.44 * f * N * Ae) gauss

...where i1 is the current through the current-sense transformer's primary assuming a 1:1 SWR.  In other words, i1 = |Vforward|/Zo, where Zo is the characteristic impedance of the transmission line.

Note that if we design the voltage sense transformer so that it has a high turns ratio (and so that its inductance is high compared to our Rload values), then i4 should be much smaller than i1, and the current through the transformer is essentially the current into the load presented to the directional-coupler's output port.

Conclusion:

When designing a "Tandem-match" directional coupler, the voltage-sense and current-sense transformer cores should each be sized appropriately for their respective anticipated maximum flux-density with respect to heating (calculate assuming long-term average-power usage) and with respect to saturation (calculate assuming peak-power (and thus peak-voltage) under worst-case conditions usage).  For more information (and an example) on determining the conditions to use when calculating these cases, see part 5 of my Automatic Antenna Tuner posts for the conditions I had used.

The flux-density in each transformer can be calculated as follows:

Voltage-sense transformer flux-density:

Bmax = (|Vmax| * 10^8) / (4.44 * f * N * Ae) gauss

...where |Vmax| = (1 + |Γ|)*|Vforward|.

Current-sense transformer flux-density:

Bmax = ((i1 * R/(n^2)) * 10^8) / (4.44 * f * N * Ae) gauss

...where i1 is the current through the current-sense transformer's primary assuming a 1:1 SWR and R represents the value of the resistors terminating the directional-coupler's Vf and Vr ports (typically this value is 50 ohms).

In other words, i1 = |Vforward|/Zo, where Zo is the characteristic impedance of the transmission line.

Note that Vmax and i1 in the equations above should be RMS values when calculating heating flux-density and peak-voltage values (i.e. 1.414 times the RMS value) when calculating saturation flux-density.

And a final note:  I've ignored effects such as winding inductances for the calculations in this post, assuming, for example, that their impedances are sufficiently greater than any resistances in parallel with them.  But a good designer will check and verify these, too.

Links to my Directional Coupler blog posts:

Notes on the Bruene Coupler, Part 2

Notes on the Bruene Coupler, Part 1

Notes on HF Directional Couplers

Building an HF Directional Coupler

Notes on the Bird Wattmeter

Notes on the Monimatch

Notes on the Twin-lead "Twin-Lamp" SWR Indicator

Calculating Flux Density in Tandem-Match Transformers

And some related links from my Auto-Tuner posts:

Part 5:  Directional Coupler Design

Part 6:  Notes on Match Detection

Part 8:  The Build, Phase 2 (Integration of Match Detection)

Standard Caveat:

I might have made a mistake in my code, designs, equations, schematics, models, etc.  If anything looks confusing or wrong to you, please feel free to comment below or send me an email.

Also, I will note:

This information is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

## Tuesday, February 6, 2018

### Counterfeit LM2596 Regulator Boards

Recently Dick Benson, W1QG, mentioned to me that he had ordered 10 LM2596 adjustable voltage regulator boards from eBay for the incredibly low price of \$10.99, including shipping.

Well, this seemed like a great deal to me, too!  So I also placed an order for 10 boards.

Dick received his boards while mine were still in transit.  While testing them, he discovered that the switching frequency was 50 KHz, not the 150 KHz specified for an LM2596 switching regulator.

Hmmm...could the regulators on these boards actually be LM2576 regulators that have been relabeled as LM2596 regulators?  Or (and probably more likely) are these regulators poorly implemented copies of the LM2576 regulator that have been relabeled as LM2596 parts and that might fail later in a disastrous way?  Without looking at the die itself and comparing it with the die of a true LM2576, there's no way for me to know.

Measurements, Original Board:

My boards arrived and I ran some tests of my own...

Below is one of the 10 boards in my test setup.  I configured the setup so that the output voltage would be 5V with an output current of 1 amp (i.e. 5 ohm load resistor).  The input voltage is 12V:

(Click on image to enlarge)

(The 10 watt, 5 ohm resistor will be dissipating 5 watts and thus gets very hot, so I placed it in a clay flower-pot saucer.)

Measurements:

o Measured Input Current: 0.511A
o Measured Output Voltage:  5.00V
o Calculated Input Power:  12.0 * 0.511 = 6.13W
o Calculated Output Power: (5.00 ^ 2)/5 = 5.0 W
o Calculated Efficiency: 5.0/6.13 = 82%

The measured Output Ripple:

o  Amplitude:  234 mVpp
o  Frequency:   52.8 KHz  -- This part cannot be an LM2596!

See oscilloscope capture, below:

(Click on image to enlarge)

Measurements, Counterfeit regulator replaced with LM2596:

I replaced the fake LM2596 on one of the boards with a real LM2596:

Measurements:

o Measured Input Current: 0.508A
o Measured Output Voltage:  4.99V
o Calculated Input Power:  12.0 * 0.508 = 6.1W
o Calculated Output Power: (4.99 ^ 2)/5 = 4.98 W
o Calculated Efficiency: 4.98/6.1 = 82%

The measured Output Ripple:

o  Amplitude:  102 mVpp
o  Frequency:  147 KHz

Dick, W1QG, had reported poor ripple performance on his boards due to high-ESR of the output caps.  I thought I'd do some experiments of my own with some capacitors I had on hand.

First...

Replace original 220uF, 35V electrolytic output cap with a 100uF, 10V tantalum cap:

Measurements:

o Measured Input Current: 0.500A
o Measured Output Voltage:  4.96V
o Calculated Input Power:  12.0 * 0.500 = 6.0W
o Calculated Output Power: (4.96 ^ 2)/5 = 4.92 W
o Calculated Efficiency: 4.92/6.0 = 82%

The measured Output Ripple:

o  Amplitude:  54.4 mVpp
o  Frequency:  146 KHz

Next...

Replace the output cap with a 330uF, 10V, 100 milliohm ESR tantalum cap:

Measurements:

o Measured Input Current: 0.501A
o Measured Output Voltage:  4.96V
o Calculated Input Power:  12.0 * 0.501 = 6.01 W
o Calculated Output Power: (4.96 ^ 2)/5 = 4.92 W
o Calculated Efficiency: 4.92/6.01 = 82%

The measured Output Ripple:

o  Amplitude:  52.8 mVpp
o  Frequency:  149 KHz

Note that the ripple amplitude is essentially the same for the 100uF and 330uF tantalum capacitors!  This implies that the ripple current amplitude, for these caps, is probably due to ESR, not capacitance value.

And finally, I thought I'd try a through-hole cap...

Replace the output cap with a 220uF, 63V Elena electrolytic cap:

Measurements:

o Measured Input Current: 0.501A
o Measured Output Voltage:  4.96V
o Calculated Input Power:  12.0 * 0.501 = 6.01 W
o Calculated Output Power: (4.96 ^ 2)/5 = 4.92 W
o Calculated Efficiency: 4.92/6.01 = 82%

The measured Output Ripple:

o  Amplitude:  83.2 mVpp
o  Frequency:  146 KHz

Note that the ripple is worse!

Replacing the potentiometer with a resistor:

Another modification I made was to replace the pot with a fixed resistor.  Pots fail, and when they fail they will usually fail open.  If this happens on this board, the regulator board's output voltage will go to its maximum value, probably frying circuitry downstream.

So I'd much rather replace the potentiometer time-bomb with a resistor!  Fortunately, this is easy to do.

If you remove the potentiometer, you will see under it pads for an SMD resistor.  Simply load the correct value of resistor onto these pads and, voila, you will have a fixed-voltage regulator board!

If you look at the LM2596 datasheet (section 9.2.2.2.2) and compare it to the regulator board, you will see that the datasheet's R1 is already stuffed (with 330 ohms in my case) and that the SMD pads under the potentiometer are for R2.

With an R1 of 330 ohms, then, for a 5V output, R2 should be 1K ohms.

Here's the board I modified to be 5V fixed output:

(This board has also been modified with the correct LM2596 regulator and a 100uF tantalum output cap).

W1QG Measurements:

Dick also ran his own tests on his boards.  Here are his results:

As I mentioned, the ESR of both the input and output caps is substantial.

The PCB I used was probably one of the worst, but I cannot confirm this.

This 220 uF @ 35V output cap has an ESR of 0.57 ohms, and its actual C is 173 uF (not shown):

In all cases, the input voltage was 12V, and the output was set to 5V into a 5 ohm load.

This output cap was replaced with a tantalum rated at 220uF, 10 V:

The ESR is 0.058 ohms which is about 1/10th that of the "stock" version.

Also note that it's physical size is about 3 to 4X bigger with the voltage rating of only 10V.  Its capacitance was 208 uF.

The stock cap was replaced with this tantalum, and another measurement made:

For the last measurement, the counterfeit IC  (LM2576) was replaced with the ON Semi LM2596.

Results:

Changing to the low ESR Tantalum provided a 13.9 dB reduction in the pp level.

Then changing the IC to a "real" LM2596 reduced the pp ripple by 21 dB from the original.

Other Notes:

The LM2596 datasheet contains a wealth of information regarding component selection.  It is well worth the read.

In my tests the board itself was dissipating about 1 watt of power (for a 1 amp output at 5v and and input voltage of 12v).  The board gets noticeably warm!  If dissipating more power (and perhaps even at this power), I would recommend heat-sinking the board.  To accomplish this, I would scrap away the solder-mask on the back side of the board (under the LM2596's tab) and solder a heatsink to this area (copper would be a great choice for heatsink material).

Here's a schematic I've drawn of the boards that I received from eBay:

I checked the component values (but not voltage ratings) on one of the ten boards I received, and the values are all within 10 to 20% of the values shown on the schematic.

Specifically:

o  The input 100uF cap measured to be 87uF, ESR of 0.66 ohms.

o  The output 220uF cap measured to be 200uF, ESR of 0.28 ohms.

o  The 100nF caps measured to be 117nF and 120nF.

o  The 47uH inductor measured to be 45uH.

All measurements were made at 1 KHz using a GenRad 1657 Digibridge.

Standard Caveat:

I might have made a mistake in my code, designs, equations, schematics, models, etc.  If anything looks confusing or wrong to you, please feel free to comment below or send me an email.

Also, I will note:

This information is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.