Keeping RF out of ESP32 and Pico shack controllers: CAT, PTT, antenna switch and rotator interfaces
- Replies 2
- Views 45
- Created
- Last Reply
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
I'd like to collect practical notes on a problem that shows up in almost every shack automation project: the microcontroller works fine on the bench, then misbehaves once the rig is on the air. Typical symptoms are a Pico that resets on SSB peaks, an ESP32 that drops Wi-Fi on 40 m, a CAT link that fills with garbage during TX, or a relay board that clicks on its own.
Here is a rough sketch of the kind of system I mean. A Raspberry Pi runs Hamlib's rigctld and Direwolf for APRS or packet. An ESP32 or Pico handles the antenna switch relays and reads rotator position. A Si5351 provides a VFO or a test signal, and a small LCD or OLED shows status. Each of these parts has its own interface traps.
For CAT, the first question is always the voltage level. Many rigs use 5 V TTL-style serial, an Icom-style CI-V single-wire open-collector bus, or true RS-232 levels. An ESP32 and a Pico are 3.3 V devices. Don't assume the pins tolerate 5 V, and check the datasheet for the exact part. A proper level shifter or a transistor/resistor interface is cheap insurance. A USB CAT port is often the easiest route, but it brings its own ground loops and common-mode noise on the cable.
For PTT with Direwolf, the usual options are a GPIO line driving a transistor or optocoupler, serial RTS/DTR, or the GPIO on a CM108-type USB sound adapter. Whatever you choose, make sure a crashed program can't leave the rig keyed. A hardware watchdog or a pull-down on the PTT driver is worth having, and so is a timeout on the rig itself if it offers one.
What are the most reliable approaches for isolation, grounding, filtering and layout? I'm especially interested in what holds up with a 100 W HF station and antennas close to the house, not only QRP.
Link to comment
https://www.hamradiobase.com/forums/topic/11124-keeping-rf-out-of-esp32-and-pico-shack-controllers-cat-ptt-antenna-switch-and-rotator-interfaces/Share on other sites