TINKER PiEDESIGN IN INDIA
Advanced

Smart Face DoorOpen a servo "door" only for faces you taught, and keep it locked for everyone else.

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

  • Face recognition with actions
  • Security ideas
  • Servo control

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. Teach your face with Remember face.
  4. Look at the camera: the door opens. Someone else: it stays locked.

How it works

The recogniser compares the 3D shape of a face with the faces you taught. When a known face is seen, the servo turns to 90° (open); otherwise it stays at 0° (locked).

Coding concepts

Loop
"while True:" repeats the indented lines once per camera picture.
known
How many faces in view were taught.
names
The list of names, one per face.

Expected output

"Door locked" for unknown faces; "Welcome NAME" and the servo at 90° for a taught face.

Challenges

  • Keep the door open for 3 seconds.
  • Beep twice for strangers.
  • Log every visitor with print().

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