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 201
SN 126
A 14
K 1 Quiet
X-Ray C4.3
Wind 398.1 km/s
Aurora 1
Updated 11:30 UTC HamQSL · N0NBH
Day 80/40m Poor 30/20m Good 17/15m Good 12/10m Good
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 antenna switching — am i overcomplicating this

 Loading...

so ive been messing around with an arduino uno for the past couple weeks trying to build a simple antenna switch controller. the idea is pretty straightforward — i have 4 antennas and i want the arduino to read which band the radio is on via the band data output on the back of the IC-7300 and then automatically key the right relay to connect that antenna. in theory super simple right.

the problem is im not sure if im overthinking the whole thing. right now ive got a relay board hooked up and it works fine when i manually send commands over serial but getting the band data lines decoded reliably is being a pain. the 7300 outputs like a 4 bit BCD signal i think and im reading it fine but theres occasional glitching where it'll briefly show the wrong band during a QSY and the relay fires for a half second before correcting. nothing is damaged but i could see that being an issue with an amp in line eventually.

has anyone done something similar and figured out a decent debounce or delay approach that doesnt cause a noticeable lag when you actually switch bands? i tried just putting a 200ms delay before acting on a new band reading but that feels sloppy. also wondering if a pi would be better for this just because i could run some logging on the side too but seems like overkill for what is basically a relay controller

  • Replies 1
  • Views 21
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah i did almost exactly this about a year ago with a 7300 and a 4 antenna setup. the BCD glitching is totally normal, what worked for me was reading the band data line like 3-4 times over maybe 50ms and only acting on it if all readings agree. not elegant but it completely eliminated the false trips. the 200ms flat delay is worse because youre always waiting even when theres no glitch, the consensus approach only adds delay when something is actually unstable which is rare.

as for pi vs arduino — for just switching relays the pi is genuinely overkill and honestly kinda worse because youre dealing with linux boot times and if power glitches you might come back to a corrupted SD card. arduino just wakes up and does its thing instantly. i do run a pi zero separately for logging and CAT control stuff but kept the antenna switching on a nano because i wanted it bulletproof. you can always have them talk to each other over serial if you want the logging piece.

the glitching thing you're describing is pretty common with that kind of setup, ive seen guys use a small RC filter on the input lines too before the arduino reads them, smooths out the transients a bit. might be worth trying alongside the software debounce.

also not to derail but if youre going to have an amp in line at any point i'd seriously look at adding some logic to inhibit the relay switching unless ptt is unkeyed. had a buddy who fried a relay doing hot switching under power, wasnt pretty. just a thought

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.