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 412.9 km/s
Aurora 1
Updated 14:00 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

Which microcontroller for shack automation? Pico vs ESP32 vs Arduino, and keeping RF out of it

ci_cover.jpg

I'm planning a batch of small shack projects and want to settle on a platform before I build a pile of incompatible boards. The list: a CAT bridge for an HF rig, an antenna switch with relay control, a forward/reflected power meter, a Si5351 VFO/beacon source, and eventually an APRS tracker and a Direwolf node on a Pi. I'd like to hear how others split the work between an Arduino-class board, a Pi Pico, an ESP32 and a full Raspberry Pi.

Here is my current thinking, and please correct it where it's wrong. A Pi (running Linux) makes sense where you want an audio interface and network services: Direwolf with a USB sound card or CM108-type adapter, KISS over TCP on port 8001, and Hamlib's rigctld/rotctld to share rig and rotator control over the LAN. A microcontroller makes more sense for anything timing-sensitive or hardware-facing: keyer timing, relay sequencing, reading a detector voltage, driving an LCD, or generating a clock with a Si5351.

Between the microcontrollers, the Pico looks attractive for deterministic I/O, and its PIO blocks are handy for odd serial protocols. The ESP32 gives Wi-Fi and Bluetooth for free, but I'm wary of putting a Wi-Fi radio inches from a receiver. The classic 5 V Arduino boards are easy to work with, but I keep having to remind myself that the Pico and ESP32 are 3.3 V devices and their GPIOs are not 5 V tolerant.

That last point matters for CAT. Rigs differ a lot: some older Yaesu radios use 5 V TTL-level serial, Icom CI-V is a single-wire open-collector bus with an address byte for each radio, and many Kenwood and Elecraft rigs offer true RS-232 levels on a DB9. Those levels shouldn't go straight into a 3.3 V pin, and RS-232 shouldn't go into any logic pin at all. A MAX3232 handles RS-232, while a transistor or a proper level shifter handles TTL and CI-V. Check your rig's manual for the voltage and polarity before you connect anything.

The other big question is RF immunity. What's your approach to enclosures, ferrites on USB and control lines, and bypassing relay and sensor wiring, so the controller doesn't reset or report nonsense when you key up on 80 m into a marginal antenna?

  • Replies 2
  • Views 55
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

  • Moderators

I'd split it by failure mode. If a crash or glitch is merely annoying, like a display or a logging node, the ESP32 is fine. If a glitch could damage something, such as a relay switching under power, a PTT line, or an amplifier band-switch input, I'd keep that logic on a simple wired microcontroller and make the safe state the default. Pull PTT lines low through a resistor, and make sure relays de-energize if the controller resets. A watchdog timer helps, but don't rely on it as the only protection.

On the ESP32 specifically, two details are worth knowing. The ADC is noticeably non-linear and noisy, so it's not ideal for a precise SWR or power meter unless you calibrate it or use an external ADC such as an ADS1115 over I2C. Also, ADC2 pins can't be used while Wi-Fi is active on many ESP32 variants, which catches people out. For an SWR meter built around a log detector like the AD8307, you also need to think about the detector's nonlinearity near the noise floor, the coupler's frequency response and a calibration table. The microcontroller is the easy part.

For CAT on Icom, remember CI-V is half-duplex on one wire, so everything you send is echoed back to you. Your code must either discard its own echo or handle it as part of the frame parsing.

  • Moderators

For the Pi side, Direwolf is happy with a decent USB audio interface, but audio levels need care. Set transmit audio so it isn't overdeviating on FM, and set receive levels so Direwolf's reported audio level isn't pinned or buried. For PTT you can use a GPIO through a transistor or optocoupler, or a CM108-style GPIO if the sound card supports it. Isolation transformers on the audio lines, plus an optocoupler on PTT, can reduce ground-loop hum and keep the Pi from sharing a ground path with the rig.

For the RF side, I'd treat every wire leaving the box as an antenna. Put the board in a metal enclosure if you can, add ferrite chokes on USB, serial, and relay cables, and put a small capacitor close to each connector pin for lines carrying DC or slow control signals. Use a flyback diode across each relay coil. A ULN2003 or a logic-level MOSFET is a convenient driver for relay banks. If you're switching antennas, avoid hot-switching at power, and keep RF wiring away from the logic board. For the Si5351, remember its outputs are square waves rich in harmonics, so budget for a low-pass filter before it goes anywhere near an antenna or a receiver mixer.

One practical tip for builds with many connections: write down the pinout and voltage level for every connector before wiring. It saves more parts than any soldering technique.

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.