TINKER PiEDESIGN IN INDIA
Basic

Motion AlarmThe camera notices movement and sounds an alarm, like a security camera.

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

  • Comparing frames
  • Sensitivity
  • Alarms and events

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. Type the program from the Code guide, press Run and keep still.
  2. Wave your hand. The moving area lights up.
  3. Turn on the alarm sound and set the sensitivity.

How it works

The program keeps the previous picture and compares it with the new one, piece by piece. Pieces that changed a lot are movement. This is how many security cameras and nature cameras wake up.

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.
True / False
result.moving is True when enough of the picture changed.
Sensitivity
A lower number notices smaller movements.

Expected output

Highlighted moving areas, a motion meter and an alarm when motion is above the limit.

Challenges

  • Find the lowest sensitivity that ignores a fan.
  • Count how many times someone walks past.
  • Why do lights switching on cause false alarms?

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