ⓘ Callsign lookups are in real time via the FCC database.
Vanity callsign availability is refreshed daily at 6:00 AM CST.
The vanity search may be unavailable for a few minutes during this update.
Live DX spots
Live DX Spots — 70cmvia PSKReporter · scroll or pinch to zoom
Band
Mode
Time
Loading map data…
MHzDXSpotterInfo
Recent spots—
Select a band above to load spots
Ready — select a band to fetch live spots
Keeping RF out of ESP32 and Pico shack controllers: antenna switch, rotator and CAT on one box
Many shack automation builds follow the same pattern. An ESP32 or Pi Pico drives a few relays for an antenna switch, reads a rotator potentiometer, and talks CAT to the rig, often with a small LCD or OLED on the front. On the bench it works. Then you key up on 40 m into a not-quite-perfect antenna and the display garbles, the relays chatter, or the controller resets.
This thread is for comparing notes on how to build these controllers so they survive real RF. Here is a starting list, and corrections are welcome.
Logic levels come first. Pico GPIO is 3.3 V and not 5 V tolerant. ESP32 GPIO is also 3.3 V. Rig CAT interfaces vary: some are TTL-level serial, some are true RS-232 (which can swing to roughly +/-5 to 12 V and will damage a bare GPIO), and Icom CI-V is a single-wire shared bus. Check your rig's manual for the actual electrical interface, and use a proper level shifter or a MAX3232-type transceiver where needed. For CI-V, a transistor or a small open-collector arrangement on the bus line is the usual approach, with TX and RX tied together in a way the bus can tolerate.
Relays should get a separate driver stage and a proper flyback path. A ULN2003 or discrete MOSFETs with a diode across each coil is fine. Power the coils from their own supply rail and decouple it well, because relay switching noise on the same rail as an ADC reference makes rotator readings jumpy. Also decide what state the relays take at power-up. GPIOs on many microcontrollers float or briefly take odd states during reset, so add pull-down resistors on the driver inputs. On the ESP32, be careful with strapping pins such as GPIO0, 2, 12 and 15, since external circuitry on those can change boot behavior.
For antenna switching, add an interlock so the controller never hot-switches under power. If the rig supports it, use the PTT or TX-inhibit line so the controller only changes relays while the rig is in receive. Even a simple rule helps: refuse a switch command while PTT is active, and wait a few milliseconds after the line drops before moving the relays. Latching relays save power and keep the last state through a reset, but then the firmware has to know what that state actually is.
Rotator position sensing is where noise shows up most. The ESP32's internal ADC is not very linear and picks up noise, so an external I2C ADC like an ADS1115 is a common upgrade. Whichever ADC you use, average several samples, put an RC filter on the pot wiper, and add a deadband in software so the controller doesn't hunt around the target bearing. Treat limit handling and a motion timeout as safety features: if the bearing hasn't changed within some time while the motor is driven, stop the motor and flag a fault.
On the RF side, the usual fixes still apply. Put the board in a metal enclosure bonded to station ground, bypass every line that leaves the box with small capacitors, and use ferrite chokes or a few turns through a core on USB, serial, relay and sensor cables. A common-mode choke on the USB lead to the PC or Pi is cheap. Keep controller cables physically away from the feedline and from the antenna-end of the run where possible. Run a watchdog timer so a lockup recovers on its own, but make sure the recovery state is safe: motors off, TX inhibited, antenna switch in a known position.
One related note for anyone adding a Si5351 for a signal source or VFO: its output is a square wave with harmonics, so a low-pass filter is needed before it goes anywhere near an antenna or receiver. Keep its I2C wiring short too.
Where does your setup misbehave under RF, and what fixed it? Particularly interested in whether people prefer one board that does everything or separate small controllers for each function.
Many shack automation builds follow the same pattern. An ESP32 or Pi Pico drives a few relays for an antenna switch, reads a rotator potentiometer, and talks CAT to the rig, often with a small LCD or OLED on the front. On the bench it works. Then you key up on 40 m into a not-quite-perfect antenna and the display garbles, the relays chatter, or the controller resets.
This thread is for comparing notes on how to build these controllers so they survive real RF. Here is a starting list, and corrections are welcome.
Logic levels come first. Pico GPIO is 3.3 V and not 5 V tolerant. ESP32 GPIO is also 3.3 V. Rig CAT interfaces vary: some are TTL-level serial, some are true RS-232 (which can swing to roughly +/-5 to 12 V and will damage a bare GPIO), and Icom CI-V is a single-wire shared bus. Check your rig's manual for the actual electrical interface, and use a proper level shifter or a MAX3232-type transceiver where needed. For CI-V, a transistor or a small open-collector arrangement on the bus line is the usual approach, with TX and RX tied together in a way the bus can tolerate.
Relays should get a separate driver stage and a proper flyback path. A ULN2003 or discrete MOSFETs with a diode across each coil is fine. Power the coils from their own supply rail and decouple it well, because relay switching noise on the same rail as an ADC reference makes rotator readings jumpy. Also decide what state the relays take at power-up. GPIOs on many microcontrollers float or briefly take odd states during reset, so add pull-down resistors on the driver inputs. On the ESP32, be careful with strapping pins such as GPIO0, 2, 12 and 15, since external circuitry on those can change boot behavior.
For antenna switching, add an interlock so the controller never hot-switches under power. If the rig supports it, use the PTT or TX-inhibit line so the controller only changes relays while the rig is in receive. Even a simple rule helps: refuse a switch command while PTT is active, and wait a few milliseconds after the line drops before moving the relays. Latching relays save power and keep the last state through a reset, but then the firmware has to know what that state actually is.
Rotator position sensing is where noise shows up most. The ESP32's internal ADC is not very linear and picks up noise, so an external I2C ADC like an ADS1115 is a common upgrade. Whichever ADC you use, average several samples, put an RC filter on the pot wiper, and add a deadband in software so the controller doesn't hunt around the target bearing. Treat limit handling and a motion timeout as safety features: if the bearing hasn't changed within some time while the motor is driven, stop the motor and flag a fault.
On the RF side, the usual fixes still apply. Put the board in a metal enclosure bonded to station ground, bypass every line that leaves the box with small capacitors, and use ferrite chokes or a few turns through a core on USB, serial, relay and sensor cables. A common-mode choke on the USB lead to the PC or Pi is cheap. Keep controller cables physically away from the feedline and from the antenna-end of the run where possible. Run a watchdog timer so a lockup recovers on its own, but make sure the recovery state is safe: motors off, TX inhibited, antenna switch in a known position.
One related note for anyone adding a Si5351 for a signal source or VFO: its output is a square wave with harmonics, so a low-pass filter is needed before it goes anywhere near an antenna or receiver. Keep its I2C wiring short too.
Where does your setup misbehave under RF, and what fixed it? Particularly interested in whether people prefer one board that does everything or separate small controllers for each function.
Link to comment
https://www.hamradiobase.com/forums/topic/11906-keeping-rf-out-of-esp32-and-pico-shack-controllers-antenna-switch-rotator-and-cat-on-one-box/Share on other sites