Skip to content
View in the app

A better way to browse. Learn more.

Ham Radio Base

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Ham Radio Base — Education, Resources, Projects and Community
☀ Solar
SFI 90
SN 33
A 3
K 1 Quiet
X-Ray B1.3
Wind 318.7 km/s
Aurora 2
Updated 11:30 UTC HamQSL · N0NBH
Day 80/40m Fair 30/20m Good 17/15m Fair 12/10m Poor
Night 80/40m Good 30/20m Good 17/15m Fair 12/10m Poor

Callsign Lookup
_
Vanity Call Signs Available
Enter filters above and click Search.
ⓘ Callsign lookups are in real time via the FCC database. Vanity callsign availability is refreshed daily at 6:00 AM CST. The vanity search may be unavailable for a few minutes during this update.
Live DX spots
Live DX Spots — 70cm via PSKReporter · scroll or pinch to zoom
Band
Mode
Time
Loading map data…
MHz DX Spotter Info
Recent spots —
Select a band above to load spots
Ready — select a band to fetch live spots

Where do you draw the line between Arduino and Raspberry Pi in a shack automation build?

ci_cover.jpg

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?

  • Replies 1
  • Views 86
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

The keepalive idea is the one I'd make non-negotiable. If the Pi sends a heartbeat every few hundred milliseconds while PTT is requested, and the microcontroller drops the transmitter when the heartbeat stops, a crashed script or a dropped network link can't leave you keyed up. A hardware timeout-timer equivalent on the microcontroller helps too, so a stuck request can't hold the carrier longer than your chosen limit. Do this for anything that can end up on the air unattended, especially if the project is remote-controlled.

On the interface side, I'd keep the control link simple and boring. A plain serial protocol with short ASCII commands, a checksum and explicit acknowledgements is easy to debug from a terminal, and you can test the Arduino side without the Pi at all. I2C is tempting for sensors, but over longer cable runs in an RF field it can become flaky. If the board is more than a short distance from the Pi, consider RS-485 or optically isolated serial instead. Isolation also helps break ground loops that show up as hum or noise in receive audio.

One practical point about the Pi side: treat the SD card as the weak link if the station runs continuously. Frequent logging, journal writes and swap activity can wear it or leave it corrupted after a power cut. Options include a read-only root filesystem with a separate writable partition or USB drive for logs, or booting from SSD. Either way, keep a backed-up image of the configuration so a dead card doesn't take the shack down for a weekend.

For the radio link itself, it's worth checking whether your rig's CAT interface and Hamlib support cover what you need before designing custom hardware. Often rigctld on the Pi can handle frequency, mode and PTT over USB, leaving the microcontroller for what the rig doesn't offer: antenna selection, SWR or power monitoring from a directional coupler through a proper detector, temperature checks on an amplifier, and so on. For metering, remember the Arduino's ADC reads DC, so a detector and some scaling are needed, and reading a forward and reflected pair accurately takes calibration against a known wattmeter rather than trusting the formulas alone.

Finally, test with a dummy load first. Many noise and interference problems can be provoked at low power, and a relay board that behaves on the bench may reset the microcontroller when RF gets into a long wire. Adding a bypass capacitor, series resistor or ferrite at the offending line often fixes it, but you only find out by running the transmitter into the load with the whole system assembled.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Affiliate Disclosure: As an Amazon Associate, Ham Radio Base earns from qualifying purchases. Some links throughout this website may be affiliate links. If you purchase a product through one of these links, we may earn a commission at no additional cost to you. Your support helps us continue creating free articles, tutorials, reviews, and resources for the amateur radio community. N0TLB © Ham Radio Base - Powered by the Ham CQ DX Community. All rights reserved.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.