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 . The point is the impedance at the design frequency , 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 , 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?
, a return loss of 13.1 dB: about 5% of the power reflected. Acceptable, but the antenna's own Q means that away from 2.4 GHz it gets much worse; the project's bandwidth sweep makes that precise.
Name it
The pieces
- Input impedance of a lossless line of electrical length βl: .
- Stub match for a complex load (shunt shorted stub): with , the positions where the admittance's real part is satisfy
(or if ), so , plus 1/2 if negative. At that point the admittance is ; a shorted stub has admittance , so canceling B needs (plus 1/2 if negative). Any method that lands on the center, such as scanning d for Re Y = , works too.
- Frequency sweep: the line lengths are fixed in meters, so their electrical lengths scale with frequency, . The antenna model is .
Bandwidth
Sweep f, compute the total impedance the radio sees, and find the continuous range around 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
- The value of t. With and ,
- Stub position.
- Stub length. There , so 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
- How the reactance moves. Near resonance the antenna's reactance changes by so a higher Q swings the impedance across the Smith chart faster with frequency.
- What the stub can fix. The stub match only corrects one point exactly, so the impedance leaves the 10 dB circle sooner.
- 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 , 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?
The match depends on two electrical lengths, the stub's position and its length, which are fixed in meters, so their electrical lengths change in proportion to frequency. Away from the design frequency, the line no longer rotates the load to exactly the g = 1 circle, and the stub no longer supplies exactly the right susceptance. On top of that, the antenna's own impedance moves with frequency, faster for higher Q. The errors grow on both sides of the design point, so the region of good return loss is a band whose width shrinks as the antenna's Q grows and as the stub and line get electrically longer.
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.