Skip to content
RoboLearn
Not completed

AI on small boards

AdvancedAdvanced35 minBefore this: Computer vision basics

What you’ll learn

  • What “edge AI” and “TinyML” mean
  • The train → convert → deploy workflow
  • Which hardware fits which kind of model

AI at the edge

Edge AI means running a trained model on the robot itself instead of sending data to the cloud. That’s faster (no network delay), works offline and keeps data private. TinyML is the extreme version: tiny models on microcontrollers using milliwatts.

The workflow

  1. Collect data: recordings of sounds, accelerometer movements or photos, with labels.
  2. Train a model on a computer (or a free online tool).
  3. Convert/compress it for the target: for example to TensorFlow Lite / LiteRT format, often with quantization (8-bit numbers instead of 32-bit) to make it 4× smaller.
  4. Deploy to the board and run inference: feed in new data, get predictions.

Beginner-friendly tools: Google Teachable Machine (train image, sound or pose models in the browser) and Edge Impulse (data collection to deployment for many boards).

What runs where

Hardware Good for
Microcontrollers (ESP32, Arduino Nano 33 BLE / RP2040 class) Keyword spotting, gesture recognition from an IMU, simple sensor anomaly detection
Raspberry Pi 5 Small image classifiers and detectors at modest frame rates
Pi + AI accelerator (e.g. Raspberry Pi AI Kit), Jetson-class boards Real-time object detection
Boards that combine a Linux processor and a microcontroller (e.g. Arduino UNO Q) Vision/AI on the Linux side, real-time control on the MCU side

Limits

Small models make mistakes, especially with data unlike their training set. Always add rule-based safety checks around AI decisions on a moving robot.

Finished this lesson?