using arduino to control my antenna rotator - anyone else gone down this rabbit hole
- Replies 1
- Views 35
- Created
- Last Reply
Top Posters In This Topic
-
Jennifer Liu 1 post
-
Steven Brown 1 post
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
so i've been messing around with an arduino mega for the past few months trying to automate my yagi rotator and honestly it started as a simple weekend project and now ive got like 4 breadboards on my desk and a half-finished python script running on a pi 4 thats supposed to talk to the arduino over serial but keeps dropping bytes randomly
the basic idea is the pi handles the logging side and interfaces with my logging software via a virtual com port, and the arduino does the actual PWM stuff to drive the rotator controller. been using a cheap ACS712 current sensor to detect when the rotator hits the mechanical stop instead of relying on the potentiometer feedback alone which works surprisingly well actually
main issue right now is the serial communication dropping out. im using 9600 baud which should be plenty stable but every 20-30 minutes i lose sync and have to restart the script. tried bumping up the buffer on the pi side, tried hardware flow control pins, nothing seems to stick. wondering if anyone else has done something similar or if theres a better way to handle this kind of arduino-pi handshaking for long running stuff
also if anyone has opinions on whether i should just ditch the pi and run everything on the arduino with an ethernet shield id be curious, the pi feels like overkill for this but i like having linux available for the logging part
Link to comment
https://www.hamradiobase.com/forums/topic/7834-using-arduino-to-control-my-antenna-rotator-anyone-else-gone-down-this-rabbit-hole/Share on other sites