using a pi zero to automate my antenna rotator — anyone done this?
- Replies 1
- Views 33
- Created
- Last Reply
Top Posters In This Topic
-
Dave Thompson 1 post
-
Nancy White 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 idea for a few weeks now and i think im finally close to something that actually works. background: i've got an old Yaesu G-450A rotator that i picked up at a hamfest for cheap, controller works but the interface is ancient and i want to be able to drive it from my logging software without sitting there manually cranking it.
the plan was to use a pi zero W to read the pot position voltage through an MCP3008 ADC over SPI, then drive the rotator motor direction via a couple of relays on the GPIO pins. wrote a little python script that polls the position every 500ms and compares it to a target bearing i send it over a simple socket connection. works in the house on the bench, rotator turns, stops when it gets close to the target, all good.
problem is i keep getting weird spikes on the ADC readings when the relay clicks. im guessing its inductive noise from the relay coil backfiring into the supply rail or something? i put a flyback diode across each relay coil but the spikes are still showing up. added a 100uf cap on the 3.3v rail near the MCP3008 and it helped a little but still seeing +-15 degrees of jitter sometimes when the relay transitions.
anyone gone down this road before? curious if an optocoupler between the pi and the relay board would help or if i need to rethink the power supply situation entirely. running both the pi and the relay board off the same 5v wall wart right now which is probably dumb in hindsight.
Link to comment
https://www.hamradiobase.com/forums/topic/5784-using-a-pi-zero-to-automate-my-antenna-rotator-anyone-done-this/Share on other sites