using an arduino to automate my antenna rotator - anyone done this?
- Replies 1
- Views 22
- Created
- Last Reply
Top Posters In This Topic
-
Jessica Davis 1 post
-
James Taylor 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 im finally getting somewhere. basically i have an old prop pitch motor setup for my yagi and the controller that came with it is kind of garbage - analog meter, no feedback, the pointer drifts all the time. so i figured why not just replace the whole control unit with an arduino and a couple of relays and actually get real position data out of it.
im using a cheap rotary encoder bolted onto the motor shaft with a little bracket i fabbed up, feeding that into an arduino uno, and then im talking to the arduino over serial from a raspberry pi 4 that runs hamlib and feeds into my logging software. the idea is that when i log a contact or pull up a dx cluster spot it'll just... point the antenna at the right azimuth automatically. in theory anyway.
the part im stuck on is the PID tuning for the motor control. the motor overshoots like crazy and then hunts back and forth for like 5-10 seconds before it settles. i bumped the D term way up and it helped a little but now it feels sluggish on big moves. probably a tuning issue but im wondering if anyone else has done something similar and has a rough starting point for the gains. the motor is pretty beefy so inertia is definitely a factor.
also running the whole thing off 12v from the shack supply, relays handling the motor direction, pwm on a beefy mosfet for speed control. seems solid electrically but open to suggestions if somethings obviously dumb there.
Link to comment
https://www.hamradiobase.com/forums/topic/8249-using-an-arduino-to-automate-my-antenna-rotator-anyone-done-this/Share on other sites