Visual Closed-Loop Pan-Tilt Targeting Turret
Implement visual servoing to autonomously steer a two-axis pan-tilt camera toward moving colored objects and faces.

Project Overview & Working Principle
Connect computer vision perception to physical actuators. Students process webcam video frames, extract centroid errors relative to camera center, and compute proportional servo angle adjustments to track targets smoothly.
Engineering Concepts Explored
Bill of Materials & Components
Verify you have all parts before starting. Official ROBOCADIA modules link directly to authentic hardware specifications.
Required Workbench Tools & Software
Step-by-Step Build & Firmware Guide
Follow each phase in chronological sequence to assemble mechanics, wire sensors, and deploy firmware.
Pan-Tilt Mechanics Assembly
Assemble aluminum brackets and center both servo splines at 90 degrees.
- Power servos at 5V while zeroing horns to avoid gear binding.
OpenCV Color Tracking Script
Write Python HSV filter loop extracting target centroid X/Y coordinates.
- Use cv2.inRange and calculate spatial moments to find object center.
Closed-Loop Proportional Tracking
Send delta angle increments over serial to center target in camera frame.
- Implement a deadband threshold so servos do not jitter when target is centered.
Project Summary
ANT Visual Servoing Pan-Tilt Tracker
2-Axis high-speed pan-tilt camera turret with closed-loop PID object targeting firmware.
- Low-backlash aluminum bearings
- Modular mounting for robotic rovers
Close the loop between pixels and motors: color tracking, facial landmark following, and ArUco fiducial navigation.
View CurriculumGet pre-sorted classroom packs with teacher guides, spare components, and structured student worksheets.
Configure Classroom Lab