Part 2 of 6 · Design a 2.45 GHz hairpin band-pass filter

Published Nov 28, 2026 · Last updated Nov 28, 2026 · 10 min · IndieRF

Hairpin Filter Coupling Coefficient: 1.05 mm Gap, Qe 21.7

The 3-pole, 0.1 dB hairpin filter at 2.44 GHz on 30 mil RO4350B needs a coupling coefficient of 0.0437 and an external Q of 21.7. Planar EM puts them at a 1.05 mm gap between hairpins and a tap 2.75 mm above the bar, on 1.6 mm lines with 16.4 mm arms.

Three hairpins of 1.6 mm line with 16.4 mm arms, 1.05 mm apart and fed by taps 2.75 mm above the bar, are the first cut of Part 1's 2.4414 GHz, 116 MHz filter on 30 mil RO4350B. The g-values ask for a coupling coefficient of 0.0437 between neighbouring hairpins and an external Q of 21.7 at each port, and Planar EM reads 0.0441 and 21.7 for those dimensions. The textbook coupled-line estimate would have put the gap at 1.45 mm and built a filter about a third too narrow.

Part 1 picked the order, bandwidth and board. Part 2 turns them into coupled hairpins and measures the coupling in Planar EM; Part 3 optimizes the whole filter in the schematic, Part 4 lays it out, Part 5 puts the EM result back into the schematic, and Part 6 builds it. Each EM step opens from its link, and you read two or three numbers off the result.

Two numbers describe the whole filter

A coupled-resonator filter is a row of resonators, all tuned to the centre frequency f0, that hand the signal along by coupling to their neighbours. Two numbers set its response. The coupling coefficient k is how hard one resonator pulls on the next, and it sets the bandwidth. The external Q (Qe) is how hard the source or the load damps an end resonator, and it sets how much ripple the filter keeps. Both come straight from Part 1's g-values and its fractional bandwidth, FBW = 0.047514:

k12=k23=FBWg1g2=0.0475141.03156×1.14740=0.0437Qe=g0g1FBW=1.031560.047514=21.7k_{12} = k_{23} = \frac{\text{FBW}}{\sqrt{g_1 g_2}} = \frac{0.047514}{\sqrt{1.03156 \times 1.14740}} = 0.0437 \qquad Q_e = \frac{g_0 g_1}{\text{FBW}} = \frac{1.03156}{0.047514} = 21.7

These are Hong and Lancaster's design equations, with g0 = 1. The filter is symmetric, so both couplings match and so do both ends. The two lines are hand arithmetic, because Insert Filter stops at the lumped prototype.

A half-wave line, folded into a U

Each resonator is a microstrip line half a guided wavelength long, open at both ends. On 30 mil RO4350B the 50 Ω line from Part 1 is 1.620 mm wide with εeff 2.837 at 2.4414 GHz, so

λg2=c2f0εeff=299.79 mm/ns2×2.4414 GHz×1.6843=36.45 mm\frac{\lambda_g}{2} = \frac{c}{2 f_0 \sqrt{\varepsilon_\text{eff}}} = \frac{299.79\ \text{mm/ns}}{2 \times 2.4414\ \text{GHz} \times 1.6843} = 36.45\ \text{mm}

Folding that line into a U halves its height. Each hairpin is 5.6 mm wide and 18.0 mm tall, three of them fit in 18.9 by 18.0 mm, and the arms of neighbouring hairpins run side by side, which is where they couple.

Three choices set the U:

  • Line width 1.6 mm, a whole number of Planar EM's 50 µm cells and 0.02 mm under the 50 Ω width. The resonator keeps the Qu of 151 that Part 1 budgeted for, and the 50 Ω feed joins it with no step in width.
  • Arm gap 2.4 mm, 1.5 times the width, so a hairpin's own two arms couple only weakly to each other.
  • First arm length 15.4 mm, from setting the U's centre line to λg/2: two arms, two half-widths and the bar, (36.45 − 4.0 − 1.6) / 2 = 15.4 mm.

A 36.45 mm straight half-wave line above the same line folded into a hairpin: 1.60 mm lines, a 2.40 mm arm gap, 16.40 mm arms, 18.0 mm tall

One hairpin in Planar EM sets the arm length

A 16.4 mm arm resonates at 2.4463 GHz, 4.9 MHz (0.2%) above f0. The straight-line estimate of 15.4 mm came in at 2.5854 GHz, 5.9% high: the U resonates as if its 38.4 mm centre line were 36.4 mm long, because the current cuts the two inside corners. I keep 16.4 mm because it sits on the editor's 0.1 mm snap, and Part 3 tunes the last 5 MHz.

ArmResonanceAgainst 2.4414 GHz
15.4 mm2.5854 GHz+5.9%
16.5 mm2.4332 GHz−8.2 MHz
16.4 mm2.4463 GHz+4.9 MHz

Each link feeds one hairpin weakly from both walls, through lines that stop 1.0 mm short of its arms, so S21 shows one narrow spike. The links carry the board lossless (tanδ 0 and perfect conductors) so the resonance is a clean pole; Part 4 puts the loss back. Planar EM has no hairpin part in Insert yet, so each U is three rectangles, already drawn in the link.

Open the Analysis tab and press Run: 1,687 unknowns, about 25 s on a four-core desktop. The warning under Run names the fit's resonance, "The fit puts a resonance at 2.4463 GHz", and Results shows the S21 spike there.

One lossless hairpin, 16.4 mm arms: Run (the 25 s solve is cut), the resonance at 2.4463 GHz, then the S21 spike. The U is 6% shorter than it looks. Open the 16.4 mm hairpin in Planar EM

Two hairpins, two peaks: the coupling

A 1.05 mm gap between hairpins gives k = 0.0441, 1.0% above the 0.0437 target.

Put a second hairpin beside the first, flipped open end down, so the facing arms run side by side. Two identical resonators coupled together split into two resonances, one below f0 and one above, and the stronger the coupling, the further apart they land:

k=f22−f12f22+f12k = \frac{f_2^2 - f_1^2}{f_2^2 + f_1^2}

The 1.05 mm pair solves in about 90 s on a four-core desktop; at 2,518 unknowns, Run asks first. Planar EM has no k readout either. The two warnings under Run name the fit's resonances, 2.3934 and 2.5014 GHz, and Results shows them as two S21 peaks. Then k = (2.5014² − 2.3934²) / (2.5014² + 2.3934²) = 0.5286 / 11.985 = 0.0441.

Gapf1f2k
0.60 mm2.35547 GHz2.54061 GHz0.07552
0.90 mm2.38368 GHz2.51159 GHz0.05222
1.05 mm2.39342 GHz2.50138 GHz0.04409
1.20 mm2.40123 GHz2.49314 GHz0.03754
1.50 mm2.41282 GHz2.48092 GHz0.02783
1.80 mm2.42078 GHz2.47257 GHz0.02116

Near 1 mm, k falls about 10% for every 0.1 mm of gap. Interpolating puts 0.0437 at 1.059 mm, and 1.05 mm is the nearest point on the 50 µm grid. The fab's ±0.02 mm etch on the gap moves k by ±2.2%, about ±2.6 MHz of bandwidth, small next to the ±15 MHz that εr moves the whole filter in Part 1. At every gap √(f1 f2) stays within 0.6 MHz of the single hairpin's 2.4463 GHz, so the split is all coupling.

|S21| of the two weakly fed hairpins at six gaps from 0.6 to 1.8 mm: two peaks either side of 2.446 GHz that close in as the gap opens

The closed form is the reason for the EM step. Trace Studio's edge-coupled pair at 1.05 mm gives Z0e 55.0 Ω and Z0o 45.4 Ω, and the quarter-wave coupled-line estimate, k ≈ (2/π)(Z0e − Z0o)/(Z0e + Z0o), turns that into 0.0612. EM reads 72% of it, and 62% to 77% across the six gaps, because the arms are 81° long and offset from each other by a line width.

Two hairpins 1.05 mm apart: Run (the 90 s solve is cut), resonances at 2.3934 and 2.5014 GHz, so k = 0.0441. Open the 1.05 mm pair in Planar EM

The tap sets the external Q

A tap centred 2.75 mm above the outer edge of the bar gives Qe = 21.66, 0.2% under the 21.71 target.

The 50 Ω feed joins the end hairpin's outer arm. A half-wave resonator has its voltage null halfway along the line, here in the bar, and the voltage rises toward the open ends. A tap near the bar sees a low impedance and loads the resonator lightly, so Qe is high; move the tap up the arm and the loading grows. Over 1.6 to 4.8 mm, Qe falls from 38.3 to 9.1.

One run gives Qe through the reflection's group delay, which peaks at τ = 4Qe/ω0 at resonance, so Qe = π f0 τ / 2. The 2.75 mm tap is one port and 1,470 unknowns, about 14 s. The board is lossless, so |S11| sits at 0 dB everywhere, and the resonance shows on the Phase plot as S11 turning through a full circle. Planar EM has no group delay: press Download .s1p on Results, open the file in the S-parameter Viewer, set the trace to Group delay and point at the peak: 5.646 ns at 2.46 GHz. The 4 mm feed line adds its own round trip, 2 × 4 mm × 1.6843 / c = 0.045 ns, so the resonator's delay is 5.60 ns and Qe = π × 2.461 GHz × 5.60 ns / 2 = 21.7.

Tapf0Qe from τClosed form
1.60 mm2.4571 GHz38.3127.16
2.40 mm2.4602 GHz25.6616.60
2.75 mm2.4609 GHz21.6613.88
2.80 mm2.4609 GHz21.0613.55
3.20 mm2.4611 GHz17.4311.29
4.00 mm2.4591 GHz12.318.26
4.80 mm2.4538 GHz9.106.37

Interpolating puts 21.71 at 2.745 mm, and 2.75 mm is on the grid. The closed form for a tapped half-wave line, Qe = (π/2)(Z0/Zr) / sin²(πt/L) with t the tap's distance from the voltage null along the centre line, reads 29% to 36% low at every tap and would have put the tap near 1.9 mm. The tap sits within 2 mm of the bend, where a one-dimensional line model has to guess which way round the corner the current flows.

The tap also pulls the resonance up, to 2.4538 to 2.4611 GHz against the untapped 2.4463 GHz, so the two end hairpins will want a slightly longer arm than the middle one. Part 3 sets it.

Qe against tap height for the hairpin: Planar EM from 38.3 at 1.6 mm to 9.1 at 4.8 mm, the closed form about a third lower, and the 21.71 target line

The 2.75 mm tap: Run (the 14 s solve is cut), the S11 phase turning at resonance, then the downloaded .s1p in the S-parameter Viewer: group delay peaks at 5.646 ns, so Qe = 21.7. Open the 2.75 mm tap in Planar EM

The first cut, and the fab check

DimensionValueFrom
BoardRO4350B 0.762 mm, 1 oz, OSP, mask cleared over the filterPart 1
Line width, resonators and taps1.60 mmthe 50 Ω line
Gap between a hairpin's own arms2.40 mm1.5 W
Arm length, bar's inner edge to open end16.40 mmone hairpin in EM
One hairpin, outside5.60 by 18.00 mm
Gap, hairpin 1 to 2 and 2 to 31.05 mmk from the pair
Tap centre above the bar's outer edge, hairpins 1 and 32.75 mmQe from the tap
OrientationU, ∩, U, taps on the outer arms of 1 and 3
Filter footprint, without feed lines18.9 by 18.0 mm

The first cut: three hairpins, U, inverted U, U, with 1.05 mm gaps, 1.60 mm lines, a 2.40 mm arm gap and 50 Ω taps 2.75 mm above the bars of the outer two; 18.9 by 18.0 mm

The smallest feature is the 1.05 mm gap, ten times the 0.10 mm minimum trace and space JLCPCB's capabilities page prints for 2-layer boards in 1 oz copper. Every dimension is a whole number of 50 µm cells, so Part 4 draws it in Planar EM with no rounding.

Each run above saw one effect at a time, so the first cut still carries four errors: the end hairpins sit 8 to 15 MHz high from their taps, every hairpin sits 4.9 MHz high from the arm snap, the middle hairpin is loaded by both neighbours at once, and each hairpin couples weakly to its second neighbour. Part 3 builds the whole filter in the schematic as a circuit of coupled lines and bends from these dimensions, and lets the optimizer move the arms, gaps and taps together.

References

  • J.-S. Hong and M. J. Lancaster, Microstrip Filters for RF/Microwave Applications, Wiley, 2001: k and Qe from the g-values, k from split resonances, Qe from group delay.
  • G. Matthaei, L. Young and E. M. T. Jones, Microwave Filters, Impedance-Matching Networks, and Coupling Structures, Artech House, 1980: the tapped half-wave resonator.
  • D. M. Pozar, Microwave Engineering, 4th ed., Wiley, 2012: coupled-line band-pass filters.
  • JLCPCB, PCB Manufacturing Capabilities: minimum trace and space, 1- and 2-layer boards.

Questions? Contact

Was this helpful?

Discussion

No comments yet. Start the thread with a measurement, a correction, or a worked example.