TINKER PiEDESIGN IN INDIA
Basic

QR Code ScannerRead QR codes with the camera and keep a history of what was scanned.

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

  • How QR codes store data
  • Finder patterns
  • Error correction

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 printed QR code or one on a phone screen

Steps

  1. Type the program from the Code guide, then press Run.
  2. Show a QR code 15 to 30 cm from the camera.
  3. The text appears below. Links can be copied.

How it works

A QR code has three big squares in its corners. The reader finds them, straightens the code and reads the black and white modules as bits. Extra bits for error correction let it work even when part of the code is dirty.

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.
Remembering a value
"last" keeps the previous code so each new code is printed only once.
and
Both checks must be True: there is a code AND it is new.
print()
Writes a line in the Output panel.

Expected output

A green outline on the code and its text in the history list.

Challenges

  • Cover part of the code. How much can you hide?
  • Make your own QR code and scan it.
  • How small can a code be at 50 cm?

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