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 22
A 3
K 1 Quiet
X-Ray B1.3
Wind 338.5 km/s
Aurora 2
Updated 06: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

Arduino or Raspberry Pi for shack automation: where do you draw the line between them?

ci_cover.jpg

A lot of ham radio projects end up asking the same question: should this job go on an Arduino-style microcontroller, on a Raspberry Pi, or on both? Typical jobs are antenna switching, band decoder outputs, rotator control, PTT sequencing, SWR and temperature monitoring, remote power switching, and digital mode or logging gateways.

The rule of thumb is that a microcontroller is better when timing and direct hardware control matter. A Pi is better when you need networking, storage, a full operating system, audio handling, or software such as Hamlib, WSJT-X, Direwolf, or an MQTT broker. That rule gets fuzzy in practice, so here are some specific cases to discuss.

1. PTT and amplifier sequencing. A relay or transistor stage on a Pi GPIO pin works, but Linux is not a real-time system, so a delay in userspace could mean a poorly timed keying sequence. If you are switching a coax relay, a preamp, and an amplifier in order, a small microcontroller can handle the delays and a hardware failsafe. The Pi then just sends a simple "TX request" line.

2. Rig control. Hamlib's rigctld on a Pi is a convenient way to share CAT control between logging software, digital mode software, and remote clients. The hardware interface still needs care. Check whether your radio uses TTL-level serial, RS-232 levels, USB, or a CI-V style single-wire bus, because a 3.3 V Pi pin is not a safe place to guess.

3. RF in the shack. Cheap boards can behave strangely on 100 W HF, with symptoms like random resets, bogus ADC readings, USB drops, and relays chattering. Mitigation usually means a metal enclosure, short leads, ferrites or common-mode chokes on USB and DC lines, bypass capacitors at the inputs, and good bonding.

What split of responsibilities makes sense to you, and which failure modes would you design around first?

  • Replies 2
  • Views 52
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

I'd split it by consequence of failure. Anything that can damage hardware or cause an unintended transmission belongs on the simplest device that can do it reliably. That usually means a microcontroller with a watchdog, plus a hardware default state. For example, relay outputs should default to a safe antenna or to ground, and a PTT output should drop out if the controller stops receiving a heartbeat from the Pi.

The Pi can then be the friendly front end: web interface, logging, scheduling, MQTT, and rigctld. The two can talk over USB serial or I2C, but over a shack with RF I'd lean toward serial or an opto-isolated link rather than long I2C runs. I2C is very sensitive to noise and was never designed to be a cable protocol.

Some details that cause trouble:

Raspberry Pi GPIO is 3.3 V and not 5 V tolerant. An Arduino Uno-class board runs at 5 V logic, so you need level shifting or a 3.3 V board. Relays and solenoids need a transistor or driver and a flyback diode, not a direct connection to a GPIO or Arduino pin. Also, a coax relay has frequency, power, and switching ratings. Avoid hot-switching under power unless the relay and the whole sequence are designed for it.

Power and audio tend to be the sneaky parts of these builds. A 12 V to 5 V buck converter is convenient from a 13.8 V supply, but cheap switchers can put hash across the HF bands. Before calling a design done, listen on the bands you care about with the controller powered, then with it unplugged. If it's noisy, you can try a different converter, add an LC filter, move it further from the antenna feedline, or use a linear regulator. Pi boards also complain about undervoltage, and SD card corruption after power loss is a real issue. A read-only root filesystem or a proper shutdown or UPS plan is worth considering for unattended stations.

For digital modes, a Pi with a USB sound interface is a good fit, but ground loops are a common problem. An audio isolation transformer, such as a 1:1 type, plus a separate opto-isolated PTT line can help keep the computer ground from riding on the radio's audio ground. Use a CAT or VOX-free PTT method if the radio allows it, and always test into a dummy load first.

For rotators, an Arduino reading a potentiometer or feedback voltage, with limit logic and a Yaesu GS-232-style serial command set, can work well with existing software. The Pi can sit above it running rotctld from Hamlib. That keeps the motion control and its limits local, and leaves the networking to the Pi.

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.