Arduino or Raspberry Pi for shack automation? Splitting antenna switching, rotator control and CAT duties
- Replies 2
- Views 45
- Created
- Last Reply
Top Posters In This Topic
-
Anna Petrov 1 post
-
Linda Wilson 1 post
A design question that comes up in most shack automation projects: which jobs belong on an Arduino-class microcontroller, and which on a Raspberry Pi? Both can read a switch, drive a relay and talk serial to a transceiver, so the choice is not obvious until you list the failure modes.
One way to split it is by timing and consequences. An Arduino, ESP32 or similar board starts in milliseconds, runs one program, and has no filesystem to corrupt. That suits an antenna selector, a PTT or sequencer interlock, or the analog side of a rotator controller (potentiometer feedback, motor relays, limit switches). A Pi is better at network and software work: running Hamlib's
rigctld, logging, a web interface, MQTT, decoding digital modes, or acting as a remote-control gateway.The hybrid layout many builders end up with is a Pi as the network brain, connected over USB serial to a microcontroller that owns the hardware outputs. If the Pi crashes, the microcontroller can still hold a safe state, drop PTT after a timeout, and refuse to switch an antenna relay while PTT is active.
Some points worth debating for this kind of build:
1. Boot-state behavior. Pi GPIO pins are not guaranteed to be in your preferred state during boot, so a relay driver or PTT transistor needs a pull-down on its base or gate. Where do you want every output to land at power-up and on a watchdog reset?
2. Logic levels. Pi GPIO is 3.3 V and not 5 V tolerant. Many Arduino boards are 5 V, and rig CAT ports vary: some use RS-232 levels, some TTL, and Icom CI-V is a single-wire open-collector bus. Check the radio's manual before wiring anything directly.
3. RF in the shack. Switching regulators, USB cables and long GPIO leads can radiate hash or pick up RF. Ferrites, bypassing, shielded enclosures, and keeping the controller away from the feedline all matter, especially at higher power.
4. Isolation. For PTT lines and audio paths, an optocoupler, relay or transformer is often safer than a shared ground, and it can help with ground-loop hum on digital-mode audio.
How would you divide the work for a shack with a multi-position antenna switch, a rotator and a CAT-controlled HF rig?
Link to comment
https://www.hamradiobase.com/forums/topic/10592-arduino-or-raspberry-pi-for-shack-automation-splitting-antenna-switching-rotator-control-and-cat-duties/Share on other sites