TINKER PiEDESIGN IN INDIA
Basic

Traffic Light ReaderRead a red, yellow or green card like a traffic light and say STOP, WAIT or GO.

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

  • Colour detection
  • Matching colours to actions
  • if / elif chains

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
  • Red, yellow and green paper or 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 up a red, yellow or green card.
  4. The screen shows STOP, WAIT or GO.

How it works

The colour detector groups pixels by colour and finds the biggest patch of each colour you asked for. Self-driving cars use colour and shape together to read real traffic lights.

Coding concepts

Loop
"while True:" repeats the indented lines once per camera picture.
None
None means "nothing": no colour was found.
elif
Check the next condition only if the ones before were false.

Expected output

STOP for red, WAIT for yellow, GO for green, and "No light" when none of the colours is in view.

Challenges

  • Beep when the light is red.
  • Add "blue" as a "turn" signal.
  • Does it still work far away?

More Basic projects

Basic10 minComputer Vision, Object Detection

Face Detection

Find every face in the camera picture and draw a box around it.

  • What a "detector" is
  • Bounding boxes and confidence
  • Why light matters for AI
Hardware: AI Cube or any webcamAI Cube: on the AI Cube chip · Virtual Cube: laptop or phone camera
Basic15 minComputer Vision, Image Classification

Face Recognition

Teach the AI your name, then it says who is in front of the camera.

  • Detection vs recognition
  • Saving a face "signature"
  • Matching with a distance threshold
Hardware: AI Cube or any webcamAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera
Basic10 minComputer Vision, Gesture Recognition

Finger Counting

Show your hands and the AI counts your fingers, from 0 to 10.

  • Hand landmarks (21 points per hand)
  • Turning points into rules
  • Testing an AI fairly
Hardware: AI Cube or any webcamAI Cube: in the browser, AI Cube camera · Virtual Cube: laptop or phone camera