Arduino or Raspberry Pi for shack automation? Where to split the work between them
- Replies 1
- Views 96
- Created
- Last Reply
Top Posters In This Topic
-
Moon Bounce 1 post
-
Jessica Davis18 1 post
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 compare approaches for splitting shack automation between an Arduino-class microcontroller and a Raspberry Pi. Typical projects are antenna switching, band-decoder outputs, rotator control, remote power switching, PTT sequencing for digital modes, and station monitoring (SWR, temperature, voltage). People often try to do all of it on one board, and that's usually where the trouble starts.
The way I see it, the two boards are good at different things. A Pi (or similar Linux SBC) is good at anything involving networking, audio, and existing ham software: Hamlib's rigctld, Direwolf, WSJT-X, logging software, MQTT, a web dashboard. An Arduino or other microcontroller is good at deterministic I/O. It boots in milliseconds, has no filesystem to corrupt, reads analog inputs directly, and does the same thing every time it powers up. That matters when the job is "make sure the antenna relay is in a safe state before anything transmits."
A few specific questions to start with:
1. Do you let the Pi drive relays and PTT directly from GPIO, or put a microcontroller in between that enforces timing and safe defaults? Pi GPIO is 3.3 V and not 5 V tolerant, and a crashed Linux process can leave a pin in whatever state it last had.
2. How do you handle RF getting into the control electronics? Resets, I2C lockups, noisy ADC readings, and USB dropouts that only happen on transmit are common complaints, and they're often blamed on the board when the cause is common-mode current on the cabling.
3. For a remote or unattended setup, what's your watchdog strategy? A hardware watchdog on the Pi, a separate one on the microcontroller, or both?
I'm interested in how people draw the line, and in which interfaces you consider worth isolating (optocouplers, relays, or transformer isolation on audio).
Link to comment
https://www.hamradiobase.com/forums/topic/8465-arduino-or-raspberry-pi-for-shack-automation-where-to-split-the-work-between-them/Share on other sites