- Replies 1
- Views 6
- Created
- Last Reply
Top Posters In This Topic
-
Radio Geek 1 post
-
Jessica Moore 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 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
Link to comment
https://www.hamradiobase.com/forums/topic/4566-using-arduino-to-automate-antenna-switching-anyone-done-this/Share on other sites