using a pi zero to automate my shack logging — anyone done this before?
- Replies 1
- Views 38
- Created
- Last Reply
Top Posters In This Topic
-
Robert Chen 1 post
-
Michael Stevens 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 for a few weeks now and i think im finally getting somewhere. basically what i wanted was something that would automatically log contacts to cloudlog whenever i key up, pull from my IC-7300's CI-V interface, and also flip a relay to cut power to my amp if the SWR spikes past a threshold i set. seemed simple enough on paper.
the pi zero W is handling the serial comms fine, i got pyserial talking to the radio no problem, and i can read frequency, mode, all that. the relay part is working too — just a little 5v relay board from amazon wired to GPIO 17, nothing fancy. the issue im running into is timing. like if i poll the radio too fast it seems to confuse the CI-V and i get garbage back sometimes. slowing the poll down to like 500ms helps but then theres a lag before the relay trips which kind of defeats the purpose for the SWR protection thing.
also tried doing it with an arduino nano first but keeping a wifi connection stable on an arduino is kind of a pain unless you throw an ESP8266 at it, which then becomes its own project. the pi just makes more sense for anything that needs to talk to the internet i think. anyway curious if anyone else has gone down this rabbit hole and whether there's a smarter way to handle the polling timing issue.
Link to comment
https://www.hamradiobase.com/forums/topic/5475-using-a-pi-zero-to-automate-my-shack-logging-anyone-done-this-before/Share on other sites