VisionTrack Turret — Devlog. I started building an auto-tracking turret using Python, OpenCV, Arduino, and a servo. I first set up the camera and used HSV color detection to identify yellow objects. I then used OpenCV contours to find the object’s center and send its X position to the Arduino through serial communication. The servo was mapped across the camera’s full 0–640 pixel range to control 0–180°.After that, I added PID control to make the servo movement smoother. I also added position smoothing, a dead zone, and a maximum movement step to reduce jitter. I widened the HSV range so the yellow object can be detected under different lighting conditions. Next Steps: Improve PID tuning and reduce remaining jitter. Add a second servo for the Y-axis. Build the 2-axis turret mechanism. Improve target detection and trackingAdd a target-lock system
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.