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 99
SN 26
A 6
K 0 Quiet
X-Ray B2.3
Wind 384.8 km/s
Aurora 1
Updated 13:30 UTC HamQSL · N0NBH
Day 80/40m Good 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

Shack controller design: Pico, ESP32 or Pi for CAT, antenna switching and SWR sensing, and how do you keep RF out of it?

ci_cover.jpg

I'm sketching a small shack automation setup and want to compare architectures before buying parts. The goals are CAT control of the rig, a relay-based antenna switch, forward and reflected power sensing, and a simple status display. A Direwolf APRS station might share the same box later.

The candidates are a Raspberry Pi Pico (RP2040), an ESP32, and a full Raspberry Pi. They look like this on paper:

The Pico has predictable timing and a simple 3.3 V ADC, and it needs no OS. That suits keyer timing, relay sequencing and reading a detector. It has no radio of its own unless you use a Pico W.

The ESP32 adds Wi-Fi and Bluetooth, which is handy for a web dashboard. Its ADC is nonlinear and needs calibration. ADC2 is also unavailable while Wi-Fi is active on the original ESP32, so put analog inputs on ADC1 pins. The Wi-Fi transmitter is also one more RF source inside an enclosure that sits near an HF antenna feedline.

The full Pi runs Direwolf, Hamlib's rigctld and logging software comfortably, but it has no analog inputs and it's a poor choice for hard real-time work like relay interlocks or PTT sequencing.

My tentative split is a microcontroller for anything that touches the antenna or PTT, and a Pi for software TNC and logging, talking over serial or TCP. Does that match how you'd divide it? Where do you expect the RFI problems to show up first: CAT lines, ADC readings, or the USB cables?

On the interface side, CAT levels vary by radio. Icom CI-V is a single-wire open-collector bus. Many radios present TTL-level serial on an accessory jack, and some use true RS-232 voltages. Check the manual before wiring a 3.3 V GPIO to anything. A MAX3232-type converter or a transistor-based level shifter is cheap insurance.

  • Replies 2
  • Views 38
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

  • Moderators

Your split is sensible. Keep anything that can damage hardware, like relay sequencing and PTT, in firmware that can't be stalled by an OS update or a Wi-Fi reconnect. The Pi can send commands, but the microcontroller should have the final say. For example, it should refuse to switch an antenna relay while PTT is asserted.

For the SWR sensing, a diode-detector bridge is fine for a rough indication, but the diodes are very nonlinear at low power. Don't compute SWR from raw ADC counts. Take a few calibration points at known power levels into a dummy load, build a lookup table or curve fit, then compute reflection coefficient as sqrt(Vrefl/Vfwd) after correcting for the diode drop. SWR is then (1+ρ)/(1−ρ). Expect the numbers to be least trustworthy below a few watts.

If you want to test the relay logic safely, do it on the bench with the transmitter off and a dummy load on the output.

  • Administrators

The usual RFI culprits are cables acting as antennas, so start there. Put clamp-on ferrites or a few turns through a ferrite core on USB, serial and relay-control leads where they enter the box. Add 0.1 µF plus a small RF-value capacitor, such as 1 nF or 100 pF, at the analog inputs, and use a series resistor with a capacitor as a low-pass filter on the detector outputs. A metal enclosure with the feedline's ground bonded to it helps more than most firmware tweaks.

Relay coils need a flyback diode, or a driver like a ULN2003 that has them built in. Switching transients are a common cause of mystery resets that get blamed on RF.

If an Si5351 ends up in this build for a VFO or beacon, remember its outputs are square waves with strong harmonics. Run it through a proper low-pass filter before it goes near an antenna.

On the Direwolf side, PTT can come from a GPIO pin, or from a CM108-style USB sound card's GPIO. Whichever you choose, put an optocoupler or transistor between it and the radio, so a ground loop doesn't run through the audio cable.

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.