The Smith Chart and Stub Matching
Every RF engineer reads the same circular chart. A vector network analyser draws its measurements on it, antenna datasheets show impedance on it, and matching networks are designed by tracing short arcs across it. The Smith chart is nothing more than the complex reflection-coefficient plane with a grid of impedance values printed on it, but that grid turns the awkward formula for the input impedance of a line (Input Impedance, Stubs and the Quarter-Wave Transformer) into a rotation, and parallel elements into a reflection through the centre. This lesson builds the chart from , reads impedances and admittances from it, and designs a single-stub match three ways: on the chart, with closed-form formulas, and with scikit-rf.
From reflection coefficient to chart
On a line of characteristic impedance , normalise the load, . Its reflection coefficient is
Every passive load () has , so all of them fit inside the unit circle of the plane. Plotting where constant and constant land gives two families of circles:
- Constant-resistance circles, centred on the real axis at with radius , all touching at . The circle passes through the centre.
- Constant-reactance arcs, centred at with radius : inductive () in the upper half, capacitive below.
Landmarks: the centre is the match (, ); the left end of the real axis a short circuit; the right end an open circuit; the outer rim pure reactances.
Moving along the line is a rotation
Moving a distance from the load towards the generator multiplies by (Reflection Coefficient and VSWR): the point keeps its distance from the centre (so the VSWR stays the same) and turns clockwise, one full turn per half wavelength. Charts carry a "wavelengths toward generator" scale around the rim for exactly this reason. The VSWR circle crosses the positive real axis at , where the voltage is maximum, and the negative real axis at , the voltage minimum.
Admittances. Since corresponds to , the normalised admittance of any point is read at the diametrically opposite point. Engineers either rotate by or use an admittance chart (the impedance chart turned through ). Shunt elements add admittances, so shunt matching is done on the admittance chart.
Single-stub matching
A load that is not can be matched with two pieces of the same line: a length between load and stub, and a shunt stub of length , shorted (easy to make in coax and stripline) or open (easy in microstrip). The recipe:
- Rotate the load's admittance towards the generator until it meets the circle: there . This fixes ; there are two crossings per half wavelength.
- Choose the stub to add , landing on the centre. A short stub has ; an open stub .
The chart is the intuition; closed-form expressions give the numbers. With and , the condition gives (for )
then (plus if negative) and, for a short stub, , reduced to between and .
Worked example: match 100 + j50 Ohm at 1 GHz
Given: on a air line at ().
Find: and the VSWR; and the length of a shorted stub; the bandwidth with .
Solve:
The second solution () gives with , needing a longer stub of . Prefer the shorter total length: it is less frequency-sensitive.
Check: on the chart, rotates through clockwise to , which lies on the circle (distance from ) and corresponds to . A shorted stub has . The sum is : matched.
In Python with scikit-rf
skrf builds the stub, the line and the load as networks, cascades them with **, and plots on a Smith chart. Give lines their physical length (here in metres) so the electrical length scales with frequency, and give the medium its propagation constant explicitly.
import numpy as np
import matplotlib.pyplot as plt
import skrf as rf
Z0, ZL, F0 = 50.0, 100 + 50j, 1e9
RL, XL = ZL.real, ZL.imag
gl = (ZL - Z0) / (ZL + Z0)
print(f"load: Gamma = {abs(gl):.4f} at {np.degrees(np.angle(gl)):.2f} deg, VSWR = {(1+abs(gl))/(1-abs(gl)):.3f}")
# hand formulas: distance d where Re(Y) = 1/Z0, then a short stub cancelling the susceptance
for sign in (+1, -1):
t = (XL + sign * np.sqrt(RL * ((Z0 - RL)**2 + XL**2) / Z0)) / (RL - Z0)
d_wl = (np.arctan(t) / (2 * np.pi)) % 0.5
b = (RL**2 * t - (Z0 - XL * t) * (XL + Z0 * t)) / (Z0 * (RL**2 + (XL + Z0 * t)**2)) * Z0
l_wl = (np.arctan(1 / b) / (2 * np.pi)) % 0.5 # short stub: -j cot(beta l) = -j b
print(f"solution: d = {d_wl:.4f} lambda, y = 1 {b:+.4f}j, short stub l = {l_wl:.4f} lambda")
if sign == +1:
d_use, l_use = d_wl, l_wl
# build the matched network in scikit-rf and sweep it
# physical lengths (air line, lambda = 0.2998 m at 1 GHz), so the electrical lengths scale with f
lam = 2.998e8 / F0
freq = rf.Frequency(0.6, 1.4, 801, unit="GHz")
air = rf.media.DefinedGammaZ0(frequency=freq, z0=Z0, gamma=1j * freq.w / 2.998e8) # lossless 50 Ohm air line
load = air.load(gl, name="load")
matched = air.shunt_delay_short(l_use * lam, unit="m") ** air.line(d_use * lam, unit="m") ** load
s11 = np.abs(matched.s[:, 0, 0])
print(f"at 1 GHz: d = {d_use*lam*1e3:.1f} mm, stub = {l_use*lam*1e3:.1f} mm")
for f_ghz in [0.8, 0.9, 1.0, 1.1, 1.2]:
k = int(np.argmin(np.abs(freq.f - f_ghz * 1e9)))
print(f" {f_ghz:.1f} GHz: |S11| = {s11[k]:.4f}" if s11[k] > 1e-6 else f" {f_ghz:.1f} GHz: |S11| < 1e-6")
ok = freq.f[s11 <= 0.1]
print(f"|S11| <= 0.1 from {ok.min()/1e9:.3f} to {ok.max()/1e9:.3f} GHz ({(ok.max()-ok.min())/F0*100:.1f} %)")
plt.figure(figsize=(4.6, 4.6))
load.plot_s_smith(label="load (constant)", marker="o")
matched.plot_s_smith(label="matched, 0.6 to 1.4 GHz")
plt.title("Single-stub match of 100 + j50 Ohm")
plt.show()load: Gamma = 0.4472 at 26.57 deg, VSWR = 2.618
solution: d = 0.1988 lambda, y = 1 +1.0000j, short stub l = 0.1250 lambda
solution: d = 0.3750 lambda, y = 1 -1.0000j, short stub l = 0.3750 lambda
at 1 GHz: d = 59.6 mm, stub = 37.5 mm
0.8 GHz: |S11| = 0.4170
0.9 GHz: |S11| = 0.2034
1.0 GHz: |S11| < 1e-6
1.1 GHz: |S11| = 0.1682
1.2 GHz: |S11| = 0.2945
|S11| <= 0.1 from 0.950 to 1.056 GHz (10.6 %)
The script reproduces the hand formulas, then shows the price of a single-stub match: (return loss ) only from to , about , much narrower than the quarter-wave transformer of the mini project, because this load is further from and is complex. On the chart, the swept curve is a small loop through the centre: the match is perfect at one frequency only.
Guided lab: match an antenna with a VNA
Hand calculation. Measure or assume , then compute and as above for your cable's velocity factor ( in the cable ).
Simulation. The script with your and a medium with .
What you would measure. A hobby vector network analyser (a few milliwatts of output) is enough. Calibrate it at the end of the cable with open, short and load standards, then connect a resistor in series with a small inductor as the load (or a short wire antenna). Read on the Smith display at your frequency, cut a coax T-piece stub to the computed length (shorted with a solder blob or a shorting cap) and place it at the computed distance. Expect the trace to pass close to the centre at the design frequency: a return loss of or better is typical for a first attempt, limited by the T-piece's own length (a few centimetres of extra line at ) and connector repeatability. Trim the stub a few millimetres at a time and watch the minimum move.
Hazards and safe setup. Milliwatt test signals: no RF exposure concern. Never connect a transmitter or power amplifier to a VNA port, and protect the ports from static.
Pitfalls
- Clockwise or counter-clockwise? Towards the generator is clockwise; towards the load counter-clockwise.
- Impedance or admittance chart? Shunt elements add on the admittance chart; series elements on the impedance chart. Rotate by when switching.
- Forgetting the velocity factor. Stub and line lengths are in wavelengths in the line: multiply by , not .
- Ignoring the junction. At gigahertz frequencies the T-junction adds its own length and reactance; designs are tuned on the bench.
Practice
- Find and the VSWR for on a line.
- A load sits at . Where, in wavelengths from the load, is the first voltage minimum?
- Design the open-stub version of the worked example (first solution).
Answer
- : , VSWR .
- A real positive is a voltage maximum (). The minimum is half a turn of the chart ( of ) later: from the load.
- The stub must add : gives , at , at the same .
Test yourself
Where does a short circuit appear on the Smith chart?
- at the centre
- at the right end of the real axis
- at the left end of the real axis
- at the top of the rim
Moving a quarter wavelength towards the generator moves a point on the Smith chart through…
- clockwise
- clockwise
- counter-clockwise
To match to with a shorted shunt stub, the first solution puts the stub at . The stub length is…
Why are shunt stubs designed on the admittance chart?
- admittance charts are more accurate
- parallel elements add their admittances
- stubs have no impedance
- the impedance chart cannot show reactances