Skip to the content
4 layers152 × 122.5 mmController board, the printed circuit board in 3D

Remote HF antenna switch: 3 radios x 4 antennas (path to 8), outdoor relay unit with a hardware safety chain, controlled over Cat6 from a shack interface. KiCad 10, open hardware, designed together with an AI.

Size
152 × 122.5 mm
Copper layers
4
Thickness
1.6 mm
Parts
93
Nets
88
Pads
290
Tracks, vias
670, 277
Pours
7
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
27 Oct 2026
Updated
2 Nov 2026

Overview

Controller board is an open-source printed circuit board by PE1RGU, from the PE1RGU/hf-antenna-switch repository on GitHub, published under the CERN-OHL-S-2.0 licence. It is a 4-layer board of 152 × 122.5 mm with 93 parts on 88 nets, routed with 670 tracks and 277 vias.

It is built around the ESP32-C3-DEVKIT-RUST-1, VO2611 and 74LVC1G02Z, with the 74LVC1G08Z, 74LVC1G14Z and 74LVC1G27GF among its other parts. Its parts include 27 resistors, 20 capacitors, 12 ICs, 8 diodes and 4 inductors. It belongs with the radio and wireless and home automation and IoT boards and the ESP32 and RISC-V boards of this library.

Main components

12

README

README.md

HF Antenna Switch

Status: design phase Hardware: CERN-OHL-S-2.0 Scripts: MIT KiCad 10

A remote antenna switch for an HF amateur radio station: 3 radios, 4 antennas, one Cat6 cable, and the safety rules in hardware. Designed by a radio amateur together with an AI assistant, and documented decision by decision.

Outdoor unit with the lid removed: RF board with the relay matrix, controller board stacked above, SO-239 connectors in the milled aluminium tray Shack interface with the cover removed: main board in the extruded case, front plate with the display, LEDs, RESET and KILL switch

Left: the outdoor unit, lid removed. Right: the shack interface, cover removed. CAD views of the current design, not photos.

The relay unit sits outdoors, close to the antennas, in a milled aluminium case. A small interface box in the shack controls it over one Cat6 cable. A computer sends the commands over USB. If anything goes wrong (a cable break, a box fault, a press on the KILL switch), every radio is inhibited and every relay is released, without help from the firmware.

Status: design phase. Schematics, layouts and the case are drawn and checked by scripts. No board is built yet, and nothing here is tested on the bench. The shack interface firmware runs in an emulator on the computer.

In numbers

Radios3, each with its own transmit antenna and receive antenna
Antennas4 per unit; a second unit adds 4 more
Frequency range1.8 to 54 MHz
Power100 W, SWR up to 3:1
Relays37 × TE RT1, one type everywhere
RF board6 layers, 50 Ω coplanar lines
Link to the shackOne Cat6 cable, four opto-isolated current loops
Outdoor caseMilled aluminium tray, 288 × 250 × 66 mm
Shack caseHammond 1455T1601 extrusion, PCB end plates
ControllersESP32-C3 in the box and in the shack

Why this project may interest you

Safety in hardware, not only in software. A receive-only antenna (such as a loop with a preamplifier) never sees transmit power. No relay switches while RF is present. The firmware may ask for a state. The hardware decides whether that state is allowed.

Designed with an AI, in the open. This is an experiment in how a person and an AI assistant (Claude, by Anthropic) design hardware together. I set the goals and took the decisions. The AI did much of the research, the calculations and the scripts. The design log records every decision, who took it, and why. Rejected options stay in it too. See docs/how-this-was-made.md for the method and its limits.

Everything comes from scripts. Schematics, footprints, board placement, routing, end plates, the 3D fit checks and these renders are all generated by Python scripts. A change is repeatable, and two revisions can be compared. The logic is checked with truth tables against the real netlists. tools/README.md lists every script and how to run it.

What it does

  • Connects each of 3 radios to a transmit antenna and, separately, to a receive antenna.
  • Keeps receive-only antennas away from transmit power.
  • Changes relays only when no RF is present (TX inhibit and handshake per radio).
  • Stops all transmission and releases all relays on any fault, cable break or KILL switch.
  • Grounds antennas that are not in use, through a static bleed.
  • Feeds an active receive antenna through a switched bias-T.
  • Is controlled from a computer over USB through the shack interface.

System overview

mermaid
flowchart LR
  subgraph SHACK["Shack"]
    PC["Computer"]
    SI["Shack interface<br/>SAFE latch, TX permits,<br/>radio ports R1 to R3"]
    R1["R1 FT-710"]
    R2["R2"]
    R3["R3"]
  end
  subgraph BOX["Outdoor unit, milled aluminium case"]
    CB["Controller board<br/>ESP32-C3, safety gate, watchdog"]
    RF["RF board<br/>3 radios x 4 antennas<br/>37 x TE RT1 relays"]
  end
  subgraph ANT["Antennas"]
    A1["A1 G5RV"]
    A2["A2 RX loop"]
    A34["A3, A4 spare"]
  end
  U2["Unit 2, optional<br/>+4 antennas"]
  PC -- USB --> SI
  SI == "Cat6: 4 opto current loops" ==> CB
  CB -- I2C --> RF
  R1 -- coax --> RF
  R2 -- coax --> RF
  R3 -- coax --> RF

The dotted lines from the radios are the TUNER and LINEAR jacks (TX inhibit, PTT sense). More detail, and the reason for each choice, is in docs/architecture.md.

The outdoor unit

The RF board carries the relay matrix: per radio a changeover relay, a transmit row and a receive row; per antenna a ground relay, a static bleed, an RF detector and an optional bias-T. The controller board sits on standoffs above it.

Controller board, top side: Cat6 link with opto isolators on the left, ESP32-C3 DevKit on the right

Controller board (KiCad render). Left: the Cat6 link with the opto current loops and a 3 mm isolation gap. Right: the ESP32-C3 DevKit. The NOR gate on the silkscreen is the relay enable: RLY_EN = NOR(KILL, MCU_EN_N, FAULT).

The shack interface

The shack interface powers the four current loops, holds the SAFE latch and the transmit permits, and connects to the three radios. At the front: a 2 inch colour display, the SAFE and LATCHED LEDs, RESET and the KILL switch. At the rear: 13.8 V DC, Cat6 to the outdoor unit, USB and the three radio ports.

Shack interface, front: display, SAFE and LATCHED LEDs, RESET and the red KILL switch Shack interface, rear: three mini-DIN radio ports, USB-C, Cat6 and the XT60 power input

Front and rear of the shack interface (SolidCraft views).

Safety chain

The SAFE loop is one series current loop from the shack to the box and back. Any break stops the current: KILL switch, cable cut, box fault, or loss of power. All radios are then inhibited and all relays released, in hardware, without help from the firmware.

L1 SAFE loop diagram

Radios R2 and R3 transmit only after a handshake with the box: request, state check, relay set, read-back, permit.

F2 TX handshake flow chart

All logic, timing and flow diagrams:

DiagramContent
L1SAFE loop
L2Box safety gate
L3Shack latch and radio port
T1Box start-up timing
T2SAFE stop timing
T3a, T3bTX start and TX end timing
T4R1 PTT loop timing
F1Box firmware flow
F2TX handshake for R2 and R3

Firmware and emulator

The firmware is written in Rust and runs on an ESP32-C3 in the box and in the shack. No board exists yet, so the firmware is developed in an emulator. The emulator runs the same firmware logic that goes into the ESP32-C3, against models of the parts on the board: the I/O expander, the supervisors and latches, the SAFE loop, the radio ports, the data link to the box and the display.

Emulator in iTerm2, pixel view: the shack display as the firmware draws it, with radios, antennas and routes, the outside-world keys, board signals and host traffic Emulator, text view: the same display drawn with characters, radio boxes, antenna boxes and route lines

The emulated shack interface in a terminal. Left: pixel view, the 2 inch display exactly as the firmware draws it. Right: text view, for terminals without images. R1 transmits on A1 and receives on the loop A2; R2 uses A3.

In the emulator you can:

  • see the shack display as the firmware draws it (page B: radios, antennas and their routes; page C: one card per radio; the Safe stop screen with its cause and the steps to recover),
  • press RESET and KILL, cut the cable, switch the supply, and let a radio transmit, with function keys,
  • type the same commands that a station program sends over USB, or connect a program over TCP,
  • stop it and start it again: the routes, names and page come back, as on the real unit; a transmission never does.

It runs in a terminal on macOS, Linux and Windows:

bash
cd firmware
bash
cargo run --release -p sim-shack

firmware/README.md explains how the emulator works, every key and command, and a first session step by step. To read or change the code, start with the firmware guide, written for hobby programmers.

Where it stands

PartState
Requirements and architectureRequirements in draft, architecture rev C
Schematics, all boardsGenerated, ERC clean, logic checked by script
RF board layoutPlaced and routed, DRC clean
Controller board layoutPlaced and routed, DRC clean
Shack interface layoutPlaced and routed, DRC clean; end plates drawn
CasesOutdoor tray and shack end plates drawn; 3D fit checked
Firmware, shack interfaceRuns in the emulator: permits, handshake, host protocol, display, stored settings; tested against the hardware logic
Firmware, box controllerNot started; a scripted box stands in for it in the emulator
Bench testsNot started; see docs/test/test-spec.md

The CHANGELOG has the details per revision.

Documents

DocumentContent
docs/requirements.mdWhat we build and what is important
docs/architecture.mdSystem blocks, interfaces, main decisions
docs/design/Detailed design, one document per board
docs/test/test-spec.mdHow each requirement is tested
design-log.mdEvery decision, assumption, calculation, standard and measurement, with its reason
CHANGELOG.mdChanges per revision

Repository layout

text
docs/                       requirements, architecture, design, test, images
hardware/unit/              outdoor unit: RF board, controller board, case, verification scripts
hardware/shack-interface/   shack interface board, end plates, case fit and renders
hardware/docs/diagrams/     logic, timing and flow diagrams
firmware/                   Rust firmware and the emulator (see firmware/README.md)
tools/README.md             where each generator and verification script is, and how to run it
Datasheets/                 datasheet register (the PDFs are not in the repository)
archive/                    earlier revisions (card cage and backplane, rev A/B)

Tools

  • KiCad 10, with the board layouts generated by Python scripts
  • Rust for the firmware and the emulator (esp-hal, embedded-graphics, ratatui)
  • Python 3 for the generators, the router and the verification scripts
  • cadquery and SolidCraft for the cases, the 3D fit checks and the renders
  • JLCPCB for the PCBs

Licence

  • Hardware design files and documentation: CERN Open Hardware Licence v2, Strongly Reciprocal (CERN-OHL-S-2.0). See LICENSE.
  • Python scripts (generators, verification) and the firmware (Rust): MIT. See LICENSE-MIT.
  • The display fonts compiled into the firmware are M+ FONTS (through the mplusfonts crate), under the SIL Open Font License 1.1.
  • Vendor 3D models and libraries (SnapEDA, SamacSys, Ultra Librarian, Amass, Amphenol) are not in the repository. See hardware/THIRD-PARTY.md for where to get them.

Source Location (required by CERN-OHL-S): https://github.com/PE1RGU/hf-antenna-switch

73 de PE1RGU

Parts

93
QtyValueFootprintReferences
101u 16V X7RCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C2, C3, C4, C5, C11, C14, C15, C16, C17
847RResistor_SMD:R_MELF_MMB-0207R11, R12, R21, R22, R31, R32, R41, R42
8DNP 1n 1kVCapacitor_SMD:C_1206_3216Metric_Pad1.33x1.80mm_HandSolderC21, C22, C23, C24, C25, C26, C27, C28
40RResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR51, R52, R53, R64
4100kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR36, R44, R62, R63
41N4148WDiode_SMD:D_SOD-123D12, D22, D32, D42
42036-09-B2LFcontroller-board:GDT_3Pin_P4.40mm_Bourns-2036-B2_Littelfuse-SL1003A-RGD1, GD2, GD3, GD4
451u CMCcontroller-board:L_CMC_TDK_ACT45BL1, L2, L3, L4
4SMBJ15CADiode_SMD:D_SMBD11, D21, D31, D41
3220RResistor_SMD:R_MiniMELF_MMA-0204R13, R23, R33
34.7kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR14, R24, R34
3M3 NPTHMountingHole:MountingHole_3.2mm_M3H2, H3, H4
3VO2611Package_DIP:DIP-8_W7.62mmU1, U2, U3
21kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR61, R66
1+3V3TestPoint:TestPoint_Pad_D1.5mmTP2
1+5VTestPoint:TestPoint_Pad_D1.5mmTP1
10RResistor_SMD:R_1206_3216Metric_Pad1.30x1.75mm_HandSolderR65
110n 50V X7RCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC12
1220RResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR43
1240RResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR35
14.7u 16V X7RCapacitor_SMD:C_0805_2012Metric_Pad1.18x1.45mm_HandSolderC13
174LVC1G02Package_TO_SOT_SMD:SOT-23-5U15
174LVC1G08Package_TO_SOT_SMD:SOT-23-5U16
174LVC1G14Package_TO_SOT_SMD:SOT-23-5U5
174LVC1G27Package_TO_SOT_SMD:SOT-23-6U14
174LVC1G74Package_SO:VSSOP-8_2.3x2mm_P0.5mmU13
1BSS138BKPackage_TO_SOT_SMD:SOT-23Q4
1ESP32-C3-DevKit-RUST-1controller-board:ESP32-C3-DevKit-RUST_SocketA1
1EXP_INTTestPoint:TestPoint_Pad_D1.5mmTP7
1FAULTTestPoint:TestPoint_Pad_D1.5mmTP3
1LP2985-33Package_TO_SOT_SMD:SOT-23-5U11
1M3 CHASSISMountingHole:MountingHole_3.2mm_M3_PadH1
1PC817XPackage_DIP:DIP-4_W7.62mmU4
1RF_A2_NTestPoint:TestPoint_Pad_D1.5mmTP4
1RJ45 LINKcontroller-board:RJ45_8P8C_Unshielded_TabDownJ1
1RLY_ENTestPoint:TestPoint_Pad_D1.5mmTP8
1SCLTestPoint:TestPoint_Pad_D1.5mmTP5
1SDATestPoint:TestPoint_Pad_D1.5mmTP6
1SDA SELJumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm_NumberLabelsJP11
1TLP176AMcontroller-board:SOP-4_P2.54mm_PhotoRelay_LongPadU6
1TPS3823A-33Package_TO_SOT_SMD:SOT-23-5U12
1TX_ANYTestPoint:TestPoint_Pad_D1.5mmTP9
1to RF board J14Connector_PinSocket_2.54mm:PinSocket_2x12_P2.54mm_VerticalJ2

More from PE1RGU/hf-antenna-switch

6
  • 6 layers268 × 230 mmRf board, the printed circuit board in 3D

    Rf board

    PE1RGU/hf-antenna-switch

    Remote HF antenna switch: 3 radios x 4 antennas (path to 8), outdoor relay unit with a hardware safety chain, controlled over Cat6 from a shack interface. KiCad 10, open hardware, designed together with an AI.

    357 parts2CERN-OHL-S-2.0
  • 4 layers159.6 × 161 mmShack interface, the printed circuit board in 3D

    Shack interface

    PE1RGU/hf-antenna-switch

    Remote HF antenna switch: 3 radios x 4 antennas (path to 8), outdoor relay unit with a hardware safety chain, controlled over Cat6 from a shack interface. KiCad 10, open hardware, designed together with an AI.

    290 parts2CERN-OHL-S-2.0
  • 6 layers340 × 126 mmBackplane, the printed circuit board in 3D

    Backplane

    PE1RGU/hf-antenna-switch

    Remote HF antenna switch: 3 radios x 4 antennas (path to 8), outdoor relay unit with a hardware safety chain, controlled over Cat6 from a shack interface. KiCad 10, open hardware, designed together with an AI.

    24 parts2CERN-OHL-S-2.0
  • 2 layers70 × 70 mm2x1 as, the printed circuit board in 3D

    2x1 as

    PE1RGU/hf-antenna-switch

    Remote HF antenna switch: 3 radios x 4 antennas (path to 8), outdoor relay unit with a hardware safety chain, controlled over Cat6 from a shack interface. KiCad 10, open hardware, designed together with an AI.

    16 parts2CERN-OHL-S-2.0
  • 4 layers60 × 107 mmRf iso backplane, the printed circuit board in 3D

    Rf iso backplane

    PE1RGU/hf-antenna-switch

    Remote HF antenna switch: 3 radios x 4 antennas (path to 8), outdoor relay unit with a hardware safety chain, controlled over Cat6 from a shack interface. KiCad 10, open hardware, designed together with an AI.

    4 parts2CERN-OHL-S-2.0
  • 4 layers100 × 50 mmRf iso card, the printed circuit board in 3D

    Rf iso card

    PE1RGU/hf-antenna-switch

    Remote HF antenna switch: 3 radios x 4 antennas (path to 8), outdoor relay unit with a hardware safety chain, controlled over Cat6 from a shack interface. KiCad 10, open hardware, designed together with an AI.

    4 parts2CERN-OHL-S-2.0

Similar boards

  • 2 layers131.9 × 164.6 mmCft alu, the printed circuit board in 3D

    Cft alu

    alexiosc/cft

    The CFT homebrew minicomputer

    138 parts6GPL-3.0
  • 2 layers107.5 × 75.4 mmKim-1-programmable memory, the printed circuit board in 3D

    Kim-1-programmable memory

    eduardocasino/kim-1-programmable-memory-card

    KIM-1 Programmable Memory Board for the MTU Backplane

    45 parts11
  • 2 layers250 × 121 mmPWM Schematic, the printed circuit board in 3D

    PWM Schematic

    Shriniketpk2124/Design-Assembly-and-Commissioning-of-a-GreenPHY-Based-EVSE-Signalling-and-Communication-Emulator

    Mixed-signal EVSE prototype for IEC 61851 control-pilot signalling, Green PHY/SLAC, and ISO 15118-2 communication experiments.

    109 parts
  • 2 layers100 × 100 mmSimple logic full, the printed circuit board in 3D

    Simple logic full

    Justinius/LogicDemoBoard

    PCB for simple logic demo

    36 partsCC0-1.0
  • 2 layers51.4 × 61 mmGB MBCTEST, the printed circuit board in 3D

    GB MBCTEST

    Gekkio/gb-hardware

    Game Boy -related custom hardware by gekkio

    36 parts379CC-BY-4.0
  • 4 layers116.8 × 59.7 mmPlenum, the printed circuit board in 3D

    Plenum

    foxsi/UMN-boards-FOXSI-4

    Circuit boards designed in Minnesota for FOXSI-4

    142 parts1
  • 4 layers58 × 38 mmQspimux2-prog, the printed circuit board in 3D

    Qspimux2-prog

    felixheld/qspimux

    QSPI flash multiplexer - connect a SPI NOR flash to either an embedded system or a programmer for remote firmware tests

    99 parts57CC-BY-SA-4.0
  • 4 layers88.9 × 50.8 mmMAX2769FT2232H, the printed circuit board in 3D

    MAX2769FT2232H

    WKyleGilbertson/MAX2769FT2232H

    GPS <-> USB

    99 parts12CERN-OHL-S-2.0

Questions

How big is the Controller board PCB?

It measures 152 × 122.5 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Controller board use?

93 parts, built around the ESP32-C3-DEVKIT-RUST-1, VO2611, 74LVC1G02Z and 74LVC1G08Z. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Controller board KiCad files?

From the PE1RGU/hf-antenna-switch repository on GitHub, at the commit this page was made from: the board is hardware/unit/controller-board/controller-board.kicad_pcb and its schematic archive/2x1_as/2x1_as.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Controller board design in my own project?

Its repository publishes it under the CERN-OHL-S-2.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).