using a pi zero to automate my shack — anyone else gone down this rabbit hole
Loading...
- Replies 1
- Views 26
- Created
- Last Reply
Top Posters In This Topic
-
Mark Johnson 1 post
-
Emily Moore 1 post
so i've been messing around with a raspberry pi zero w for about 3 months now trying to get it to handle some basic shack automation stuff and honestly i dont know if im making this harder than it needs to be or if this is just how it is
the basic idea was to have it monitor my IC-7300's band activity via rigctld, then automatically kick on the amp and switch the antenna relay depending on what band i qsy to. seemed simple enough on paper. i got rigctld talking to the radio fine, python script is reading the frequency, but the GPIO side is where things keep getting weird. the relay board im using is one of those cheap 4-channel jobs off amazon and it seems like whenever the pi is under any load at all the relay timing goes wonky. like it'll fire 200-300ms late sometimes which isnt the end of the world but it means the amp is keying before the antenna is fully switched and i can hear it in the audio
ive tried moving the relay control to a separate thread, tried a small arduino nano as a dedicated relay controller communicating over serial from the pi, that actually helped a lot but now im dealing with occasional serial dropouts and i feel like im just adding complexity to fix complexity
anyone else running a setup like this or am i reinventing the wheel when there's already some smarter way to do it
Link to comment
https://www.hamradiobase.com/forums/topic/4883-using-a-pi-zero-to-automate-my-shack-anyone-else-gone-down-this-rabbit-hole/Share on other sites