← Code

AI robots

Drive a robot with a model you trained, on the computer or on your wrist. Turn labels into moves, keep the robot safe when the model is unsure or goes quiet, and make it more careful where a mistake costs more.

Start1. Drive with gestures

Drive with a model

Labels from a webcam model or a wrist model become modes the robot acts on, with a safe action when the model is unsure or silent.

1Drive with gesturesNot started

A model's label reaches the robot as a word, and the robot turns it into a mode. The robot keeps acting on the last mode until a new label arrives.

  1. Predict
  2. Run
  3. Investigate › Who decides
  4. Investigate › Mia's robot
  5. Investigate › Mode and forever
  6. Modify › Back
  7. Modify › Show what it heard
  8. Make
Start lesson
2A wrist remoteNot started

A model can run on the remote itself. A wrist micro:bit running a CreateAI model turns its own movements into the same words the webcam sent, so the robot's program doesn't change and no computer or camera is needed.

  1. Predict
  2. Run
  3. Investigate › Unknown
  4. Investigate › Holding a tilt
  5. Investigate › Which model where
  6. Modify › Unsure means stop
  7. Modify › Show what you sent
  8. Make
Start lesson
3When the model is unsureNot started

A robot driven by a model needs a safe action for when the model is unsure and for when it goes quiet. The board sends Unsure and repeats its label; the robot stops on Unsure, and a watchdog stops it when nothing arrives.

  1. Predict
  2. Run
  3. Investigate › Unsure or silent
  4. Investigate › Why repeat
  5. Investigate › Why stop
  6. Modify › A quicker watchdog
  7. Modify › Show unsure
  8. Make
Start lesson

Costly mistakes

Some mistakes matter more than others, so some actions need more confidence.

4Signs: some mistakes cost moreNot started

Mistaking Stop for Go is worse than mistaking Left for Right, so the robot should need more confidence before a risky action than a safe one. The board asks 95% for Go and 70% for the rest; the robot also waits for Go twice in a row.

  1. Predict
  2. Run
  3. Investigate › Lower
  4. Investigate › Higher everywhere
  5. Investigate › Where caution goes
  6. Modify › Stop at once
  7. Modify › Go twice
  8. Make
Start lesson

Final challenge: Delivery robot

A sign-driven delivery robot whose own sensor can overrule the model, built in milestones.

5Delivery robotNot started

Build a sign-driven delivery robot in three milestones. Its own distance sensor overrules the model, it reports back through the bridge, and it counts its deliveries.

  1. Predict
  2. Run
  3. Investigate › Model or sensor
  4. Investigate › Jo's robot
  5. Milestone 1: the sensor wins
  6. Milestone 2: report back
  7. Milestone 3: deliveries
Start lesson

Progress is saved in this browser only. Nothing is sent anywhere.

For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)