using an arduino to automate my antenna switch — anyone done this?
- Replies 1
- Views 32
- Created
- Last Reply
Top Posters In This Topic
-
David Davis41 1 post
-
Michael Thomas 1 post
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
so ive been messing around with this idea for a while now and finally starting to put it together. basically i have a 4-port antenna switch and i got tired of manually swapping between my 40m dipole, the vertical, and my 2m/70cm colinear every time i change bands. figured an arduino could handle the relay switching if i feed it band data from the radio.
my rig puts out band voltage on the accessory port, different DC voltages for different bands, which is pretty common. the plan is to have the arduino read that voltage through a voltage divider into an analog pin and then trigger the appropriate relay. got a 4-relay module from amazon that seems to work fine in testing with just a battery and some jumper wires.
where im running into trouble is the code side. im decent with hardware but my programming is... lets just say rusty. ive got it reading the voltage and printing to serial monitor but the logic for mapping voltage ranges to relay outputs is kind of a mess right now. also not sure if i need any debouncing or delay logic when switching bands so i dont hot-switch the antenna while transmitting.
anyone done something similar? happy to share what i have so far if someone wants to look at the code. also wondering if a pi would have been a smarter choice since it can run python which id be more comfortable with but the arduino felt simpler for just reading a pin and flipping relays.
Link to comment
https://www.hamradiobase.com/forums/topic/6113-using-an-arduino-to-automate-my-antenna-switch-anyone-done-this/Share on other sites