TINKER PiEDESIGN IN INDIA
Advanced

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

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

  • From AI output to motor control
  • Smoothing noisy predictions
  • Safe pin use

What you need

  • TinkerPie AI Cube with Advanced firmware and a USB-C data cable
  • SG90 servo motor (signal, 5V, GND)
  • Virtual Cube: the servo is drawn on screen

Steps

  1. Connect a servo to the AI Cube servo pin (signal), 5V and GND.
  2. Type the program from the Code guide, then press Run.
  3. Show 0 to 5 fingers: 0 = 0 degrees, 5 = 180 degrees.
  4. With the Virtual Cube the on-screen servo moves instead.

How it works

AI predictions jump around a little, so robots smooth them: the angle only changes when the same count is seen for several frames. Then the angle is sent to the AI Cube, which makes the servo pulse (500 to 2500 microseconds) on its pin.

Coding concepts

Library
A box of ready-made commands. "import tinkerpie as tp" gives you the AI commands.
Object
A thing with its own commands, like camera or detector. You use them with a dot: camera.start()
Loop
"while True:" repeats the indented lines again and again, once per camera picture.
Maths
angle = fingers × 36 turns 0–5 fingers into 0–180 degrees.
Output to hardware
servo.angle() tells the AI Cube to move the motor. The AI Cube confirms each move.

Expected output

The servo (real or on screen) turns to match your fingers.

Challenges

  • Make 2 fingers wave the servo back and forth.
  • Control two servos with two hands.
  • Build a gesture-controlled gate.

More Advanced projects

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
Advanced30 minRobotics, Image Classification

Smart Face Door

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

  • Face recognition with actions
  • Security ideas
  • Servo control
Hardware: AI Cube with a servo, or the Virtual CubeAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera