Where do you draw the line between Arduino and Raspberry Pi in a shack automation build?
- Replies 1
- Views 86
- Created
- Last Reply
Top Posters In This Topic
-
Steven Clark 1 post
-
Angela Davis 1 post
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
When a shack project grows past a single gadget, the question is usually which job belongs on a microcontroller and which belongs on a Linux board. A remote antenna switch, a PTT sequencer, a rotator interface, a band decoder, a station logger and an FT8 or packet node can all be built with either platform. They behave very differently once RF is present.
A rough rule is that anything with hard timing or a safety consequence should live on the Arduino-class device. That covers PTT sequencing between a preamp, amplifier and transceiver, relay switching with delays, and a timeout that drops transmit if the host software hangs. A microcontroller boots in a fraction of a second, has no filesystem to corrupt and does exactly what the code says. A Raspberry Pi is much better at anything involving networking, a database, audio devices, a web interface, or software like Hamlib's rigctld that several programs can share.
That suggests a split where the Pi handles logging, digital mode software, remote access and the user interface, while a small microcontroller on a serial or I2C link drives relays, reads sensors and enforces limits. The Pi can request "select antenna 3" or "key PTT", but the microcontroller decides whether that is allowed right now. For example, it can refuse to switch an antenna relay while PTT is active, or drop PTT if it hasn't received a keepalive within a set time.
The other half of the question is the RF environment. Cheap switching supplies, USB hubs and the Pi's HDMI output can all put noise on HF, and long GPIO or sensor leads make good antennas for your own transmitter. Things worth planning from the start are ferrites on USB and power leads, shielded enclosures where practical, optocouplers or transistor drivers rather than direct GPIO to the rig, flyback diodes across relay coils, and a clear 3.3 V versus 5 V logic plan so you don't push 5 V into a Pi pin.
For those who have built something like this, where did you put the boundary, and what ended up needing the most rework: the software split, the interfacing, or the RF hygiene?
Link to comment
https://www.hamradiobase.com/forums/topic/9045-where-do-you-draw-the-line-between-arduino-and-raspberry-pi-in-a-shack-automation-build/Share on other sites