using a pi zero to automate my shack rotator - anyone done this?
- Replies 1
- Views 19
- Created
- Last Reply
Top Posters In This Topic
-
James Brown 1 post
-
Michelle Lewis 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 a raspberry pi zero w for a few weeks now trying to get it to talk to my old yaesu g-450a rotator controller. the idea is pretty simple, i just want to be able to point the antenna from my logging software without having to walk across the shack every time. sounds easy right
the rotator controller has that 6 pin din connector on the back with the analog voltage output for position sensing and i figured i could just read that with the pi and use a relay board to pulse the rotation inputs. but the pi doesnt have any analog inputs natively so i grabbed one of those little MCP3008 SPI ADCs from the parts drawer and got it wired up on a breadboard. its actually reading the voltage from the controller pretty well now, like +-2 degrees or so which is fine for HF
the problem im running into is the relay timing. when i send a rotate command from hamlib it sometimes overshoots by like 15-20 degrees especially if its moving fast, and i think its because theres some latency somewhere in my python script, maybe in the loop that checks the ADC. i bumped the polling rate up but then the cpu load on the zero gets kind of ridiculous for what its doing
has anyone done something similar and found a good polling interval that actually works, or is there some better way to handle this kind of closed loop control on a pi? ive seen people use arduinos for this kind of thing and wondered if the tighter timing makes a difference
Link to comment
https://www.hamradiobase.com/forums/topic/7199-using-a-pi-zero-to-automate-my-shack-rotator-anyone-done-this/Share on other sites