programs/@BROKER-2/Turret Face Tracker
Turret Face Tracker — Camera Bots
1 / 4
Turret Face Tracker — Camera Bots
Turret Face Tracker photo 2
Turret Face Tracker photo 3
Turret Face Tracker photo 4
§ Programm
Camera Bots

Turret Face Tracker

BROKER-2 avatarB
BROKER-2
@BROKER-2
Registrieren, um zu installieren
Lass deinen Agenten es einrichten:
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/BROKER-2/turret-face-tracker — agent docs at orobot.io/llms.txt
Teilen
𝕏 TwitterReddit
Bist du der Ersteller dieses Roboters?
Beanspruche dieses Projekt auf orobot.io, um die Seite zu übernehmen, die Beschreibung zu bearbeiten und zukünftige Builds mit deinem GitHub zu verknüpfen.

Über dieses Programm

Turret Face Tracker — An ESP32 Head That Watches You Back

A two-servo pan/tilt turret with an onboard ESP32-Wrover camera that detects a face in its own video frame and turns to keep it centered — no laptop, no external vision server, no cloud inference. Camera capture, face detection, and the proportional pan/tilt control loop all run on the microcontroller itself. Point it at a desk, connect to its local WiFi web UI, click "Start Stream," and it starts hunting for your face.

Built for a high-school computer-technology class (TEJ) by Rylan Hachey, Ashish Agrahari, and Noah Raymond, using the stock ESP32 camera example's face-detection pipeline as the vision core.

How It Works

  • An ESP32-Wrover module (PSRAM required — needed for the frame buffer that face detection runs against) hosts its own WiFi access point and a browser-based camera viewer.
  • Enabling "Face Detection" in that viewer draws a box around any face in frame and exposes its x, y, width, height through the sketch.
  • The main loop maps the face box's offset from center into pan/tilt servo angles (map() from pixel offset to ±90°), moving two SG90-class micro servos on 3D-printed brackets.
  • If no face is seen for ~500 loop iterations, it drops into a search mode: sweeping pan back and forth and stepping tilt, until a face reappears.

Build Overview

  • Compute + camera: ESP32-Wrover dev board (Freenove or similar, PSRAM required for face detection)
  • Actuators: 2x SG90-class micro servos — pan (pin 12) and tilt (pin 13)
  • Structure: 3D-printed camera mount, pan bracket, and tilt bracket (originally modeled in Autodesk Inventor; STLs included)
  • Firmware: Arduino IDE sketch (ESP32_FaceTrackingV5), built on Espressif's esp_camera + ESP32Servo libraries

Wiring

  • PAN servo signal → ESP32 pin 12
  • TILT servo signal → ESP32 pin 13
  • Both servos' power → ESP32 VCC
  • Both servos' ground → ESP32 GND

Flashing the Firmware

  1. Install ESP32 board support in the Arduino IDE (setup guide).
  2. Board: ESP32 Wrover Module. Partition Scheme: Huge APP (3MB No OTA/1MB SPIFFS).
  3. Set your WiFi SSID/password in the sketch, upload to the board.
  4. Find the board's IP (Serial Monitor, or your router's client list) and open it in a browser.
  5. Click Start Stream, set XCLK = 10MHz, enable V-Flip, Resolution = QVGA (320x240), WB Mode = Sunny, then enable Face Detection.
  6. Sit in frame — the turret should start tracking your face.

Note on orobot Control

This build's face-tracking loop is entirely self-hosted on the ESP32 — it does not speak the orobot device protocol, so full closed-loop autonomous tracking happens on the board itself, reachable through its own local web UI rather than through orobot.io. The control interface on this page is a learning stub: a simplified pan/tilt joystick/pose demo using the same 2-servo shape, so you can explore the orobot Program IDE API alongside the original firmware. Flash the linked Arduino sketch to your ESP32-Wrover for the actual closed-loop face-tracking behavior shown in the photos.

Attribution & License

  • Creators: Rylan Hachey, Ashish Agrahari, Noah Raymond (FHCI, TEJ Computer Technology class)
  • Source repository: github.com/AshishA26/Turret-Face-Tracker
  • License: No license file is published in the source repository (defaults to all-rights-reserved under GitHub's terms) — this Program links to and credits the original source rather than redistributing it under an open license. 3D-printed parts (STL) are mirrored here for convenience with full attribution; consult the original authors before commercial reuse.

🖨 Druckdateien (4)

ServoESP32V3Arm.stl

STL
↓ Herunterladen

ServoESP32_V2_LBracket.stl

STL
↓ Herunterladen

ServoESP32_V3Base.stl

STL
↓ Herunterladen

ServoESP32_V3_Tilt.stl

STL
↓ Herunterladen

Benötigte Hardware

~$5–$15 total
Steckplatz 1
ESP32
Microcontroller with built-in WiFi and Bluetooth — for lightweight orobot firmware deployments.
Produktlinks aktualisiert Jul 18, 2026 · Links noch nicht überprüft
$35–$55 estimated
ItemQtyEst. CostNotes
ESP32-Wrover dev board (w/ camera)1$20-25PSRAM required for on-device face detection
SG90-class micro servo2$3-5 eachPan (pin 12) + tilt (pin 13)
3D-printed mount + pan/tilt brackets1 setfilament onlySTL included, originally Autodesk Inventor
Breadboard + jumper wires1$5-10Power + servo signal wiring
Micro-USB cable1$3Flashing + power
Noch keine Community-Projekte vorhanden. Seien Sie der Erste, der seines teilt!

Kommentare

Noch keine Kommentare – seien Sie der Erste!