Idea
In short
How do you build a pan-tilt camera that tracks a face?
The Raspberry Pi AI Camera runs a detection model on its own chip, and two servos turn it to keep a face or object centred. You need Raspberry Pi 5, Raspberry Pi 27 W USB-C power supply, SanDisk microSD card 32 GB (A1, Class 10), Raspberry Pi AI Camera, Servo pan-tilt bracket (SG90), SG90 Micro Servo × 2 and PCA9685 16-channel servo driver.
- Level
- Advanced
- Time
- About 300 min
- Parts
- 7
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal
Use on-sensor AI detections and a P controller to steer pan and tilt.
Parts list
- Single Board Computers
- SBC Accessories
- SBC Accessories
- SBC Accessories
- Motors & Actuators
- Motors & ActuatorsSG90 Micro Servo × 2
- Motor Drivers
How to build it
- Install the IMX500 firmware and examples
- Run an object detection network on the camera
- Read the box centre of the chosen class
- Move the servos a little towards the centre every frame
- Stop moving when it is centred within a margin
Common questions
What parts do I need for the pan-tilt camera that tracks a face?
Raspberry Pi 5, Raspberry Pi 27 W USB-C power supply, SanDisk microSD card 32 GB (A1, Class 10), Raspberry Pi AI Camera, Servo pan-tilt bracket (SG90), SG90 Micro Servo × 2 and PCA9685 16-channel servo driver.
How long does the pan-tilt camera that tracks a face take to build?
About 300 minutes for a advanced maker.
