TINKER PiEDESIGN IN INDIA
Intermediate

Motion Direction FinderFind where movement happens: on the left, in the middle or on the right.

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

  • Where motion is
  • Splitting the picture into parts
  • Ranges of numbers

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

Steps

  1. Choose AI Cube or Virtual Cube at the top.
  2. Type the program from the Code guide, then press Run.
  3. Wave on the left, then in the middle, then on the right.
  4. The screen shows where the motion is.

How it works

The motion detector compares each picture with the one before. Its x value says where the change is centred: 0 is the left edge, 1 the right edge.

Coding concepts

Loop
"while True:" repeats the indented lines once per camera picture.
not
"not result.moving" is True when nothing moves.
Thirds
0.33 and 0.66 split the picture into three parts.

Expected output

"Still" when nothing moves, otherwise "Left", "Middle" or "Right".

Challenges

  • Split the picture into 4 parts.
  • Use it to steer a game.
  • Print every direction change.

More Intermediate projects

Intermediate20 minGesture Recognition, Image Classification

Hand Sign Recognition

Create your own hand signs, record examples and train a classifier on the hand points.

  • Features instead of pixels
  • Nearest-neighbour classifiers
  • Accuracy testing
Hardware: AI Cube or any webcamAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera
Intermediate30 minImage Classification, Computer Vision

Waste Classification

Build a model that sorts plastic, paper, metal and food waste, then put it on the AI Cube.

  • Collecting a balanced dataset
  • Training and validation
  • Confusion matrix
Hardware: AI Cube (for deployment) or any webcamAI Cube: on the AI Cube chip · Virtual Cube: laptop or phone camera
Intermediate20 minObject Detection, Computer Vision

Object Counter & Zones

Count chosen objects, draw a zone and get an alert when something enters it.

  • Filtering detections
  • Regions of interest
  • Events from AI results
Hardware: AI Cube or any webcamAI Cube: on the AI Cube chip · Virtual Cube: laptop or phone camera