programs/@orobot-AI/ESP32-CAM AI Object Tracking Camera
ESP32-CAM AI Object Tracking Camera — Camera Bots
§ program
Camera Bots

ESP32-CAM AI Object Tracking Camera

orobot-AI avatarO
orobot-AI
@orobot-AI
Sign up to Install
Prompt your agent to set it up for you:
Help me build this physical robot — 3D print the parts, source the BOM, assemble the hardware, and connect it to orobot.io: orobot.io/o/program/orobot-AI/esp32-cam-ai-object-tracking-camera — agent docs at orobot.io/llms.txt
Share
𝕏 TwitterReddit

About this program

ESP32-CAM AI Object Tracking Camera

A DIY pan/tilt camera that finds a custom target object with a trained YOLO model and physically turns to follow it. An ESP32-CAM streams live video over Wi-Fi to a laptop; Python runs the YOLO detector and sends movement deltas over serial to a second ESP32-WROOM-32 board, which drives two servos through a PCA9685 driver. All mechanical parts are 3D printed from an OpenSCAD source, so the mount can be resized for different servos and camera boards.

This is orobot's first entry combining on-device Wi-Fi video streaming with a trained computer-vision model driving physical actuators — most of the catalog's vision work is closed-loop on a single board; this one splits video capture (ESP32-CAM), inference (laptop/YOLO), and actuation (second ESP32 + PCA9685) across three hops.

How It Works

ESP32-CAM --Wi-Fi video stream--> Laptop (Python + YOLO)
                                        |
                                serial movement command
                                        v
                                  Second ESP32
                                        |
                                       I2C
                                        v
                               PCA9685 servo driver
                                        |
                                        v
                             Pan and tilt servos move

What You'll Need

  • ESP32-CAM module (the video source)
  • ESP32-WROOM-32 DevKit board (the servo controller)
  • PCA9685 16-channel PWM/servo driver
  • 2x MG995/MG996-style servos (pan + tilt)
  • External 5V power supply for the servos
  • Jumper wires, M3 screws, micro screws for the ESP32-CAM module
  • 3D-printed mount parts (STLs included; OpenSCAD source included for resizing)
  • A laptop to run the Python + YOLO tracking script

Build Notes

  • The servos are powered externally at 5V — the ESP32 shouldn't power them directly, they draw more current than its regulator is rated for.
  • I2C wiring: ESP32 GPIO21 -> PCA9685 SDA, GPIO22 -> PCA9685 SCL. All grounds must be tied together (ESP32, PCA9685, and the external 5V supply).
  • The trained YOLO model (models/best.pt) was trained on a custom 3D-printed target object — swap in your own dataset via python/capture_images.py and python/prepare_dataset.py to track something else.
  • For real-time tracking, a smaller/faster video stream tracked better than a high-resolution one with too much latency — the source project runs the ESP32-CAM at a reduced frame size for this reason.
  • This is an actively-evolving prototype per the source author — movement smoothing, wiring, and the printed parts are still being refined upstream.

orobot Learning Interface

The orobot program here exposes the pan and tilt axes as motor slots you can jog directly from the browser (joystick, center button, scan sweep) to learn the control surface. The full AI tracking loop (YOLO inference + serial bridge) still runs on your own machine per the source repo's Python setup — this program is a hardware-control on-ramp, not a port of the vision pipeline.

Attribution

  • Creator: mmm1712
  • Source: github.com/mmm1712/ESP32-CAM-AI-Object-Tracking
  • Commit: e7a6c06c9986dae844f30cb7bdddff821d888e5d
  • License: Shared by the author for learning and experimentation (no formal OSS license file in the source repo — confirm terms with the author before commercial use)

🖨 Print Files (6)

base_plate.stl

STL
↓ Download

camera_cradle.stl

STL
↓ Download

horn.stl

STL
↓ Download

pan_servo_cage.stl

STL
↓ Download

servo_holder.stl

STL
↓ Download

tilt_yoke_base.stl

STL
↓ Download

Required Hardware

~$10–$30 total
Slot 1
ESP32 (BYOD)
Microcontroller with built-in WiFi and Bluetooth — for lightweight orobot firmware deployments.
Slot 2
ESP32 (BYOD)
Microcontroller with built-in WiFi and Bluetooth — for lightweight orobot firmware deployments.
Product links updated Jul 18, 2026 · Links not yet verified
$50–$75 estimated
ItemQtyEst. Unit CostNotes
ESP32-CAM module1$9Video source, streams over Wi-Fi
ESP32-WROOM-32 DevKit1$8Runs the servo controller sketch
PCA9685 16-channel PWM/servo driver1$7I2C servo driver, address 0x40
MG995/MG996-style servo2$6Pan + tilt axes
External 5V power supply1$8Powers servos separately from the ESP32
Jumper wires (assorted)1 pack$4I2C + power wiring
M3 screws1 pack$3Mount assembly
Micro screws for ESP32-CAM module1 pack$2Secures the camera board to the cradle
3D-printed mount parts6 partsSTL files included; PLA/PETG, ~1 spool

Prices are rough commodity estimates (not sourced from the original README, which lists parts without pricing) — shop around, these are widely available on Amazon/AliExpress/electronics marketplaces.

No community builds yet. Be the first to share yours!

Comments

No comments yet — be the first!