using arduino to automate my antenna switch — anyone done this before?
Loading...
- Replies 1
- Views 52
- Created
- Last Reply
Top Posters In This Topic
-
Radio Geek 1 post
-
Maria Rodriguez 1 post
so ive been thinking about this for a while and finally started messing around with it last weekend. basically i have a 4-port antenna switch out in the shack and im tired of walking over to flip it manually every time i change bands. figured an arduino could handle reading the band data output from my radio and switching the relays automatically.
the radio puts out BCD band data on a DB9 connector, ive already confirmed the voltage levels are TTL compatible so that parts straightforward. my plan is to use a Mega since i have one sitting around, read the BCD lines, decode the band, and fire the appropriate relay through a ULN2803 driver board i pulled off an old project. the relays are 12v so thats fine, just need to level shift the 5v logic side if im driving anything directly.
what im not sure about is whether anyone has done something similar and run into weird timing issues with the band data. my radio apparently has a brief glitch on the BCD lines during band changes and i dont want the arduino catching it mid-transition and switching to the wrong antenna for half a second. thinking i need to debounce in software but honestly havent thought it through completely yet. anyone dealt with this or have a sketch i could look at as a starting point?
Link to comment
https://www.hamradiobase.com/forums/topic/2556-using-arduino-to-automate-my-antenna-switch-anyone-done-this-before/Share on other sites