Tuesday, November 12, 2024

500 Watt Antenna Tuner Part 9 - Pre Build Schematics and Board Layout

 I am getting ready to order parts (again) and build the tuner.  To prepare for it, I have updated the blog (again).  But I am still in the middle of building the new EME 5m dish project at the DVRA shack.  This might take time.

I have switched from the KiCad 6.0 circuit CAD tools to KiCad 8.0.  A definite improvement.  The tuner schematic is a total of 3 pages.  They are the RF path, the directional coupler and the main page which is mostly the microprocessor circuit.  I will start with the RF path page.

The inductor and capacitor networks, from the previous discussions, should be obvious.  Relays K3, K6, K7, K9, K11, K13, K15 and K17 control taking the inductors in and out of the circuit by shorting them when necessary.  Relays K4, K5, K6, K10, K12, K14, and K16 short the capacitors to the ground by putting them in the circuit.  K2 and K18 put the capacitor network in parallel with the load or with the source depending on the location of the load in region 1 or region 2 of the Smith Chart.  Relays K1 and K19 (2 Form C) either bypass the LC network or put in in the RF path. 

Relay Driver

The relay driver is a Toshiba TBD62783A which is a "source type DMOS transistor array".  Normally, one side of the relay coil is connected to the power supply and the other side is grounded using some type of active device.  A flyback diode is incorporated to protect the device.  This device uses a P-Channel MOSFET to connect one side of the relay to +13.8 volts (I am using the general shack power supply through Anderson Power Poles to power the tuner) while the other side is permanently grounded.  It also incorporates the fly back diode inside the device.  Its input is compatible with 3 volt logic.  As you can see from the schematic, it drastically simplifies the board layout compared to the alternatives.

If you note, the routing of signals to the relay drivers and from the relay drivers to the relays is a bit random.  It is specifically chosen to simplify the board layout.  For the same reason, there are two bypass signals from the microcontroller and the signal to put the capacitors across the load or the source, even though they are inverse of each other, are separately sourced.  

Relays:

I do not plan to open or close the relays with the power applied.  So, the two parameters that matter for my design are the open contact breakdown voltage and close contact current carrying capacity.

First, I will review some items about how the LC network:

  1. The inductors and inductor relays form a series circuit.  The "inductor current" is either carried by the inductor when the relay is open or by the relay when the relay is closed.
  2. If the inductor relay is closed, the voltage across it is zero and if it is open the voltage across it will be the same as inductor voltage
  3. The capacitors and capacitor relays form a series circuit.  The "capacitor voltage" is either the voltage across the capacitor when the relay is closed or across the relay when the relay is open.
  4. If the capacitor relay is closed, the current through it is the capacitor current and if the relay is open, it is zero.
There are two factors that go into the selection of relays:
  • When the relay is open, the dielectric strength between the contacts (1 Form A and 1 Form C) should be good enough not to break down at voice peaks at 800 watts peak power.
  • When the relay is closed, the rated carry current should be sufficient to support the current at 200 watts average power.
The Omron G2RL dielectric strength specification is 1,000 VAC (I assume RMS) at 50/60 Hz.  K6JCA quotes a reference in his blog recommending a safety factor of 0.8 for RF applications.  This sets the limit at 800 volts.  From the Maximum Voltage and Currents table in section 4, we see this requirement is met at 800 watts of short duration peak output (voice peaks in side band transmission).

These relays also have a carry current specification of 12 Amps for single pole standard type relays.  Again, from the aforementioned table, this requirement is also met at 200 watts of average power.

To minimize the board stray inductance, the relays are located on the back side of the board.  My current estimate of the path inductance when the inductors are all shorted out is 25 nH.  We will see.


RF Path

Next, I will review the directional coupler page.  From the directional coupler discussion page, the circuits on this page should be quite familiar to the reader.  The only additional comments that I make are that during testing, I found that R24 and R27 are redundant.  That is not how I read the AD8302 data sheet.  I will have to further investigate this and add it to the blog.  Also during the prototype testing, I ended up adding a 15 tap FIR low pass digital filter when reading the magnitude and phase voltages from the AD8302.  I will have to look further into this and replace it with a biquad digital filter.


Directional Coupler

Finally, below is main page.  


Main Page


The two blocks in the upper left and right are the abstraction of the two pages that I have already discussed.  The block in the middle is the Raspberry Pi Nano.  

The two connectors J5 and J6 connect to the directional coupler as you can see in the prototype picture below.  The two inductors on the right are the voltage (white) and current (blue) sense transformers.  The two cables on the right (the blue side of the directional coupler) are the main RF signals.  The two SMA cables on the left (white) side are the forward and the reflected signal cables.  This is a prototype of magnitude and phase sensor.



As of now, I have decided not to incorporate a power supply into the package and power the tuner of the Power Pole distribution.  I am feeding the Power Pole with a 20 Amp Astron linear supply that I have owned since the early 90s.  Worst case, I will upgrade the power supply.  The Power Pole can handle up to 40 amps.  The blue area is the ground plane on the back of the board.  The 3 mm track on top of the page is a 50 ohm strip line for the bypass circuit.  There are high voltages on the board as discussed in the capacitor and inductor section.  For voltages up to 500 volt on the outside tracks that are polymer coated, the recommended clearance is 0.8 mm.  There is a gap of 1 mm between all high voltage circuits and high and low voltage circuits.

And here is the board layout as it stands now:


PWB Layout




Sunday, November 10, 2024

500 Watt Antenna Tuner Part 8 Software and Microcontroller

 Controller Hardware and Programming Language Selection

This is a new iteration of this page.  I have kept the old page and included it at the end of this blog post series for anyone interested.

With the recommendation of a friend, Mike Rauch K2VPX, I started looking at the Raspberry Pi Pico.  I built a test frequency generator and the frequency measurement function for this tuner.  It worked well and I really liked what I saw.  The documentation is superb.  I also chose its native C programming enviroment for no other purpose than to keep things as simple as possible.

  • 2 pins for the bypass relay (to simplify the board layout)
  • 2 pin for the capacitor relay (across load - Region 1 or across source Region 2 see below)
  • 8 pins for the capacitor network
  • 8 pins for the inductor network
  • 2 analog pins for magnitude and phase of the reflection coefficient
  • 1 analog pin for power level input 
  • 1 pin for frequency input
  • 1 pin for gating the frequency measurement (so I am not shipping a high frequncy digital signal all over the printed wiring board)
  • 1 Spare pin
Not much to spare, but it will do.  The 12 bit A/D convertors and fast floating point arithmetic are both pluses.   But the true winners are the documentation and the SDK.

Design Concepts

Most aspects of the design are fairly straight forward and I will discuss them second.  But the real time display of SWR and output power need some additional thought and research.  I spent a day and half looking for a good solution with little luck.  I finally decided to go to a library that I had used before, Plotly.  I spent a lot of time reading through API documentation, but eventually, I figured it out.  I will embellish this display, but unless I can think of something better, this is what I am going to go with.


The Stationmaster software will be interfaced with the Pico over the USB interface.  The commands from the Stationmaster to tuner are formatted as follows:
  • Address (one byte)
  • Command (one byte)
  • Data bytes as needed (zero or more bytes)
  • Terminating semicolon ";" (one byte)
Other than the address byte, this is the same format as the Yaesu radio commands.

The replies to the commands will be formatted as follows:
  • Address (one byte) 
  • Command (one byte) - the same as the command recieved
  • Data bytes as needed (zero or more bytes) 
  • Terminating semicolon ";" (one byte)
There will be two sets of commands.  One set for normal operation and another set for testing of the tuner.

Operating Commands:
  • Test tuner (to see if the device at this USB port is the tuner) - returns Address, Command, ;
  • Bypass - returns Address, Command, (decrease power or done - one byte), ;
  • Measure power - returns Address, Command, two bytes of data,;
  • Tune - returns Address, Command, (decrease power, increase power, or done), ;
Testing Commands:
  • Read phase - returns Address, Command, two bytes of data, ;
  • Read magnitude - returns Address, Command, two bytes of data, ;
  • Read frequency - returns Address, Command, four bytes of data, ;
I add more documentation to the code and link the Github page.


Wednesday, November 6, 2024

500 Watt Antenna Tuner Part 4B Inductor Design

 One of the design challenges that Jeff, K6JCA outlines in his blog is stray inductance of the connecting wires or PCB tracks.  He used hand wiring in his construction, so I thought I might do better with a PCB layout.  I went through a design cycle with six air wound inductors and two powdered iron core inductors and did a few design iterations of the PCB with KiCad.  I did not build the board but extracted the board geometry and estimated the path inductance.  My results were the same as Jeff's.  

I decided to build all my inductors with toroid cores.  This provides me the advantage of packing them closer to each other and help keep the connecting tracks shorter and hence reduce the path inductance.  This is the approach that some of the commercial high power antenna tuners take.

Also, I noticed that some of the commercial high power antenna tuners placed the capacitor and inductor relays on the back side of the board.  This approach tends to further reduce the path inductance without increasing the PCB cost since I am using through hole relays and calling for solder mask on both sides of the board.  Preliminary estimate puts the track inductance at 25 nH.  I will explore if I can leave off the 25 nH inductor and when the tuning calls for it, just rely on the track inductance. 

For high power inductors, the recommended material to use is powdered iron cores (not ferrite), so that is what I will use.

The Mini Ring Calculator for Mac is now available, but I am familiar with the Micrometals on line tool, so, that is what I will use.  I will assume an internal enclosure temperature of 50 degrees C and maximum core temperature increase of 50 degrees C.  That meets the maximum toroid core temperature of 100 degrees C which is fine for intermittent use.  The other factor that I need is the maximum RMS current through the inductor at each frequency.

My simulator (described earlier), calculates maximum current through the inductors and maximum voltage across the inductors, but not the current at maximum voltage.  Fortunately, knowing the maximum voltage, I can calculate the current at this voltage with a spreadsheet.  

The following table is the simulator output that shows peak inductor currents and peak inductor voltages across the HF bands at average 200 watts operating power. 

Ind Current12.8 uH6.4 uH3.2 uH1.6 uH800.0 nH400.0 nH200.0 nH100.0 nH50.0 nH25.0 nH
160m low8.94674422981618140201053
160m high8.904583221789045221163
80m low8.90474437292157783920105
80m high8.900458322178904522116
40m low8.90047443729215778392010
40m high8.90045344430116382412010
20m low8.9000474437292157783920
20m high8.9000466440297160804020
17m low8.900004683512001015125
17m high8.900004713512011025125
15m low8.900004843832291185929
15m high8.900004793862331206030
12m low8.900004814152651397035
12m high8.900004834172661407035
10m low8.900004744372911577839
10m high8.900004724463051668342
6m low8.90000048341726614069
6m high8.80000047643328315075
Max8.946747447447448448343328315075
Max RMS6.3330.2335.2335.2335.2342.2341.5306.2200.1106.153

Inductor Maximum Peak Currents and Voltages Table

Here is the calculated RMS current through each inductor at the maximum voltage across that inductor at a given frequency.

3.2 uH1.6 uH800.0 nH400.0 nH200.0 nH100.0 nH50.0 nH25.0 nH
160m low5.826.296.336.256.256.256.257.50
160m high5.666.266.336.336.196.196.756.75
80m low4.395.876.316.276.276.436.436.43
80m high4.035.666.266.336.336.196.196.75
40m low2.384.395.876.316.276.276.436.43
40m high2.184.285.806.286.326.326.176.17
20m low-2.384.395.876.316.276.276.43
20m high-2.284.315.826.276.276.276.27
17m low--3.625.446.196.266.326.19
17m high--3.655.446.236.326.326.19
15m low--3.245.136.146.326.326.22
15m high--3.145.066.116.306.306.30
12m low--2.724.695.996.286.336.33
12m high--2.724.695.996.306.306.30
10m low--2.384.395.856.316.276.27
10m high--2.244.225.786.296.296.37
6m low---2.724.695.996.306.21
6m high---2.484.515.906.256.25

                            Inductor RMS Current at Maximum Inductor Voltage

As it can be seen from this table, in many instances the inductor current at maximum inductor voltage is the same or near the maximum inductor current value of 6.3 amps.  But in some cases, especially for the higher value inductors, the current is much less than the maximum inductor current.  Here is a table of all the cases where a lower inductor current value can be used.

3.2 uH1.6 uH800.0 nH400.0 nH200.0 nH100.0 nH50.0 nH25.0 nH
160m low 5.82
160m high 5.66
80m low 4.395.87
80m high 4.035.66
40m low 2.384.395.87
40m high 2.184.285.80
20m low -2.384.395.87
20m high -2.284.315.82
17m low --3.625.44
17m high --3.655.44
15m low --3.245.13
15m high --3.145.06
12m low --2.724.695.99
12m high --2.724.695.99
10m low --2.384.395.85
10m high --2.244.225.78
6m low ---2.724.695.99
6m high ---2.484.515.90

Cases With Less Than 6.3 A RMS Maximum Current

I spent a bunch of time playing around with different powdered iron cores to find the smallest ones that met my design criteria.  After finding the ones that did meet my requirements, I tested the next smaller size and in all cases, they failed to meet the temperature rise criteria.  This table is the outcome of this step.  I should also note that I was using 12 AWG wire as the wire input parameter to the program.

The first inductance value is the design target.  But given the AL values (see below) and an integer number of turns, only certain inductance values can be realized.  The second inductance value is the estimated value based on the core properties (AL value).  After these inductors are built and tested, I will list their actual values.

L (nH)CoreAL (nH/N2)TurnsL (nH)I (Arms)f (MHz)P (W)T (deg C)
25T94-172.93266.3301.733
50T94-172.94466.3302.647
100T130-174.051006.3304.749
200T184-178.752106.3307.743
400T184-178.774106.37.33.422
400T184-178.774106.014.355.532
400T184-178.774105.521.457.039
400T184-178.774104.7307.042
800T184-178.7108506.37.36.135
800T184-178.7108504.414.355.231
800T184-178.7108503.718.24.628
800T184-178.7108503.321.54.427
800T184-178.7108502.8304.829
3200T184-178.71416606.046.436
3200T184-178.71416604.47.35.031
3200T184-178.71416602.414.352.618
3200T184-178.72033104.442.320
3200T184-178.72033102.47.33.017

Inductor Design Using 12 AWG Wire

The parameter AL needs an explanation.  The formula for the number of turns from the RF design book is:
\begin{equation}N = 100 \times \sqrt {\frac {L}{A _{L}}}\end{equation}
Where N is the number of turns and L is inductance in micro Henries, N in turns and AL in micro Henries per hundred turns squared.  
Important to note that Amidon publishes its AL values in micro Henries per 100 turns squared while Micrometals publishes them in nano Henries per turns squared.  So, while using the Micrometals data, drop the 100 in the formula and use nano Henries for L.

It is worth mentioning that 2 and 6 material that could potentially be useful in this application have much higher AL values for their larger cores that can support the required power levels.  These higher AL values make it much harder to get close to the desired inductance values with any accuracy.

I built a few of these inductors and the inductance was not anywhere near what I expected.  To simplify the task of experimenting and finding out what is going on, I switched to 22 AWG magnet wire (working with 12 AWG wire is very yard).  The graph below is a plot of the AL value vs. the measured inductance for a T187-17 core which has a specified AL value of 8.7 nH per turns squared.

Toroid AL value vs. Measured Inductance

It is clear from the graph that for smaller inductors (less turns), the wire inductance dominates.  But as the number of turns increase since the AL value changes with the square of the number of turns, we asymptotically approach the specified AL value.  

After my experience with 12 AWG wire (which I had picked when I was going to use air core inductors), I decided to consider a thinner gauge wire since using a toroid allowed me to use less turns.  I experimented with a number of different wire gauges and 18 AWG wire seemed to meet the power loss requirements well.  I built a number of inductors to the exact number of turns predicted by the formula (and the design tool), tested them and then took off the turns needed to obtain the required inductance.  Below is a plot of designed turns vs. the experimental turns.


Measured Turns vs. Calculated Turns

Armed with this data, I was ready to run through the design process.  In the first iteration, I used the same turns as the table with the 12 AWG wire and recorded the result.  But then I reduced the turns ratio according to the above graph equation as follows:

L (nH)CoreDesigned TurnsMeasured Turns
25T94-1731
50T94-1742
100T130-1753
200T184-1753
400T184-1774
800T184-17108
1600T184-171412
3200T184-172018

Specific Inductance Calculated and Measured Turns From the Graph

With these new number of turns, I calculated the power loss in the core.  What is significant in this table is the number of turns (taken from the above table) and the power dissipation (P) and temperature rise (T).  I have intentionally left off the 25 nH inductor from this list in the hope of using the PCB trace inductance in is place.

L(nH)CoreAL (nH/N2)TurnsL (nH)I (Arms)f (MHz)P (W)T (deg C)
50T94-172.91466.3300.718
100T130-174.021006.3301.536
200T184-178.732106.3305.335
400T184-178.754106.37.33.625
400T184-178.754106.014.355.234
400T184-178.754105.521.456.038
400T184-178.754104.7305.938
800T184-178.788506.37.36.642
800T184-178.788504.414.355.133
800T184-178.788503.718.24.429
800T184-178.788503.321.54.027
800T184-178.788502.8304.028
1600T184-178.7121660647.044
1600T184-178.71216604.47.35.435
1600T184-178.71216602.414.352.619
3200T184-178.71833104.446.641
3200T184-178.71833102.47.32.820

Power Dissipation and Temperature Rise for the Designed Inductors

What remains is the building and testing of the inductors.  Here is the test data (I have intentionally left out the 25 nH inductor in the hopes of using the PCB trace inductance in its place):

L (nH)Turns3 MHz5 MHz7 MHz14 MHz30 MHz
50144.644.844.9
1002107100100101
2003239240246
4005414420440
8008805831929
1600121568157615901670
320018317032113275

Inductance Value Measured at Various Frequencies

It is worth noting that the apparent inductance of the toroids increasing with frequency is the effect of the stray parallel capacitance of the wires.  It is not very noticeable with fewer turns and as the number of turns increases so does the stray capacitance.

 And finally, here is a picture of the inductors: