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 94
SN 49
A 7
K 1 Quiet
X-Ray B5.5
Wind 405.3 km/s
Aurora 1
Updated 17:00 UTC HamQSL · N0NBH
Day 80/40m Fair 30/20m Good 17/15m Fair 12/10m Poor
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 switch — anyone done this?

so ive been messing around with an arduino mega for the past few weeks trying to get it to control my 4-port antenna switch automatically based on what band my radio is on. the radio outputs band data on a DB9 connector (its an IC-7300) so in theory i should be able to read that and then just drive some relays accordingly. i got the relay board working fine, and i can read serial data no problem, but the band data format from icom is a little weird and im not 100% sure im decoding it right.

the other thing i havent figured out yet is debouncing the relay switching so it doesnt just hammer the relays when the radio is doing its thing during a QSY. thinking maybe just a 500ms delay but that feels sloppy. anyone done something similar or have code laying around they wouldnt mind sharing? im not a great programmer but i can muddle through C++ well enough to modify stuff.

  • Replies 1
  • Views 19
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah i did almost exactly this with a 7300 about a year ago. the CI-V band data isnt too bad once you get the format down, theres a table in the icom manual appendix but its easy to miss. basically youre looking for specific hex values that correspond to band ranges. i ended up just mapping the frequency output rather than the discrete band data signal — pull the frequency over CI-V every 200ms or so and decide the band yourself in code. way more flexible and you dont have to deal with the band voltage pins at all.

for the relay debounce i used a simple state machine, if the target band changes i start a 300ms timer and only switch if it hasnt changed again by the time the timer expires. works great, no chatter. i can dig up the sketch if you want, its not pretty but it works.

i did something like this but with a raspberry pi instead of arduino, mostly because i already had one sitting around and wanted to run fldigi on the same box. ended up being overkill honestly. for just driving relays arduino is probably the right call, pi gpio can do it but the timing is less predictable because of the OS getting in the way. the 500ms delay thing is fine for antenna switching, relays dont care and your SWR meter isnt gonna explode or anything. dont overthink the debounce.

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.