Skip to main content
tscircuit Essentials

Draw a WiFi Antenna

Use a manual trace path when you want to draw open-ended copper from an RF pin, such as a simple WiFi antenna or antenna feed. Instead of using from and to, provide a path with the RF pin selector and define the copper shape with pcbPath.

export default () => (
<board width="10mm" height="10mm">
<chip name="U1" footprint="qfn32" />
<trace
path={[".U1 > .pin1"]}
pcbPath={[
{ x: -3.5, y: 1.75 },
{ x: -3.5, y: 2.5 },
{ x: -4, y: 2.5 },
]}
/>
</board>
)
PCB Circuit Preview

The pcbPath points are PCB coordinates in millimeters. Add more points to draw a longer antenna shape, a board-edge launch, or a meandered RF trace.

caution

This controls the antenna geometry in tscircuit, but it does not calculate RF performance. For a production WiFi antenna, tune the dimensions, trace width, clearance, stackup, and ground keepout for your target frequency and PCB manufacturer.