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 147
SN 162
A 10
K 1 Quiet
X-Ray C1.1
Wind 437.2 km/s
Aurora 1
Updated 14: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 an arduino to auto-switch antennas based on band — anyone done this?

 Loading...

so ive been messing around with this idea for a while now and finally started actually building it out. the basic idea is i want the arduino to read the band data output from my IC-7300 and then drive a relay board to switch between my HF antennas automatically without me having to reach over and flip the coax switch manually every time i change bands.

the 7300 puts out band voltage on the ACC connector, different voltage levels for different bands, so thats what im feeding into the analog pins. got a basic sketch going that reads the voltage and maps it to bands okay but im running into trouble with the relay switching — sometimes it bounces between two states when the voltage is in between bands during a QSY and that causes a brief open circuit on the antenna port which im not thrilled about.

thinking i need to add some hysteresis or a debounce delay in the code but not sure what a safe delay would be before the relay actually commits to a new position. also not sure if a brief open during transmit would actually hurt anything or if the rig just sees a high SWR for a split second and the ALC handles it. anyone dealt with this kind of thing before?

  • Replies 1
  • Views 39
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah i did almost exactly this with a Yaesu FT-991 a couple years back, used the band data from the linear amp jack. the bouncing thing is real and annoying. what i ended up doing was adding a 200ms delay after the voltage reading stabilizes before committing the relay state — basically just compare the current reading to the last reading and only switch if they match for like 5 consecutive polls. works pretty well in practice.

as for the open circuit during transmit, i wouldnt worry too much about a few milliseconds but i wouldnt deliberately design around it being okay either. the 7300 has decent SWR fold-back but its not really meant to handle that repeatedly. i added a small piece of logic that checks a PTT sense line before allowing any switching — that way it just holds the current antenna if youre transmitting and does the switch when you let up. adds a tiny bit of lag but honestly never notice it in normal operation.

the raspberry pi crowd will tell you to do all this in python on a pi zero but honestly for just reading voltages and driving relays the arduino is way simpler and boots instantly which matters if you lose power mid-contest or whatever.

dont stress too much about the open circuit thing, the finals in the 7300 will fold back way before anything bad happens. ive accidentally keyed into a disconnected antenna a few times and its been fine. that said the PTT lockout idea the other guy mentioned is still the cleaner way to do it.

also you might want to look at using a schmitt trigger or just doing it in software with a deadband around the threshold values so if the voltage is like exactly between two expected levels it just stays put. i had a similar noise issue on my analog reads and putting a small cap on the input pin helped a lot too, like 100nF to ground right at the pin.

  • Guest locked, pinned, unpinned and unlocked this topic
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.