raspberry pi controlling my antenna rotator — is this overkill or am I onto something
Loading...
- Replies 1
- Views 8
- Created
- Last Reply
Top Posters In This Topic
-
Jennifer Park 1 post
-
Diana Patel 1 post
so ive been messing around with this for a few weeks now and i think i finally have something worth sharing, or at least worth getting feedback on before i go too much further down the rabbit hole
basically i got tired of manually adjusting my yagi when im trying to track satellites and i had a pi4 just sitting in a drawer doing nothing so i figured why not. wrote a python script that pulls az/el data from gpredict via the rotctld interface and feeds it out through a GPIO expander board to an H-bridge i salvaged off an old printer motor controller. the rotator itself is a homebrew thing i built like 5 years ago with a windshield wiper motor, nothing fancy
it actually works pretty well but im having this weird issue where occasionally the az will overshoot by like 10-15 degrees and then hunt back and forth a couple times before settling. my feedback pot is a 10-turn bourns unit so i dont think its resolution, more like my PID loop isnt tuned right or maybe the motor is just too fast for the control loop to keep up with. anyone done something similar and dealt with the hunting issue
also thinking about adding an arduino nano as a dedicated ADC front end for the pot since the pi's GPIO is all digital obviously, right now im using an MCP3208 over SPI which works but feels a little clunky in the code
Link to comment
https://www.hamradiobase.com/forums/topic/4024-raspberry-pi-controlling-my-antenna-rotator-is-this-overkill-or-am-i-onto-something/Share on other sites