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 157
A 10
K 1 Quiet
X-Ray C2.0
Wind 428.6 km/s
Aurora 1
Updated 21: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 — anyone done this?

 Loading...

so ive been messing around with this for a few weeks now and i think im overcomplicating it but wanted to see if anyone else has gone down this rabbit hole. basically i have a hexbeam and a vertical and i keep forgetting to switch when i move between HF bands, ended up transmitting into the wrong antenna twice last month which was not fun.

my plan was to use an arduino mega with a relay board to handle the switching automatically based on what frequency the rig is outputting. ive got a kenwood TS-590SG which has the CAT interface so i figured i could just poll it over serial and check the VFO frequency then trigger the relays accordingly. wrote a rough sketch that does the polling part and it works fine on the bench, reads the frequency no problem.

the issue is the relay timing. i dont know if im just being paranoid but im worried about the relay switching while theres still RF present if the timing is off even slightly. thinking about adding a PTT sense line to hold the switch until the radio goes back to receive but not sure if thats overengineering it. also wondering if a raspberry pi would actually be better for this since i could run a proper python script with better error handling but then i feel like thats overkill for what is basically just reading a serial port and flipping some gpio pins

anyone built something like this or have thoughts on the arduino vs pi question for something this simple?

  • Replies 1
  • Views 49
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah the PTT sense line is absolutely the right call, not overengineering at all. you do NOT want to switch relays under load even for a fraction of a second, the contacts will arc and youll be replacing the relay board way sooner than expected. i learned that the hard way on a similar project a few years back.

i ran almost the exact same setup on a TS-590S actually, using an arduino uno and a 4 channel relay board from amazon. the way i handled it was just monitor CTS or RTS on the CAT connection, most kenwoods pull one of those lines when in transmit but you might have to check the manual or experiment. alternatively just wire a simple optocoupler off the PTT line directly, that gives you clean isolation and the arduino just reads it as a digital input. whole thing cost me maybe 12 bucks in parts.

as for pi vs arduino for this specific task, honestly the arduino is fine. the pi boots slower, needs a proper shutdown procedure, and is overkill unless you want to run a web interface to control stuff remotely or log to a database or something like that. if you just want reliable switching, stick with the arduino, less to go wrong.

i did something similar but went the raspberry pi route mostly because i already had one sitting in a drawer doing nothing. ended up being a bigger project than i planned, added a web dashboard so i can see antenna status from my phone which is kinda neat but definitely not necessary lol. python makes the serial stuff really easy with pyserial but like the other guy said the boot time is annoying if you ever lose power, arduino just comes back up instantly.

one thing worth mentioning — make sure whatever relay board you use is rated for the voltage you're switching, some of the cheap ones are fine for 12v control circuits but check the coil voltage matches your supply. also if you're in a high RF environment near your antennas you might get weird behavior from induced RF on the arduino gpio lines, had that problem and had to add some ferrites on the control cables which cleared it right up.

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