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.
☀ Solar
SFI 121
SN 93
A 11
K 2 Quiet
X-Ray B8.3
Wind 432.7 km/s
Aurora 3
Updated 06:30 UTC HamQSL · N0NBH
Day 80/40m Fair 30/20m Good 17/15m Fair 12/10m Fair
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

using arduino to automate my antenna switching - anyone done this?

so ive been messing around with arduino for a few months now and got pretty comfortable with basic sketches and relay control and i keep thinking there has to be a good way to tie this into my shack setup. right now i have a manual coax switch for going between my 40m dipole and the vertical and honestly i keep forgetting to switch it and then wonder why my swr is awful for the first 5 minutes of a session lol

my thought is to use an arduino mega with a relay shield and somehow have it read which band im on from my rig and switch automatically. i have a kenwood ts-590sg which does have CAT control over usb so maybe i can have a raspberry pi handle the serial polling and then talk to the arduino over i2c or just send simple gpio signals. is that overcomplicating it or does that kind of setup actually make sense

i dont have a great electronics background, mostly self taught from youtube and a few projects, so if theres a way to do this without blowing up my radio id love to hear how people have approached it. also open to just doing it with a pi alone if the gpio is enough to drive the relays directly with a transistor or mosfet or whatever

  • Replies 1
  • Views 28
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah ive done basically exactly this, though with an icom but the principle is the same. the pi handles the CAT polling via hamlib - rigctld specifically - and then i just have a small python script that checks the frequency every couple seconds and writes to a gpio pin depending on the band. the relays i used were those cheap SRD-05VDC-SL-C ones off amazon, you do need a transistor and a flyback diode or you risk frying the gpio when the relay coil collapses, thats the part people skip and then wonder why their pi keeps browning out

honestly you dont really need the arduino in the loop at all for something this simple. the pi can handle it fine. where i would use an arduino is if you need hard realtime stuff or if you want to offload something so the pi doesnt have to babysit it constantly. for just antenna switching the pi alone is fine, hamlib is well documented and once you get rigctld running it's pretty straightforward to parse the frequency output

I went a slightly different route - I actually used a Nano instead of a Mega since I only needed a couple relays and didn't need all the extra pins. Ran it standalone without a Pi at all. Mine reads voltage on a sense line that I tapped off the band data output on my radio (older Yaesu has actual band data pins which makes it dead simple), but the CAT approach is probably smarter if your rig supports it cleanly.

One thing I'll throw out there - watch the relay ratings if you're switching anything with any meaningful RF on it. Those cheap relay shields aren't rated for RF and you can get arcing across the contacts at higher power. I keep mine to 100w or below and haven't had an issue but just something to be aware of depending on your setup.

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.