C1052 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C10 · Lesson 52 · Project

Designing a stub match and checking its bandwidth in Python

A small 2.4 GHz antenna on a sensor board, measured on a network analyzer, shows 35 − j11.5 Ω at the Wi-Fi band's center instead of 50 Ω: it's resonant a little high and its radiation resistance is low. The radio would reflect about 5% of its power at the center of the band and far more toward its edges, and lose range. The fix is a single shorted stub on the 50 Ω feed line, placed and sized to cancel the mismatch. In this project you'll write the three pieces an RF engineer would: the line's input impedance, a stub designer that works for any load, and a frequency sweep that shows how wide the match is, because a match that's perfect at one frequency and poor across the band isn't good enough.

  • The curve on the Smith chart is the antenna's impedance from 2.2 to 2.7 GHz, modeled as a series RLC: resistance R, quality factor Q, resonant at fr. The point is the impedance at the design frequency f0, with its VSWR circle.
  • At resonance the curve crosses the horizontal axis at R. Raise Q and the curve sweeps faster with frequency: the antenna is narrower-band, and any match will be too.
  • The project designs a stub match at f0, which moves that point to the center, then sweeps frequency to find where the return loss stays above 10 dB.

Predict

The antenna presents 35 − j11.5 Ω at 2.4 GHz on a 50 Ω feed. What return loss does the radio see without a match?

Name it

The pieces

  • Input impedance of a lossless line of electrical length βl: Zin=Z0(ZL+jZ0tan⁡βl)/(Z0+jZLtan⁡βl).
  • Stub match for a complex load ZL=RL+jXL (shunt shorted stub): with t=tan⁡βd, the positions where the admittance's real part is Y0 satisfy
t=XL±RL[(Z0−RL)2+XL2]/Z0RL−Z0

(or t=−XL/2Z0 if RL=Z0), so d/λ=tan−1⁡(t)/2π, plus 1/2 if negative. At that point the admittance is Y0+jB; a shorted stub has admittance −jY0cot⁡βls, so canceling B needs ls/λ=tan−1⁡(Y0/B)/2π (plus 1/2 if negative). Any method that lands on the center, such as scanning d for Re Y = Y0, works too.

  • Frequency sweep: the line lengths are fixed in meters, so their electrical lengths scale with frequency, d(f)=d0f/f0. The antenna model is Z(f)=R+jQR(f/fr−fr/f).

Bandwidth

Sweep f, compute the total impedance the radio sees, and find the continuous range around f0 where the return loss stays at or above 10 dB (|Γ| ≤ 0.316). That range is the matched bandwidth, and comparing it with the band the radio needs (2.400 to 2.4835 GHz for Wi-Fi) is the pass-or-fail test.

Worked example

Design a stub match for 100 Ω on a 50 Ω line by the formula.

Show the solution
  1. The value of t. With RL=100 and XL=0, t=100×2500/5050=1.414
  2. Stub position. d=tan−1⁡(1.414)2π=0.152λ
  3. Stub length. There Y=(1+j0.707)/50, so ls=tan−1⁡(1/0.707)2π=0.152λ as in lesson 16.

Answer a 0.152λ shorted stub placed 0.152λ from the load.

Worked example

Why does a higher-Q antenna give a narrower matched bandwidth?

Show the solution
  1. How the reactance moves. Near resonance the antenna's reactance changes by QR(ffr−frf)≈2QRΔffr so a higher Q swings the impedance across the Smith chart faster with frequency.
  2. What the stub can fix. The stub match only corrects one point exactly, so the impedance leaves the 10 dB circle sooner.
  3. The scaling. Roughly, the fractional bandwidth falls as 1/Q.

Answer a higher Q makes the impedance move away from the single matched point faster, so the matched bandwidth shrinks roughly as 1/Q.

Check

An antenna measures 35 + j(−30) Ω on a 50 Ω feed. What is its return loss before matching?

Check

A series-RLC antenna model has R = 35 Ω, Q = 4, resonant at 2.5 GHz. What is its reactance at 2.4 GHz?

Write units the way you normally would: 1.5 Ω, 1500 mΩ and 0.0015 kΩ are the same answer.

Check

Write zin(zl, z0, bl): the complex input impedance of a lossless line of characteristic impedance z0 and electrical length bl (radians) ending in the complex load zl.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write stub_match(zl, z0): return (d, ls), the distance from the load to a shunt shorted stub and the stub's length, both in wavelengths between 0 and 0.5, that match the complex load zl to z0.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Check

Write matched_band(R, Q, fr, f0, z0=50.0): model the antenna as Z(f)=R+jQR(f/fr−fr/f), design a stub match at f0 (use your stub_match, or the solution's method), then sweep f from 0.8 f0 to 1.2 f0 in 1 MHz steps, scaling the electrical lengths by f/f0, and return (f_low, f_high): the edges of the continuous range around f0 where the return loss is at least 10 dB.

Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.

Explain why

Why is a single-stub match narrowband, even when it's perfect at the design frequency?

Practice

Keep practicing

5 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.