Skip to content
View in the app

A better way to browse. Learn more.

Ham Radio Base -Powered By Ham CQ DX

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.
Solar
SFI 125
SN 51
A 7
K 0 Quiet
X-Ray C1.0
Wind 459.0 km/s
Aurora 1
Updated 06:30 UTC HamQSL · N0NBH
Day 80/40m Fair 30/20m Good 17/15m Good 12/10m Fair
Night 80/40m Good 30/20m Good 17/15m Good 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

using a pi zero to automate my shack — anyone else gone down this rabbit hole

 Loading...

so i've been messing around with a raspberry pi zero w for about 3 months now trying to get it to handle some basic shack automation stuff and honestly i dont know if im making this harder than it needs to be or if this is just how it is

the basic idea was to have it monitor my IC-7300's band activity via rigctld, then automatically kick on the amp and switch the antenna relay depending on what band i qsy to. seemed simple enough on paper. i got rigctld talking to the radio fine, python script is reading the frequency, but the GPIO side is where things keep getting weird. the relay board im using is one of those cheap 4-channel jobs off amazon and it seems like whenever the pi is under any load at all the relay timing goes wonky. like it'll fire 200-300ms late sometimes which isnt the end of the world but it means the amp is keying before the antenna is fully switched and i can hear it in the audio

ive tried moving the relay control to a separate thread, tried a small arduino nano as a dedicated relay controller communicating over serial from the pi, that actually helped a lot but now im dealing with occasional serial dropouts and i feel like im just adding complexity to fix complexity

anyone else running a setup like this or am i reinventing the wheel when there's already some smarter way to do it

  • Replies 1
  • Views 27
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah the timing issue with relay boards and the pi is a known headache, the OS scheduler on raspbian just isnt real-time so you'll always get that jitter under load. the arduino as dedicated relay controller is actually the right move honestly, most people end up there eventually. the serial dropout thing though — are you using hardware serial or the software serial library on the arduino side? software serial is garbage above like 9600 baud and even then it can get flaky. if youre on an uno or nano just make sure youre on the hardware UART pins and use a reasonable baud rate, 115200 should be fine. also double check your ground reference between the pi and arduino, ive seen weird serial issues that were just a floating ground between the two boards

the other thing id look at is whether your relay board is pulling more current than the pi GPIO can handle cleanly. some of those boards need a separate 5v supply for the relay coils, if youre powering the coils off the pi's 5v rail thats probably causing noise on the logic side too

i went down basically the exact same path a couple years ago trying to automate antenna switching for my 6m setup. ended up ditching the pi for that specific task and just using a standalone arduino mega with a ethernet shield so i could throw a simple web interface on it and control everything from any browser in the shack. way less moving parts than dealing with linux and rigctld and all that. pi is great but for something that just needs to flip relays reliably it feels like overkill sometimes

that said if you want to keep the pi in the loop the nano as a coprocessor idea isnt bad, lots of commercial stuff basically does the same thing with a microcontroller handling the timing-critical stuff and a bigger processor handling the logic. just gotta get the serial comm solid

  • Guest unlocked, pinned, locked and unpinned this topic

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

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.