Input Impedance, Stubs and the Quarter-Wave Transformer
Connect a resistor to the end of a cable and measure at the other end: at some frequencies you read , at others , and in between complex values with both inductive and capacitive reactance. A length of line transforms impedance. That is a nuisance when you want to know what a load really is, and a tool when you want to build one: a shorted piece of cable is an inductor or a capacitor, a quarter-wave piece is an impedance inverter, and both are standard parts of RF filters and matching networks. This lesson derives the input impedance of a loaded line and its four most useful special cases.
The input-impedance formula
At a distance from the load the voltage and current are the forward and backward waves of Reflection and VSWR: and . Their ratio at , with substituted, is the input impedance of a lossless line:
(For a lossy line replace by .) Only the electrical length matters, and repeats every half wavelength.
Special cases
| Line | Use | |
|---|---|---|
| matched, | at any length | the goal of matching |
| shorted, | an inductor for , a parallel resonator at | |
| open, | a capacitor for , a series resonator at | |
| half wave, | "transparent" repeat, e.g. a radome of half-wave thickness | |
| quarter wave, | impedance inverter and quarter-wave transformer |
Two consequences are worth remembering. A short at the end of a line looks like an open circuit at its input, so a quarter-wave shorted stub can hold up a line (or carry DC to an amplifier) without loading the RF signal at that frequency. And since , two measurements of a cable (far end open, then shorted) give at any frequency and any length.
Quarter-wave transformer. To match a resistive load to a line , insert a section of impedance : it presents . It works exactly at one frequency and approximately over a band; the Mini Project designs one in square coax and measures its bandwidth. For a complex load, first move along the line to a voltage minimum or maximum, where the impedance is real ( or ), and transform from there. Anti-reflection coatings use the same idea for plane waves (Normal Incidence).
Worked example
Given: a coax with velocity factor , at ().
Find: (a) the length of shorted stub that gives and the inductance it replaces; (b) the length of open stub that gives and its equivalent capacitance; (c) the input impedance of a length terminated in .
Solve:
Check: in (c) , and has magnitude : a lossless line changes the phase of , never its magnitude. A stub is an inductor or capacitor only near its design frequency; at stub (a) becomes a quarter wave and an open circuit.
In Python
The formula as a function, the stub reactances against frequency, and the same input impedances from skrf network objects:
import numpy as np
import matplotlib.pyplot as plt
import skrf as rf
Z0, VF = 50.0, 0.667
V = VF * 2.998e8
def zin(zl, length, f, z0=Z0):
t = np.tan(2 * np.pi * f / V * length)
if np.isinf(zl):
return -1j * z0 / t
return z0 * (zl + 1j * z0 * t) / (z0 + 1j * zl * t)
lam = V / 100e6
print(f"lambda at 100 MHz = {lam:.4f} m")
short_len = lam / 8
open_len = np.arctan(2) / (2 * np.pi) * lam
print(f"shorted stub {short_len*100:.2f} cm: Zin = {zin(0, short_len, 100e6).imag:+.2f}j Ohm")
print(f"open stub {open_len*100:.2f} cm: Zin = {zin(np.inf, open_len, 100e6).imag:+.2f}j Ohm")
z = zin(100, lam / 8, 100e6)
print(f"100 Ohm load, lambda/8: Zin = {z.real:.2f}{z.imag:+.2f}j Ohm")
zq = zin(100, lam / 4, 100e6)
print(f"100 Ohm load, lambda/4: Zin = {zq.real:.2f}{round(zq.imag, 2) + 0.0:+.2f}j Ohm (Z0^2/ZL = {Z0**2/100:.2f})")
zoc, zsc = zin(np.inf, 0.37, 100e6), zin(0, 0.37, 100e6)
print(f"37 cm cable: Zoc = {zoc.imag:+.2f}j, Zsc = {zsc.imag:+.2f}j, sqrt(Zoc*Zsc) = {np.sqrt(zoc*zsc).real:.2f} Ohm")
# skrf: the same lines as networks, swept 50..450 MHz
freq = rf.Frequency(50, 450, 401, unit="MHz")
cable = rf.media.DefinedGammaZ0(frequency=freq, z0=Z0, gamma=1j * 2 * np.pi * freq.f / V)
stub_s = cable.line(short_len, unit="m") ** cable.short()
stub_o = cable.line(open_len, unit="m") ** cable.open()
k = int(np.argmin(np.abs(freq.f - 100e6)))
print(f"skrf at {freq.f[k]/1e6:.0f} MHz: short stub {stub_s.z[k,0,0].imag:+.2f}j, open stub {stub_o.z[k,0,0].imag:+.2f}j Ohm")
plt.figure(figsize=(6, 3))
for net, name in [(stub_s, "shorted, 25.0 cm"), (stub_o, "open, 35.2 cm")]:
x = net.z[:, 0, 0].imag
plt.plot(freq.f / 1e6, np.where(np.abs(x) < 300, x, np.nan), label=name) # gaps at resonances
plt.axhline(0, c="grey", lw=0.8)
plt.xlabel("frequency (MHz)"); plt.ylabel("input reactance (Ohm)")
plt.legend(); plt.tight_layout()
plt.show()lambda at 100 MHz = 1.9997 m
shorted stub 25.00 cm: Zin = +50.00j Ohm
open stub 35.24 cm: Zin = -25.00j Ohm
100 Ohm load, lambda/8: Zin = 40.00-30.00j Ohm
100 Ohm load, lambda/4: Zin = 25.00+0.00j Ohm (Z0^2/ZL = 25.00)
37 cm cable: Zoc = -21.63j, Zsc = +115.60j, sqrt(Zoc*Zsc) = 50.00 Ohm
skrf at 100 MHz: short stub +50.00j, open stub -25.00j Ohm
The plot shows why stubs are narrow-band parts: the shorted stub's reactance rises like an inductor's only up to about , shoots to infinity at (a quarter wave) and turns capacitive; the open stub resonates (zero reactance) at , where it is a quarter wave long.
Cross-check in SPICE
Three lines (one-way delay at ), shorted, open and loaded with , each driven by a AC current source so that the input voltage is the input impedance. resistors give every node a DC path (ngspice needs one); at they add only microohms of resistance:
cat > zin.cir <<'EOF'
* input impedance of lambda/8 lines (TD = 1.25 ns at 100 MHz), Z0 = 50 Ohm
* a 1 A AC current source drives each line, so v(in) is Zin; 1 GOhm keeps DC defined
I1 0 s AC 1
T1 s 0 s_end 0 Z0=50 TD=1.25n
RSH s_end 0 1u
I2 0 o AC 1
T2 o 0 o_end 0 Z0=50 TD=1.25n
I3 0 r AC 1
T3 r 0 r_end 0 Z0=50 TD=1.25n
RL r_end 0 100
RB1 s 0 1g
RB2 o 0 1g
RB3 o_end 0 1g
RB4 r 0 1g
.control
ac lin 1 100meg 100meg
print real(v(s)) imag(v(s)) real(v(o)) imag(v(o)) real(v(r)) imag(v(r))
let z0 = sqrt(v(s) * v(o))
print z0
ac lin 4 100meg 400meg
print real(v(s)) imag(v(s))
.endc
.end
EOF
ngspice -b zin.cir 2>&1 | grep -E '^(real|imag|z0|[0-9])'real(v(s)) = 4.500000e-06
imag(v(s)) = 5.000000e+01
real(v(o)) = 7.500000e-06
imag(v(o)) = -5.00000e+01
real(v(r)) = 4.000000e+01
imag(v(r)) = -3.00000e+01
z0 = 5.000000e+01,1.500000e-06
0 1.000000e+08 4.500000e-06 5.000000e+01
1 2.000000e+08 7.142857e+08 6.248198e-01
2 3.000000e+08 4.500000e-06 -5.00000e+01
3 4.000000e+08 1.000000e-06 -6.12323e-15
ngspice reproduces , and , and . The sweep of the shorted line shows the other special cases: at it is a quarter wave and its input looks like an open circuit ( resistive, a value set only by the bias resistor and the simulator's numerics: effectively infinite), at () it is a capacitor of , and at (half a wave) it is a short again.
Guided lab: open and short a cable
Hand calculation. For a coax of length and velocity factor , the open-end reactance is and the shorted one ; the first open-end zero (series resonance) is at , for at .
Simulation. zin() and the skrf sweep with your cable's length and velocity factor.
What you would measure. Connect of coax to a VNA (or an antenna analyser) and sweep to , far end open, then shorted with a good SMA short. Expect resonances at (open: series, impedance near zero; shorted: parallel, very large) and at multiples of , alternating. The measured frequencies give to about (the connectors add a few millimetres of electrical length), and at a frequency away from resonance gives within about . Near the resonances the cable's loss (ignored above) limits how close to zero and infinity the readings get.
Hazards and safe setup. Analyser test signals are milliwatts. Protect the analyser port from static discharge and never connect a cable that may carry DC or transmitter power.
Pitfalls
- Using physical instead of electrical length. uses the wavelength in the cable, , not .
- Forgetting that stubs are narrow-band. A stub that is a inductor at is an open circuit at .
- A quarter-wave transformer needs a real load at its terminals. For a complex load, find the point on the line where the impedance is real first.
- "Shorted" needs a good short. At hundreds of megahertz a short loop of wire is a few nanohenries of inductance, enough to shift a resonance noticeably.
Practice
- Design a quarter-wave transformer to match a resistive load to a line at in a cable with velocity factor . Give and the physical length.
- What does a line of terminated in look like at its input?
- A shorted stub must replace a capacitor at . What electrical length does it need?
Answer
- ; , so the section is long.
- .
- ; , so (). An open stub would be shorter: , .
Test yourself
A shorted lossless line is long. Its input impedance is…
- zero
- infinite (an open circuit)
A quarter-wave transformer matches to . Its characteristic impedance is…
A cable reads open and shorted. Its is…
Moving along a lossless line towards the source, the magnitude of the reflection coefficient…
- grows
- falls
- stays the same while its phase rotates
- becomes zero at