Arduino or Raspberry Pi for shack automation? Where do you draw the line between them?
- Replies 1
- Views 95
- Created
- Last Reply
Top Posters In This Topic
-
Robert Williams 1 post
-
Jennifer Martinez 1 post
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
I'm interested in how people split work between microcontrollers and single-board computers in a ham shack. The usual advice is "Arduino for hardware, Pi for software," but that doesn't help much once you're designing something real, like an antenna switch controller, a rotator interface, a band decoder, or a remote PTT setup.
Here is how I'd frame the question. An Arduino-class board (Uno, Nano, or an ESP32 if you want Wi-Fi) is good at tight timing and simple, predictable I/O. It boots almost instantly, has no filesystem to corrupt, and runs one job forever. That suits a CW keyer, a relay sequencer, a band-data decoder reading the radio's output, or an ADC reading forward and reflected power from a directional coupler.
A Raspberry Pi is a full Linux computer. That makes it a good fit for Hamlib's
rigctld, Direwolf for packet/APRS, logging software, a web dashboard, or a bridge between the radio and a network. The downsides are a slower boot, an SD card that doesn't like sudden power loss, and GPIO pins that are 3.3 V only and not 5 V tolerant. Wiring a Pi pin directly to a 5 V Arduino output or a relay board is an easy way to damage it.The part I most want to discuss is the interface between the computer and the RF environment. Even at moderate power, a badly routed USB cable or a long unshielded relay lead can act as an antenna. Symptoms include random resets, garbled CAT control, and relays chattering when you key up on 20 m or 40 m. Ferrite chokes on USB and control cables, bypass capacitors at the I/O, shielded enclosures, and keeping control wiring away from the feedline all help. Optoisolators or relay isolation between the logic and anything that touches PTT or amplifier keying line help too.
Where do you put the safety logic? If a Pi script crashes while PTT is asserted, you could be transmitting into a dead key-down condition. A hardware timeout on the PTT line, such as a simple 555 timer or a watchdog on a microcontroller, seems more trustworthy than a software timeout on the same computer that might hang.
So my questions are: which jobs do you give to a microcontroller, which to a Pi, and which do you connect over serial, I2C, MQTT, or something else? What's your approach to keeping RF out of the controller?
Link to comment
https://www.hamradiobase.com/forums/topic/8530-arduino-or-raspberry-pi-for-shack-automation-where-do-you-draw-the-line-between-them/Share on other sites