TINKER PiEDESIGN IN INDIA
Intermediate

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

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

  • Collecting a balanced dataset
  • Training and validation
  • Confusion matrix
  • Deploying to the ESP32-S3

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
  • Clean waste items: plastic bottle, paper, metal can, fruit peel

Steps

  1. Open Model Studio from the Code guide link: it starts a "Waste sorter" project with four classes ready.
  2. Collect 30+ pictures per class from different angles and backgrounds, train, then read the accuracy and the confusion matrix. Save the model.
  3. Come back here and type the program from the Code guide.
  4. Press Run. With the AI Cube connected, your model is sent to the cube and runs on the chip.

How it works

Real sorting machines use cameras and AI just like this. A good dataset is balanced (same number of pictures per class) and varied (different light, angles and backgrounds). The confusion matrix shows which classes the model mixes up so you know what to collect next.

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.
Your own model
Build and train the "Waste sorter" model in Model Studio first.
and
Act only when the label is right AND the AI is sure (score above 0.8).

Expected output

A trained model with an accuracy score, a confusion matrix and live predictions; on the AI Cube the same model runs on the chip.

Challenges

  • Get above 90% validation accuracy.
  • Add a fifth class: glass.
  • Test with objects the model has never seen.

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
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
Intermediate20 minCamera AI, Computer Vision

Image Processing Pipeline

Chain filters like an OpenCV pipeline and see each step: grayscale, blur, threshold, edges.

  • Pre-processing for AI
  • Kernels and convolution
  • Thresholding
Hardware: AI Cube or any webcamAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera