TINKER PiEDESIGN IN INDIA
Advanced

Face Follower CameraA servo turns to follow your face, like a smart video-call camera.

You write a short TinkerPie Python program by following the Code guide in the workspace, then press Run. The sample program and step-by-step guide are always there to help.

What you will learn

  • Turning a position into an angle
  • Rounding numbers
  • Tracking

What you need

  • TinkerPie AI Cube (ESP32-S3 N16R8 + camera) and a USB-C data cable, or
  • Virtual Cube: any laptop, tablet or phone camera
  • A small servo motor (SG90) on pin 14 of the AI Cube (optional: the Virtual Cube shows an on-screen servo)

Steps

  1. Choose AI Cube or Virtual Cube at the top.
  2. Type the program from the Code guide, then press Run.
  3. Move your head from left to right in front of the camera.
  4. The servo follows you.

How it works

The face box has a centre position from 0 (left) to 1 (right). Multiplying by 180 turns it into a servo angle, so the servo points at you.

Coding concepts

Loop
"while True:" repeats the indented lines once per camera picture.
round()
Makes a whole number.
Mapping
Changing a 0–1 value into 0–180.

Expected output

The servo angle (0 to 180) follows the biggest face; "Nobody" when no face is in view.

Challenges

  • Make the servo move smoothly (small steps).
  • Reverse the direction.
  • Only follow when the face is close.

More Advanced projects

Advanced30 minRobotics, Gesture Recognition

Gesture-Controlled Servo

AI + robotics: the number of fingers sets a servo angle on the AI Cube (0 to 180 degrees).

  • From AI output to motor control
  • Smoothing noisy predictions
  • Safe pin use
Hardware: AI Cube + SG90 servo on the servo pin (or the on-screen servo with the Virtual Cube)AI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera
Advanced20 minImage Classification, Robotics

Deploy Your Model to the AI Cube

Run a model you trained in Model Studio, on the ESP32-S3 chip, with live results over USB.

  • int8 quantization
  • Memory limits of microcontrollers
  • On-device inference speed
Hardware: AI Cube (Virtual Cube runs the same int8 model in the browser)AI Cube: on the AI Cube chip · Virtual Cube: laptop or phone camera
Advanced25 minRobotics, Computer Vision

Colour Sorter Robot

A servo arm points left for red things and right for blue things, like a factory sorting machine.

  • Turning AI results into movement
  • Servo angles
  • Robotics decisions
Hardware: AI Cube with a servo, or the Virtual CubeAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera