- Replies 1
- Views 29
- Created
- Last Reply
Top Posters In This Topic
-
Emily Thomas 1 post
-
David Anderson74 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 the past few weeks trying to get it to handle my antenna switching automatically based on band changes from my IC-7300. the idea is pretty simple — radio sends CI-V commands out the USB, the arduino reads that, figures out what band im on, and fires the right relay to switch between my yagi and my vertical. on paper it makes total sense but im running into weirdness with the serial timing.
basically what happens is the arduino will catch maybe 3 out of 5 band change commands correctly and then just miss the others entirely. ive tried adjusting the baud rate, tried adding delays, tried using a software serial on different pins thinking maybe the hardware serial was conflicting with something but nothing has really fixed it consistently. im using a level shifter between the radio and the arduino because the CI-V runs at 5v logic and i didnt want to risk the mega's pins.
also considered just ditching the arduino and moving to a raspberry pi zero W so i could run a proper python script with threading and not worry about blocking loops — but that feels like overkill for just switching 4 relays. has anyone actually built something like this that works reliably or am i missing something obvious with the serial handling
Link to comment
https://www.hamradiobase.com/forums/topic/3858-using-arduino-to-automate-my-antenna-switching-anyone-done-this/Share on other sites