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 B7.8
Wind 387.9 km/s
Aurora 3
Updated 01:00 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 antenna switching — anyone done this?

so ive been messing around with an arduino mega for the past few weeks trying to get it to handle antenna switching based on what band my radio is on. the radio is a ts-590sg and it outputs band data on the accessory port which is nice. got the basic logic working where it reads the voltage levels and drives some relays but the timing is all messed up — like sometimes it switches before the radio has actually settled on the new frequency and i get this ugly pop through the audio.

im using a 4 relay module i grabbed off amazon, nothing fancy, and just standard digitalWrite stuff in the loop. wondering if anyone has done something similar and whether adding some debounce delay actually helped or if theres a smarter way to do it. ive seen people mention interrupts but honestly my interrupt experience is pretty limited and i dont want to overcomplicate this if a simple delay(50) or whatever would just fix it.

also considering moving this over to a raspberry pi zero at some point just because it would be easier to add a little web interface for remote monitoring but not sure if the latency on the pi would make the timing even worse. any thoughts from people who have actually built stuff like this would be appreciated

  • Replies 1
  • Views 142
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah i did almost exactly this with an ic-7300 about a year ago. the band data voltage thing is straightforward enough but the timing issue you're describing is real and a simple delay fixed it for me — i think i landed on around 80ms before triggering the relay and that was enough for the rig to finish its internal switching. the pop was gone after that. not elegant but it works and the arduino doesnt care about wasting 80ms sitting there.

one thing i'd warn you about with the pi zero is that linux isnt real-time so if your timing ever needs to be really tight you can get weird jitter. for antenna switching it's probably fine since youre not talking microsecond precision, but i tried to use a pi for ptt keying once and the latency was all over the place. for a web interface and monitoring though the pi is way better than trying to bolt ethernet onto an arduino. maybe keep the arduino doing the actual relay switching and have the pi just watching and logging — have them talk over serial or i2c. thats how my current setup works actually and its pretty solid.

dont overthink the interrupt thing for this use case honestly. if the band data is just a voltage level that changes and stays put, polling it in your loop with a delay is totally fine. interrupts shine when youre catching fast pulses or need sub-millisecond response and antenna switching just isnt that. id just throw a delay in there and call it done.

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.