TINKER PiEDESIGN IN INDIA
Advanced

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

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 AI results into movement
  • Servo angles
  • Robotics decisions

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)
  • Red and blue objects

Steps

  1. Choose AI Cube or Virtual Cube at the top.
  2. Type the program from the Code guide, then press Run.
  3. Hold a red or a blue object in front of the camera.
  4. The servo turns to the matching side.

How it works

Factories sort parts by colour with a camera and a moving gate. The program reads the biggest colour patch and sets a servo angle: 30° for red, 150° for blue, 90° (middle) for nothing.

Coding concepts

Loop
"while True:" repeats the indented lines once per camera picture.
Servo angle
0 to 180 degrees.
Actuator
A part that moves, controlled by your program.

Expected output

The servo angle and colour on screen; the on-screen servo (or your real servo) turns.

Challenges

  • Add green at 60°.
  • Wait 1 second between moves.
  • Count how many of each colour were sorted.

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
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