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 — anyone done this?

 Loading...

so ive been messing around with an arduino mega for a few weeks now trying to get it to handle antenna switching based on what band i dial in on the rig. the idea is pretty straightforward — read the band data output from the radio (im running a kenwood ts-590sg which outputs band voltage on the ACC2 port), decode that with the arduino, then fire relays to switch between my verticals and my dipole depending on band.

the relay board i got off amazon is one of those 8-channel 5v jobs and it works fine when i just manually trigger it through serial but im having weird issues where it glitches when i transmit. like the relays chatter or sometimes switch to the wrong position mid-over. my shack ground isnt the greatest and i suspect RF is getting into the arduino somehow even though i have it a good 4 feet from the radio. tried adding a ferrite on the USB cable going to the laptop but still happening. the sketch itself is pretty simple, polling the analog pin every 200ms and comparing against voltage thresholds for each band.

wondering if anyone else has dealt with RF getting into microcontrollers in the shack and how you actually fixed it. also curious if a raspberry pi would be better for something like this or if thats overkill for relay switching

  • Replies 1
  • Views 5
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah RF and arduinos in the shack is a classic headache. the relay board is probably the culprit more than the arduino itself — those cheap chinese boards have no isolation to speak of and the relay coil switching can couple noise back into the logic side too. what i did on mine was add a 100ohm resistor in series on every input line plus a small cap to ground right at the arduino pin, like 100pf or so. made a huge difference. also make sure your relay board has its own power supply and shares ground with the arduino but not through the USB — i was powering mine off the arduino 5v rail and that was causing all kinds of weirdness.

the other thing worth checking is whether your band voltage lines are shielded. even a few inches of unshielded wire near the coax can pick up enough to confuse the analog read. i ended up running mine through a small RC lowpass filter before the ADC pin and the chatter went away completely. as for pi vs arduino for this kind of thing — arduino is honestly fine, the pi is way overkill for relay switching and you have to deal with linux boot times and SD card corruption if power goes out mid-contest which is no fun

the rf immunity thing bites everyone eventually. one trick i havent seen mentioned much is wrapping the whole arduino in a grounded metal enclosure — even just an old altoids tin works surprisingly well for a lot of shack builds. bond it to your station ground and a lot of the gremlins go away. also maybe consider opto-isolating the relay triggers if you havent, those cheap relay boards sometimes have them built in but not always wired correctly from the factory.

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.