Splitting shack automation between a Pi, a Pico and an ESP32: where should CAT, relays and rotator control live?
- Replies 2
- Views 40
- 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'm sketching a modular shack automation setup and want to sanity-check the architecture before I solder anything. The goal is a small set of nodes rather than one big box:
1) A Raspberry Pi running Hamlib (rigctld and rotctld), logging software and possibly Direwolf for APRS or packet. 2) A Pi Pico or similar for hard real-time and safety-critical jobs: antenna switch relays, PTT interlocks and CW keying. 3) An ESP32 for remote sensing and a web or MQTT interface, such as SWR and power readings, temperature and rotator position.
The questions I'd like opinions on:
CAT interface. USB CAT is easy, but some rigs only have a TTL-level or RS-232 CAT port, and Icom's CI-V is a single-wire bus. The Pico and ESP32 are 3.3 V devices and the Pico's GPIO is not 5 V tolerant. Is it sensible to always use a proper level shifter or a MAX3232-type chip, or to let the Pi talk to the rig and keep the microcontrollers off the CAT line?
Antenna switch. Should relay control be dumb and local (Pico with a ULN2003 or MOSFET drivers and a default-safe state at power-up), with the network side only sending band or antenna commands? I'd also like the Pico to refuse a switch while PTT is active so nothing gets hot-switched.
RF in the shack. The ESP32's Wi-Fi is convenient, but I'm wary of what a few hundred watts on 80 m or a nearby vertical will do to a bare board on a breadboard-style layout. Where do you start: ferrites, shielded enclosures, bypassing every line, or separating the digital side physically?
Rotator. If the rotator controller reads azimuth from a potentiometer through an ADC, is it better to use an external ADC such as an ADS1115 than the ESP32's internal one? Or should the Pico do the loop and the ESP32 only pass setpoints along?
Tell me where this design is over-engineered, or where it will bite me in the field.
Link to comment
https://www.hamradiobase.com/forums/topic/11050-splitting-shack-automation-between-a-pi-a-pico-and-an-esp32-where-should-cat-relays-and-rotator-control-live/Share on other sites