Teach robotics and AI with the micro:bit
A teacher guide and a student book for ages 10 to 14, built on one robot: the Maqueen Lite V5 with a micro:bit V2. Twenty-eight lessons, from first movement to machine learning, with a suggested time for every part.
Two books, one course
The same lessons, written for each reader
Lesson 7 in the Teacher Guide is Lesson 7 in the Student Book. The guide points to the student's steps by lesson and step number, so the two books always match.
Teacher Guide
- A timed plan for every lesson
- Materials and setup before class
- Common student mistakes and how to fix them
- Answer keys, easier tasks and extensions
Student Book
- Numbered build steps with pictures
- The code in MakeCode blocks and in Python
- A challenge in every lesson
- Check-yourself questions
No programming or electronics background is needed to teach the course. Every program is tested on the robot before it goes into the books.
Ages 10 to 14
The course grows with the student
Students start with MakeCode blocks and move to Python. An advanced track takes able 14-year-olds to work usually met at 16 to 18.
| Lessons | Ages | How students code |
|---|---|---|
| 1–6 | 10–11 | MakeCode blocks first, Python alongside |
| 7–11 | 11–12 | MakeCode and Python side by side |
| 12–20 | 13–14 | Python first, MakeCode alongside |
| 21–28 (advanced track) | Able 14-year-olds | Python only |
The course
28 lessons in two parts
Most classes complete Part 1. Part 2 suits an enrichment group, a club or a competition team. Lesson titles may change as the books are written.
Part 1: Core track
Lessons 1–201 · Meet Your Robot
- 1Meet the micro:bit V2 and the Maqueen Lite
- 2Assembling the robot
- 3Your first program
2 · Movement
- 4Forward, backward, turn, stop
- 5Controlling speed
- 6Drawing shapes
3 · Sensing
- 7Measuring distance
- 8Avoiding obstacles
- 9Line sensors
4 · Light and Sound
- 10LEDs and lights
- 11Buzzer and music
5 · Control
- 12Infrared remote control
- 13Radio with a second micro:bit
- 14Gesture control
6 · AI and Your Robot
- 15What is machine learning?
- 16Train your robot
- 17When AI gets it wrong
7 · Projects
- 18Line-follower robot
- 19Maze solver
- 20Design your own robot
Part 2: Advanced track
Lessons 21–28 · Python- 21Proportional line following
- 22State machines
- 23Measure and calibrate
- 24Data logging and analysis
- 25Build your own classifier
- 26Robot-to-robot radio
- 27Line maze solving with path shortening
- 28Capstone engineering project
Artificial intelligence
Students train a model, then see how it works
From gestures to a classifier of their own
In Unit 6, students record hand movements on a handheld micro:bit, train a machine-learning model with micro:bit CreateAI, a free tool from the Micro:bit Educational Foundation, and use it to drive the robot by radio. Then they test what happens when the training data is poor.
In Lesson 25, advanced students write a simple classifier in Python from data they logged themselves, so machine learning is no longer a black box.
AI chat assistants appear only in a teacher appendix. Many of them set a minimum age of 13 or 18, so the course does not ask students to use them on their own.
The kit
One robot for the whole course
Every lesson uses the same kit, so a school buys once. Plan one robot for every two or three students.
Per group
- DFRobot Maqueen Lite V5. Not V4: the advanced line-following lesson needs the V5 line sensors.
- micro:bit V2 and a USB data cable
- Batteries for the robot
For some lessons
- A second micro:bit V2 (Lessons 13, 14 and 16)
- A computer with a web browser for MakeCode and Python
- A line track, and card to build a maze
- A second robot for Lesson 26
Where to buy the kit in each region will be listed here. This book is independent and is not endorsed by DFRobot or the Micro:bit Educational Foundation.
Lesson code
The code lives here, not only on paper
Each lesson will have its own page with the Python code and a link to the MakeCode project, published as the lesson is tested on the robot. The books will print this address, so the code can be corrected without reprinting.
For schools
Running the course in your school?
The Teacher Guide is written first and is coming to Amazon. Class sets and teacher training for schools in Oman are planned after it is published.