# Teaching children how AI actually works with the BBC micro:bit

Author: John Wright
Published: 2026-12-04
Updated: 2026-12-04
Source: https://schoolleadershiphq.com/articles/microbit-createai-teaching-ai-primary

> Being able to prompt a chatbot is not the same as understanding AI. With the free micro:bit CreateAI tool, primary pupils collect their own data, train a machine learning model, find out where it goes wrong and fix it, learning how AI really works along the way.

Much of the discussion about AI in education has focused on how teachers and pupils might use it: acceptable use, safeguarding, workload and which tools to allow. There is another, equally important question that gets far less attention. How do we teach children to understand it? By that I mean knowing, at an age-appropriate level, what is actually going on underneath: data, training, testing and improving.

The BBC micro:bit has long been one of my favourite tools for teaching computing. Our pupils use them regularly from Year 3 to Year 6, and we occasionally use them with Years 1 and 2 as well, because even our younger pupils are quite capable of simple coding exercises on them. So when I looked at the Micro:bit Educational Foundation's free tool, **micro:bit CreateAI**, I was keen to see whether it could help answer that question. We have not yet used it with pupils, but having worked through it myself, I see no reason why our Year 5 and 6 pupils would not be able to build a project with it, and with the right framing it could work in lower Key Stage 2 too.  If nothing else I like the visual representation of the movement sensor inputs that you get in the training interface.  

## The micro:bit in brief

The micro:bit is a pocket-sized programmable computer, roughly 5cm by 4cm, first launched by the BBC in 2015. It has two buttons, a touch-sensitive logo, an accelerometer, speaker, microphone, a compass, light and temperature sensors, a 5 x 5 LED display, radio and Bluetooth, and pins that take crocodile clips for adding lights, motors and sensors. The newer **V2** board adds a microphone, a speaker and a faster processor. Pupils can program it with Microsoft MakeCode blocks or Scratch, and later move on to Python.

## What is CreateAI?

CreateAI is a new free, web-based tool that teaches machine learning through movement. Pupils wear or hold a micro:bit and record examples of different movements, such as clapping, waving or jumping. CreateAI uses those examples to train a model that learns to recognise each movement. Pupils then open the model in MakeCode, write a program that responds to the movements, and download it to a micro:bit V2, which runs the model on its own, away from the computer.

What I like most is that pupils work with **their own data**. They choose the movements, record them with their own bodies (or other things), see how well the model performs and decide how to improve it. Many everyday devices, such as fitness trackers, use similar underlying principles to recognise activity, so the ideas pupils meet here are the real ones, just at a scale they can see and control.

## Rules versus examples: a new way of thinking about computing

This is, for me, the most important idea CreateAI teaches. Most traditional programs are written based on explicit instructions. Machine learning works in a fundamentally different way.

**Traditional programming**

- A person writes the rules.
- The computer follows the instructions exactly.
- For example: IF the acceleration is above a set value, THEN show an icon.

**Machine learning**

- A person provides examples.
- The computer learns patterns from those examples.
- For example: recognise a clap, having been shown lots of examples of people clapping.

A finished CreateAI project combines both. The machine learning model recognises the movement, but the pupil still writes the code that decides what happens next. I am really excited about the opportunity this now gives us as it should provide for a significant step forward in children's understanding of computing. It will also open up good discussion: why would it be hard to write rules for "a clap"? What would you need to know about every person's clap?

## When the model gets it wrong: bias and representative data

The richest learning often comes when the model fails.

Imagine a pupil trains a model to recognise clapping. It works perfectly for them. Then a friend tries it and the model fails, or confidently identifies the wrong movement. Suddenly the class has a real problem to investigate, and it leads straight to some of the biggest questions about AI in society:

- Why can an AI system work well for some people and less well for others?
- Why does training data need to represent everyone who will use the system?
- Why do the decisions humans make when building AI matter?
- Why can an AI system be confidently wrong?
- Why must an AI system be tested properly before anyone relies on it?

The Foundation builds these ideas into its own teaching materials. Its primary-age unit ends with a lesson on strengthening a model by adding data from a more diverse range of people, and its unit for older pupils looks explicitly at the risks of bias and why AI tools need to work for everyone. A simple classroom activity with a micro:bit on a wrist becomes a way into questions that matter far beyond the computing lesson.

## What you need

- **A device:** a desktop, laptop or Chromebook running Chrome or Edge; an Android tablet using the CreateAI app or Chrome or Edge; or an iPad using the CreateAI app. Phones are not supported.
- **A micro:bit V2 to run the finished model.** Any micro:bit, including the original V1, can collect data and train and test a model, but you need a V2 to code with machine learning in MakeCode and run the model. It is worth auditing your kit, as many schools will have a mix of V1 and V2 boards.
- **A way to connect:** Bluetooth, or a radio link using a second micro:bit plugged in by USB. A V1 used for data collection must connect by Bluetooth, as the radio link is not supported on V1.
- **Batteries and a battery pack**, plus a strap or holder so the micro:bit can be worn on a wrist or ankle.
- **Some prior micro:bit and MakeCode experience** is recommended.

## How it works, step by step

1. **Connect** a micro:bit to CreateAI. This becomes the "data collection micro:bit".
2. **Collect data.** Pupils choose and name at least two movements and record at least three one-second samples of each. Live graphs show the acceleration data on the x, y and z axes. Pupils can spot unusual samples (outliers), but should investigate them before deleting: an odd sample might be a mistake, or it might be a genuine variation the model needs to learn.
3. **Train and test.** Press "Train model", then perform each movement and watch three readouts: the **certainty** (how confident the model is), the **estimated action** (what it thinks is happening) and the **recognition point** (how confident it must be before it counts a movement, adjustable with a slider). Make sure pupils understand that high certainty does not mean the model is right.
4. **Improve.** Add a "still" or "other" action, record samples in different orientations and from different people, add more samples and choose movements that are clearly different from each other. Pupils are debugging data, not just code.
5. **Code.** "Edit in MakeCode" adds a Machine Learning category of blocks for each trained action, so pupils can run code when a movement starts or stops, time how long it lasts or display the model's certainty.
6. **Download and save.** Download the program and model to a micro:bit V2, and save the project as a HEX file containing the data, the model and the code.

## A worked example: can we train an AI fitness tracker?

This sequence, which builds on one of the Foundation's ready-made projects, shows how the steps come together into a meaningful unit of work:

1. **Collect:** record examples of walking, running and standing still.
2. **Train:** build a model that recognises the three activities.
3. **Test:** ask a different pupil to wear the micro:bit and perform the movements.
4. **Investigate:** identify when and why the model gets it wrong.
5. **Improve:** collect more examples from different pupils and retrain.
6. **Program:** create a device that records how long someone spends on each activity.
7. **Evaluate:** compare the device's results with what actually happened.

The crucial step is testing with new people and new examples rather than repeating the movements the model was trained on. It also gives teachers a clear way to assess children's understanding of AI, not just whether they produced a working program.

## Progression across Key Stage 2

The Foundation suggests CreateAI can be used from age 7 upwards and publishes free units at different levels: two **taster lessons** (ages 7 to 11) and a seven-lesson unit, **First lessons with micro:bit CreateAI** (ages 9 to 12). Its eight-lesson unit, **Developing AI literacy with the micro:bit**, is aimed at ages 11 to 14, so it could be useful for stretching confident Year 6 pupils or for sharing with secondary colleagues around transition.

The outcomes below are my suggestions rather than statutory requirements, but they may help computing leaders see where this fits.

**Lower Key Stage 2 (Years 3 and 4): pupils might**

- understand that machines can learn patterns from examples
- collect and label movement data
- train a simple model
- recognise that AI can make mistakes
- use a pre-prepared MakeCode project
- suggest ways to improve a model

**Upper Key Stage 2 (Years 5 and 6): pupils might**

- explain the difference between rule-based programming and machine learning
- design and collect representative training data
- independently train and refine a model
- investigate bias, confidence and accuracy
- develop programs that respond to the model's predictions
- systematically test and evaluate a finished AI-powered system

This sits comfortably within the existing Key Stage 2 computing curriculum: designing, writing and debugging programs, working with inputs and outputs, and using logical reasoning to explain how a system works and to find and correct errors. It also connects naturally to statistics in maths, to working scientifically and to PE.

Because it builds on physical computing that many schools already teach, it develops something familiar rather than starting from scratch. That does not mean it comes without a cost in curriculum time. I plan to add a CreateAI unit to our Year 5 and 6 sequence, which means deciding what we will stop doing to make room for it. That is the perennial challenge of curriculum design, but I think understanding how AI works now earns its place.

## Why this approach makes sense for schools

- **Cost:** the software is free and many schools already own micro:bits. Micro:bits are themselves very good value.
- **Safeguarding:** it is non-generative, so there is no chatbot and no unpredictable generated content.
- **Curriculum:** it builds on existing physical computing provision.
- **Staff development:** it gives teachers a practical, hands-on introduction to machine learning.
- **Lasting value:** pupils learn transferable principles rather than how to use one particular product.
- **Active learning:** it combines screen-based work with physical movement.
- **Inclusion:** movements can be chosen to suit pupils' physical abilities, and the Foundation publishes an accessibility statement for the tool.
- **Assessment:** pupils show understanding by explaining, testing and improving their models.

## Data protection and practical points

CreateAI has some real advantages from a safeguarding and data protection point of view. There are no logins, passwords or pupil accounts. The Foundation states that movement samples are stored locally in the browser or app on the device and are not sent to or stored by the Foundation, and the finished model runs on the micro:bit itself.

Schools should still follow their usual approval process (I have added the site to the directory with DPIA info if that helps). The website uses server logs and analytics, the CreateAI app offers opt-in analytics, and any saved HEX file contains the recorded movement data. Movement data on its own is low risk, but data that is labelled with or can be linked to a named pupil could still be considered personal data, so you may want to think about how files are named and stored.

A few practical points:

- **Check your devices.** Make sure Bluetooth or USB access is not blocked on school laptops and tablets. CreateAI does not currently work inside the micro:bit classroom tool.
- **Plan for saving work.** Because projects live in the browser or app, clearing browser data or shared devices can lose them. Get pupils into the habit of saving HEX files.
- **Build staff confidence.** The Foundation publishes teaching guides, an AI glossary and preparation tips. Working through it yourself is the quickest way to build confidence, and it is exactly what convinced me. A short staff session in which colleagues train a model themselves would do the same for a whole team.

## Glossary for pupils

- **Machine learning (ML):** a type of AI in which a computer learns patterns from data.
- **Accelerometer:** a sensor that measures acceleration in three directions (x, y and z).
- **Action:** a type of movement the model is trained to recognise.
- **Data sample:** a one-second recording of an action.
- **Training:** using the samples to build the model.
- **Certainty:** how confident the model is, which is not the same as being right.
- **Recognition point:** the minimum certainty needed for the model to count an action.
- **Outlier:** an unusual sample that should be investigated before it is kept or removed.
- **Bias:** when a system works better for some people or situations than others, often because of gaps in its training data.

## Project ideas

The Foundation's ready-made CreateAI projects include using a clap to turn on the lights and an activity logger for running, walking and being still. Other ideas that could work well in primary:

- A sports day helper that counts star jumps or skips
- A dance move detector that plays a different tune for each move
- An inactivity detector that reminds you to get moving
- A gesture-controlled quiz buzzer

## Final thoughts

Our pupils are growing up surrounded by AI, but most of it is invisible to them. CreateAI makes it visible. When a child trains a model, watches it get confused, works out that the problem lies in their data and fixes it, they learn something about AI that being told could never give them.

We cannot predict which AI tools our pupils will be using in five or ten years' time. What we can do is give them an understanding of the principles behind those tools. Knowing that AI systems learn from data, can make mistakes, can reflect human bias and need testing before they are trusted is likely to be far more valuable than knowing how to use any particular chatbot.

The BBC micro:bit gives primary schools an accessible, affordable and practical way to start building that understanding. I am looking forward to seeing what our Year 5 and 6 pupils make of it.

## Useful links

- [Launch micro:bit CreateAI](https://createai.microbit.org/)
- [CreateAI user guide](https://microbit.org/get-started/user-guide/microbit-createai/)
- [CreateAI taster lessons (ages 7 to 11)](https://microbit.org/teach/lessons/createai-taster-lessons/)
- [First lessons with micro:bit CreateAI (seven lessons, ages 9 to 12)](https://microbit.org/teach/lessons/first-lessons-with-microbit-createai/)
- [Developing AI literacy with the micro:bit (eight lessons, ages 11 to 14)](https://microbit.org/teach/lessons/developing-ai-literacy-with-the-microbit/)
- [micro:bit privacy policy](https://microbit.org/privacy/)
- [CreateAI accessibility statement](https://microbit.org/accessibility/createai-statement/)

---
Subscribe to the free weekly newsletter: https://schoolleadershiphq.com/newsletter