using arduino to control my antenna rotator - anyone done this?
- Replies 1
- Views 22
- Created
- Last Reply
Top Posters In This Topic
-
Daniel Patel 1 post
-
James Thompson 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 an arduino mega for a few weeks now trying to get it to drive my old prop pitch rotator and honestly its going better than i expected but im running into some weirdness with the feedback pot reading. the pot itself is a 5k linear and im reading it on A0 but the values jump around like crazy when the motor is actually running, like 50-100 counts of noise even with a cap across the wiper and ground. im guessing its RF or just the motor brushes dumping noise into everything.
the basic logic is done, i have it talking to hamlib via a python script on a raspberry pi 4 that sits next to the radio and it all chains together pretty cleanly - hamlib talks to the pi, pi sends serial commands to the arduino, arduino runs an H-bridge. works great when its just sitting still. its the feedback loop thats killing me right now.
anyone dealt with motor noise on analog inputs like this? im wondering if i should just switch to a 10-turn pot and do some software averaging or if theres a better hardware fix. also open to just scrapping the pot entirely and going with a gray code encoder if anyone has done that on a rotator.
Link to comment
https://www.hamradiobase.com/forums/topic/7132-using-arduino-to-control-my-antenna-rotator-anyone-done-this/Share on other sites