Remote antenna switches
A remote antenna switch chooses among several antennas over one feed line, or connects one of them to the radio, from afar. This page describes the kinds there are, which ones the station drives, what to look for in one, and how to build one. The station chooses antennas through its control lines: its GPIO pins, the DTR and RTS of a serial port, the pins of a USB sound card and relays on the network. Any switch whose antenna is chosen by closing contacts or applying a voltage can be driven through them.
The wiring between a line and a relay is on Wire relays and switches. Setting up a switch and its antennas is on Antenna switches and relays, and choosing antennas on Antennas and relays.
What the station drives
| The switch | How the station drives it | Where to read |
|---|---|---|
| Relays at the antennas, with a control cable to the station: a wire for each antenna, or a code on a few wires | Its control lines, through a driver or relays that switch the control voltage of the switch | Wire relays and switches |
| A switch with its own controller, whose buttons or control inputs choose the antenna | Relays on the lines of the station, wired across the buttons of the controller or to its control inputs, where it has them | Wire relays and switches |
| A switch controlled over its coax, by a direct voltage on the feed line | Relays on the lines of the station, switching the voltages of the control box of the switch | Over the coax |
| A relay board on the network, by Wi-Fi or Ethernet, such as boards with ESPEasy, Tasmota or Shelly, at the switch or beside the station | Network relays, switched and read over HTTP | Set up a network relay |
| A switch whose own controller switches and reports each antenna by HTTP requests | Network relays, where its requests fit theirs: one request for on, one for off, and an answer that tells whether it is on | Set up a network relay |
Not driven directly: relay boards and switch controllers commanded over a serial port, such as the USB relay boards of KMTronic; network antenna switches that speak their own protocol, such as those of QRO.cz and RemoteQTH; and I²C relay boards. Where the controller of such a switch also has buttons or control inputs, the lines of the station can drive those through relays.
How a switch chooses the antenna
A wire for each antenna
The most common kind. Each antenna has a relay, and a wire of the control cable energizes it, with one common wire. In Web Radio Control, each antenna names its own line. Choosing one turns the others off first (see Break before make).
A code on a few wires
Some switches decode a binary code: two wires for four antennas, at 00, 01, 10 and 11, or three wires for eight. In Web Radio Control, an antenna names every line its code has on. The antenna at 11 names lines A and B, and the antenna at 00 is the default antenna, which names no line.
Choosing another antenna turns lines off before it turns others on. So the switch passes for a moment through a code with fewer lines on: from 01 to 10, it passes through 00. That is harmless while receiving, and one more reason why the station never changes antennas while a radio related to the switch transmits.
Over the coax
A switch at the top of a mast can take its control over its own feed line. A control box at the station puts a direct voltage on the coax, its level or polarity choosing the antenna, and a bias tee keeps it out of the radio. Where the control box has a selector whose positions are contacts, the station chooses the voltage with relays in place of the selector. Each antenna then names the relays its position needs.
On the network
A relay board on the network, beside the switch or the station, drives the control wires of the switch. The station switches each relay by an HTTP request and reads it back by another. For such a board:
- Give it a fixed address on the network of the station.
- Keep it off the internet. Never forward a port to it.
- In its own settings, set what its relays do after a power cut to the rest position of the switch.
A board that reports the state of its relays lets the station show the antenna actually selected. The examples for Shelly, Tasmota and ESPEasy boards are on Set up a network relay.
Grounded at rest
A switch for a remote station is best grounded at rest. Every antenna is connected to ground until it is chosen, so static and nearby lightning go to ground, and a power cut or a broken control cable leaves every antenna grounded. Such a switch has a changeover relay for each antenna, its normally closed contact to ground and its normally open contact to the side of the radio. At rest, the radio is connected to no antenna.
In Web Radio Control, such a switch has no default antenna. Each antenna names the line of its own relay. None, the choice a switch without a default antenna offers, turns every line off and grounds every antenna. With At start at the default antenna, the switch then comes up on None, and with the last antenna, on the antenna last chosen. While None is selected, the radio related to the switch refuses to transmit by the PTT and keyer of the station, so the station never keys a transmitter into the open, grounded switch (see The default antenna and the start).
A switch shared by two radios, where one may transmit while the antenna of the other is changed, needs more than this. Two relays briefly on together would connect the paths of the two radios. Build it so that it can’t, with an interlock: relays with a second set of contacts, the coil of each relay fed through the normally closed contacts of the relays it must never be on with.
Relate such a switch to both radios. The station then changes its antenna only while neither radio transmits, and each radio refuses to transmit by the PTT and keyer of the station while the switch has no antenna selected.
What to look for
- Frequency range: the SWR and the loss of the switch at the highest band you use, and its rating there.
- Power: its rating for the modes you use, at the SWR your antennas show. Continuous digital modes and RTTY load a switch more than SSB or CW. With an amplifier, its rating at the power of the amplifier. The power rating of a switch is for carrying power, not for switching it.
- Isolation between ports: how much of the power of a transmitting antenna leaks into the others. It matters where two radios share the switch, or a receiving antenna or the antenna of another radio sits on it beside a transmitting one.
- Unused ports grounded: whether the antennas not chosen are grounded, and what is connected when its control fails or its power is off.
- Control: the voltage and current of each position, the number of wires and their polarity, and the length and voltage drop of the control cable. Plan the relays or the driver for it. Protect a long control cable from surges, as you protect the coax (see Grounding and lightning protection).
- Position feedback: whether the switch or its board reports the antenna in use. The station shows what it set on a GPIO, serial or sound card line, and what a network relay reads back where it has a read request.
- Outdoors: weatherproofing, connectors suited to the frequencies, mounting, and how water is kept out of the entry of the control cable.
- After a power cut: which antenna it comes back on, by itself, before the station has started.
- On the network: a documented local HTTP interface that needs no cloud service, a password, and a state at power-on that you can set.
Build one
- At the antennas or at the station. Relays at the antennas save coax, with one feed line up the mast for several antennas, but need a weatherproof box and a control cable. Relays beside the station keep everything indoors, at the cost of a feed line to each antenna.
- The relays, rated for RF at your highest frequency and your power: coaxial relays, which keep their impedance and isolation to VHF and beyond, or relays made for RF switching on a board laid out as a transmission line. The contacts of a general-purpose relay may serve on HF at modest power, which only a measurement of the finished switch tells.
- The box: metal and grounded, with the coax connectors on it. Run the control wires through ferrites, and decouple them at the relay coils with small capacitors, so that RF from the antennas doesn’t reach the control side.
- The control: the lines of the station through a driver, as in the example. Or a small board with Wi-Fi or Ethernet beside the relays, such as an ESP8266 or ESP32 with ESPEasy or Tasmota, as network relays. It needs power and the network at the switch.
Buy one
Remote antenna switches are made in many forms: relay boxes for the mast with a control box for the station, switches fed over their coax, and network switches with their own controllers. Before you buy one, check how it chooses the antenna, by contacts, by voltages on wires, over its coax or by a network protocol, against What the station drives.
Set one up in Web Radio Control
Add its lines
The station finds its GPIO pins. Add the pin of a serial port or a sound card, a network relay or an inverted line in Settings › Station › Other devices & control lines, with Add a control line (see Add a control line).
Add the switch
In Settings › Station › Antenna switches & relays, choose Add a device and an antenna switch (see An antenna switch). Give it its antennas, each with the lines it turns on; its default antenna, the one connected at rest, or none for a switch grounded at rest; and At start.
Test it
Read the lines reads its lines, switching nothing. Switch to each antenna then switches to each antenna in turn. Check the path of each antenna with an antenna analyzer before you transmit through it (see Test the switch).
Relate it to the radio
On the Related devices tab of the radio, choose Add a related device and the switch. Operators then choose its antennas from the radio page, and the radio refuses to transmit by the PTT and keyer of the station while no antenna is selected. Leave Antenna number empty when every antenna port of the radio goes through the switch. When only one port does, type the number of that port. Relate a switch that two radios share to both of them.
Name the rotator of each antenna
An antenna on a rotator names it, with its beam widths, which the page of the rotator draws (see Change an antenna).
Switch safely
- Never while transmitting. The station refuses to change the antenna while a radio related to the switch transmits, and waits until it stops. Choose an antenna while the radio receives. With an amplifier on the switch, put the amplifier on standby first (see Never while transmitting).
- Who may switch. Anyone who may receive on the station may choose an antenna. Where the station requires reservations, only while holding the reservation of the switch or its radio (see Who may switch).
- In storms and when you are away, choose None on a switch grounded at rest (see Grounding and lightning protection).