Skip to content

Robotics

Material for the robotics lesson, where you teach a rover to learn its way around an exoplanet grid, with an AI co-pilot.

Worksheet

Additional material

Extra resources for the lesson, and ready-made code in case you get stuck.

Write and flash your code at python.microbit.org

All the code for this lesson — calibration, the RL grid, and the Cutebot — is written and flashed to the micro:bit at python.microbit.org. That's where you paste or upload any of the files below.

Calibrate your rover

  • cutebot.py — required library; add this to your micro:bit project before your own code.

Q values simulation

A notebook with pictures and a simulation of how Q values evolve throughout learning.

Click Open in Colab to run it in your browser without installing anything, or download the .ipynb file to run it locally.

Run it Download
Open in Colab .ipynb

RL grid on the micro:bit

The .hex and .py files below are ready to flash and use directly on the micro:bit — you don't need to write this code yourselves if you get stuck.

Cutebot

  • cutebot.py — required library; add this to your micro:bit project before your own code.
  • RL_cutebot.hex — ready to flash straight onto the micro:bit.
  • RL_cutebot.py — ready to paste directly into your micro:bit project.