using arduino to automate my antenna relay switching — anyone done this?
Loading...
- Replies 1
- Views 24
- Created
- Last Reply
Top Posters In This Topic
-
Emily Wilson 1 post
-
Amanda Johnson64 1 post
so ive been messing around with this for a few weeks now and its getting somewhere but im hitting a wall with the relay timing. basic setup is an arduino mega controlling a bank of 8 relays to switch between antennas depending on which band the radio is on. im pulling the band data off the CI-V bus from my IC-7300 which honestly was the easier part than i expected.
the problem is when i switch bands quickly like during a contest or just tuning around, sometimes the relay fires before the CI-V data is fully settled and i get this weird half-second where the radio is basically connected to nothing or the wrong antenna. ive tried adding a delay() but that feels hacky and if i make it too long it just makes the whole thing sluggish. wondering if anyone has done something similar and how they handled the debounce or timing on the relay side. also considered moving to a raspberry pi for this since i could run a proper python script with threading but not sure if thats overkill for what is honestly a pretty simple task
current code is just basically polling the CI-V every 100ms and comparing to the last known band, then triggering the relay bank. nothing fancy. just feels like theres a timing problem somewhere i cant quite nail down
Link to comment
https://www.hamradiobase.com/forums/topic/3627-using-arduino-to-automate-my-antenna-relay-switching-anyone-done-this/Share on other sites