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 128
SN 73
A 6
K 1 Quiet
X-Ray B8.2
Wind 391.0 km/s
Aurora 3
Updated 01: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 arduino to automate my antenna switching — anybody done this?

so ive been messing around with an arduino mega for the past few weeks trying to build an automated antenna switcher for my shack. i've got like 5 antennas right now — a dipole for 40m, a vertical for 80/40, a 2m yagi, and a couple others — and im constantly reaching over to flip relays manually which is getting old real fast.

my idea is basically to have the arduino read which band im on from the radio (using a BCD output from my IC-7300, it does output band data on the ACC port) and then key the right relay automatically. i already wired up a little relay board i got off amazon, 8 channel one, and i can toggle relays fine from the arduino. the problem im running into is the logic side — reading the BCD lines and mapping them correctly to antenna choices isnt going as smooth as i thought. i keep getting false triggers when i switch bands rapidly.

has anybody done something similar? wondering if i need debouncing logic or if theres something smarter to do on the software side. also considered doing this with a raspberry pi instead but seems overkill for just switching relays. open to ideas though.

  • Replies 1
  • Views 88
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah the debouncing is almost definitely your problem. BCD outputs from radios can bounce around for a few milliseconds during a band change — the arduino is reading garbage in that window. what i did on a similar project was just add a small delay after detecting a change, like 50-100ms, and only act on it if the value is stable across multiple reads. not the most elegant solution but it works reliably.

also worth double-checking your grounds. if the arduino ground isnt tied to the radio ground youll get all kinds of weird behavior, especially if you have other stuff in the shack running off different outlets. i chased that one for two weekends before figuring it out. the relay board itself can also inject noise back into the arduino if you havent got the coil supply isolated — those cheap amazon boards usually dont have optical isolation even if they say they do.

i did almost exactly this with a pi zero a while back, and honestly the arduino is the right call for something this simple. pi has too much latency from the OS getting in the way if you want fast reliable IO. for just reading BCD and keying relays an arduino nano would even be enough, the mega is plenty.

one thing i'd add — put a manual override switch in parallel with each relay. there will be a day when the code does something dumb and you want to be able to switch antennas without rebooting everything mid-qso.

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.