Part 4 of 6 · Design a 2.45 GHz hairpin band-pass filter
Published Nov 29, 2026 · Last updated Nov 29, 2026 · 10 min · IndieRF
Hairpin Filter EM Simulation: 13 MHz Low, 11.3 dB RL
Full-wave EM on 30 mil RO4350B confirms the hairpin circuit's bandwidth and catches its centre: the mapped layout lands 13 MHz low with the middle resonator detuned, so the top of the band misses 15 dB return loss. A 1 to 6 GHz run puts the second passband at 4.46 GHz, 420 MHz under twice the centre.
Drawn on the real board and solved full-wave in Planar EM, Part 3's layout (16.5 mm arms, 1.10 mm gaps, 2.50 mm taps) centres at 2.4286 GHz, 13 MHz under the 2.4414 GHz design, with 11.3 dB worst return loss across 2.400 to 2.4835 GHz where the requirement asks for 15 dB. The bandwidth came out right: 147.3 MHz at 3 dB against the 148.9 MHz the circuit promised. The solve is 4,180 unknowns, 14 minutes on one worker, and a second run from 1 to 6 GHz finds the filter passing again at 4.46 GHz.
Part 1 picked the order, bandwidth and board; Part 2 measured the coupling in Planar EM; Part 3 optimized the circuit and mapped it to a layout. Part 4 draws that layout and solves it, Part 5 puts the EM result back into the schematic and closes the loop, and Part 6 builds it.
The schematic's microstrip line model was corrected on 2026-12-03 (gap 28, engine 0.1.52): tl.mlin now runs 1.3% faster on this 1.6 mm line, so in the linked sheets a single hairpin resonates about 15 MHz higher and the filter's centre sits about 6 MHz higher than the numbers recorded here, which are the dry run's as it ran. The coupled-line model was corrected on 2026-12-04 (gap 51, engine 0.1.53): the tl.mclin pairs between hairpins now run about 1.3% faster, so the linked filters' centres sit a further 10 to 11 MHz higher; a single hairpin, whose own arms the model leaves uncoupled, does not move.
Check the moved tap first: one minute
Part 3 moved the taps from 2.75 to 2.50 mm on an interpolation between two EM runs, 2.40 and 2.75 mm. One tapped hairpin at 2.50 mm says whether the 14-minute run starts from the right place, and it costs 56 s.
The 2.50 mm tap is one Insert hairpin part, W 1.6 mm, arm gap 2.4 mm and arm 16.4 mm, with a 4 mm feed from the wall, on Part 2's lossless board: 1,380 unknowns. Press Run on the Analysis tab, then Download .s1p on Results, open the file in the S-parameter Viewer and set the trace to Group delay. The peak reads 6.382 ns at 2.46 GHz. Take off the feed's 0.045 ns round trip and Qe = π × 2.4604 GHz × 6.337 ns / 2 = 24.5.
The circuit asked for 24.69, so the tap is 0.8% low in Qe, less than one 50 µm step of the tap moves it. The ±90° phase points give 24.94 and a straight line through the 2.40 and 2.75 mm runs gives 24.51, so the interpolation Part 3 leaned on was good to 0.1%. The tap stays at 2.50 mm.
The filter on the real board
The circuit was checked against EM one resonator and one pair at a time. Only the whole filter on the lossy board shows what three resonators, the taps and the box do together, so the board goes in with its loss:
| Item | Value | In Planar EM |
|---|---|---|
| Core | RO4350B 0.762 mm, εr 3.66, tanδ 0.0037 | Stack tab, material "Rogers RO4350B" |
| Copper | 1.572e7 S/m, the 1 oz ED foil's roughness folded in | Stack tab, a custom conductor |
| Metal | zero-thickness sheet, 1.60 mm lines | |
| Box | 27.0 by 26.1 mm, metal lid 8 mm above the board | Analysis tab |
| Mesh | Standard, 50 µm cell, 281,880 box cells, λ/40 | Analysis tab |
| Sweep | adaptive, 2.0 to 4.0 GHz, 2001 points (1 MHz) | 2.20, 2.400 and 3.30 GHz land on points |
Planar EM has no roughness field, so the foil's 3.2 µm RMS goes in through the conductivity: Hammerstad's roughness factor K is 1.921 at 2.4414 GHz, and 5.8e7 / K² = 1.572e7 S/m gives the rough foil's surface resistance at that one frequency.
Copper's skin depth is 66/√f µm with f in MHz, 1.34 µm at 2,441 MHz, so the foil's 3.2 µm teeth are 2.4 skin depths tall and the current climbs every one of them. The rule is for smooth bulk copper; Hammerstad's K stops near 2 once the roughness passes a few skin depths, so this foil already costs nearly all it can, 1.92 times the smooth loss.
The metal is a sheet with no thickness, and that moves the 50 Ω width: Insert's Line by impedance puts 50 Ω at 1.667 mm on this stack, where Trace Studio gives 1.620 mm for the real 35 µm foil. The layout keeps Part 2's 1.6 mm, a whole number of cells.
Three Insert, Hairpin parts make the filter: W 1.6 mm, arm gap 2.4 mm and arm 16.5 mm, opening up, down and up, 1.10 mm apart. Two 1.6 mm feeds run in from the side walls with their centres 2.50 mm above the outer edge of the end bars. The filter is 19.0 by 18.1 mm. Select any arm and the panel shows the part's four fields; an arm or arm-gap edit redraws the whole hairpin as one undo step. Moving the neighbours for a new gap is Part 5's Apply to layout.
The pass 1 layout opens with all of this drawn. On the Analysis tab, Standard reads 4,180 unknowns, and Run asks first because that is over 2,500. The design log's run took 858 s on one worker, about 14 minutes; the level picker estimates about 4 minutes on a four-core desktop. A second warning says the top and bottom walls are 4 mm from the metal, under the 5.41 mm the editor suggests. I keep the box every pass of the loop ran in, so the passes compare like for like.
To see the result without the wait, the pass 1 A/B sheet opens this run's Touchstone file in the schematic beside the circuit. Part 5 starts there.
Pass 1 against the circuit: bandwidth right, centre low
On Results, under the plots, the band-pass readout takes the requirement: type the pass band 2.4 to 2.4835 GHz and the rejection points 2.2, 3.3, 4. With the pass band typed, f0 is its geometric centre, 2.4414 GHz, and the readout gives the Planar EM column; the worst point from 3.30 to 4.0 GHz is the 4 GHz one.
| Number | Circuit's claim (Part 3 optimum) | Raw circuit at the layout's numbers | Planar EM, pass 1 |
|---|---|---|---|
| Centre, √(f₋₃ f₊₃) | 2.4372 GHz | 2.4297 GHz | 2.4286 GHz |
| 3 dB bandwidth | 148.9 MHz | 202.5 MHz | 147.3 MHz |
| 15 dB return-loss band | 2.3844 to 2.5000 GHz | none | 2.3787 to 2.4461 GHz |
| Ripple | 0.84 dB | 2.99 dB | 1.61 dB |
| Worst return loss, 2.400 to 2.4835 GHz | 15.1 dB | 4.2 dB | 11.3 dB (at 2.470 GHz) |
| Loss at f0, 2.4414 GHz | 2.18 dB | 2.36 dB | 2.83 dB |
| Worst loss in band | 2.72 dB | 4.63 dB | 3.83 dB (at 2.483 GHz) |
| At 2.20 GHz | 30.0 dB | 25.8 dB | 28.6 dB |
| At 3.30 GHz | 58.2 dB | 48.7 dB | 45.4 dB |
| Worst, 3.30 to 4.0 GHz | 36.6 dB | 31.1 dB | 26.8 dB (at 4.0 GHz) |
The space mapping did its job on bandwidth: 147 MHz against the 149 MHz the optimum claimed, where the raw circuit at the same dimensions would give 202 MHz. It missed the centre by 8.6 MHz and left the middle resonator detuned. The three reflection zeros sit at 2.395, 2.423 and 2.491 GHz, bunched low, so the top of the band reads 11.3 dB at 2.470 GHz. One level up, 13 MHz low is nearly the whole ±15 MHz that RO4350B's εr tolerance moves the filter (Part 1), spent before a board is built.
Above the band EM sits 10 to 13 dB over the circuit, and its transmission zero is at 2.80 GHz where the circuit's is at 2.95 GHz. That costs 4.0 GHz: 26.8 dB against 30.

The dashed-dot trace is Part 5's circuit fitted to this run, shown here because it lands on EM's S21.
Take the loss from the schematic. EM's loss at 2.4414 GHz is 2.83 dB, 0.65 dB more than the circuit's 2.18 dB. I take insertion loss from the schematic and centre, bandwidth and shape from EM, because Planar EM's conductor loss is not validated: it puts one surface impedance on the whole sheet current, where the real strip carries its current on two faces, and its floor is lossless. To match EM's loss the circuit needs tanδ 0.0055 instead of the board's 0.0037. Part 5 brings in a second solver as the third opinion.
1 to 6 GHz: the second passband at 4.46 GHz
The filter passes again at 4.463 GHz with 3.0 dB of loss at the peak, 3 dB wide from 4.408 to 4.525 GHz. That is 1.83 times the EM centre and 420 MHz under 2 × 2.4414 = 4.883 GHz.
A half-wave resonator resonates again at twice its frequency, and the line's own dispersion moves that down only 0.4%, to 4.865 GHz (Trace Studio's εeff is 2.8335 at f0 and 2.8545 at 2 f0). The pairwise circuit, which has the coupled pairs' even and odd modes, puts it at 4.580 GHz. EM puts it 117 MHz lower again: at 2 f0 the voltage peaks at the open ends and the bar together, so the coupling between a hairpin's own two arms and across the bends, which the circuit leaves out, pulls it down.
The wideband run is on the layout Part 5's loop arrives at, arms 16.40 and 16.50 mm and taps 2.65 mm, because that is the one it was run on; its pass band agrees with that layout's own 2 to 4 GHz run to 0.1 MHz on the centre. It is 5,707 unknowns, since λ/40 at 6 GHz cuts the lines finer, and took 1,898 s on one worker, about 32 minutes; the level picker estimates about 6 minutes on four cores.
The spur's lower skirt is what costs the requirement. The readout gives 46.5 dB at 3.30 GHz, 33.7 dB at 3.80 GHz and 27.3 dB at 4.0 GHz, where version 0 of the requirements asks for 30 dB; 30 dB holds only up to 3.922 GHz. NR n78, the band the requirement protects, ends at 3.80 GHz. Part 5 takes that back to the requirements.
The tap makes the zero above the band. EM puts it at 2.835 GHz, −67 dB. The outer arm above the tap, 16.40 + 0.80 − 2.65 = 14.55 mm plus 0.32 mm of open-end extension, is a quarter wave at 2.99 GHz at εeff 2.834, and the zero moves with the tap the way a quarter wave should: 2.801 GHz with pass 1's 2.50 mm tap. The circuit puts it 98 MHz higher and deeper, at 2.933 GHz and −114 dB; loss and the second-neighbour couplings fill it in.
Past 5.5 GHz S21 climbs from −56 dB to −38 dB at 6.0 GHz. That is the shielded box: its lowest mode between the ports, half a sine across the 26.1 mm width in the core-and-air stack, cuts off at 5.554 GHz.

Part 5 opens this kind of result beside the circuit in the schematic, fits the circuit to it, and moves the layout until the centre and the return loss stop moving.
References
- J.-S. Hong and M. J. Lancaster, Microstrip Filters for RF/Microwave Applications, Wiley, 2001: hairpin filters, Qe from the group delay, and the spurious passband of half-wave resonators.
- E. Hammerstad and Ø. Jensen, "Accurate models for microstrip computer-aided design," IEEE MTT-S International Microwave Symposium Digest, 1980, pp. 407–409: the roughness factor K.
- Rogers Corporation, RO4000 Series Laminates data sheet: RO4350B design εr 3.66 and tanδ 0.0037.
- 3GPP TS 38.101-1, NR user equipment radio transmission and reception, Part 1: band n78, 3300 to 3800 MHz.
Questions? Contact
Discussion
No comments yet. Start the thread with a measurement, a correction, or a worked example.