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 B9.3
Wind 401.6 km/s
Aurora 2
Updated 00: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 my antenna switch — anyone done this?

so ive been messing around with an arduino uno for the past few weeks trying to get it to automatically switch between my two antennas based on band in use. the rig is an IC-7300 so i can pull the CI-V data off the USB port and theoretically know what band im on at any given time. my plan is to have the arduino parse the CI-V frequency data and then trigger a relay to flip between my 40m dipole and the trap vertical for 20/15/10.

got the serial comms working mostly fine, the arduino is receiving the frequency data but im having a weird issue where it seems to miss packets every now and then, like itll switch correctly 8 times out of 10 but then just... not respond. no idea if its a timing issue with how fast CI-V polls or something in my parsing code. im using a simple SoftwareSerial setup which maybe isnt ideal.

also the relay im using is just a generic 5v relay module from amazon, wondering if i should be more careful about what relay i use given the currents involved. the coax switch itself is a MFJ-1700C being driven by the relay so its not like im switching RF directly, just the control voltage for the solenoids.

anyone done anything similar? would love to see some code if youve got it

  • Replies 1
  • Views 139
  • Created
  • Last Reply

Top Posters In This Topic

Featured Replies

yeah ive done almost exactly this with a 7300, took me a while to get the CI-V parsing reliable. your instinct about SoftwareSerial is probably right — i switched to using a Mega so i had a hardware serial port free for the CI-V side and things got a lot more stable. the timing on SoftwareSerial gets flakey if anything else is happening in your loop, even just millis() calls for debouncing relays can cause it to drop bytes.

also worth checking if you have the CI-V address set right and that transceive mode is on in the 7300 menu, because without transceive it wont broadcast frequency changes automatically and youll have to poll it which is more complicated. with transceive on the radio just shouts out its frequency whenever you turn the VFO and you just listen.

the amazon relay boards are usually fine for switching solenoid control voltages, current is low enough that you wont cook anything. i did put a flyback diode across my relay coil just in case but honestly the MFJ switch solenoids are pretty forgiving.

have you thought about doing this with a raspberry pi instead? not knocking the arduino approach at all but with a pi you can run python and there are already libraries that handle CI-V pretty cleanly, somebody wrote one specifically for icom rigs. then you can add a little relay hat on top and its pretty self contained. also easier to debug since you can just SSH in and print stuff to the terminal while its running rather than dealing with the serial monitor.

just a thought, i went down the arduino road first too and eventually migrated to a pi zero W for most of my shack automation stuff. the arduino is still sitting in a box somewhere

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.