You can use the BBC micro:bit with micro:bit CreateAI, a free web-based tool, to collect real-world movement data from its built-in accelerometer. You train a machine learning model to recognize physical actions like waving, jumping, or clapping, and then code reactions using Microsoft MakeCode. [1, 2]
How the AI Movement Learning Process Works
Connect Device: Pair your micro:bit (micro:bit V2 is recommended for running models locally) to the browser tool via USB or web Bluetooth. [1, 2]
Collect Data: Define distinct gestures or movements (such as shake, wave, or still) and record multiple live motion samples using the accelerometer. [1, 2, 3, 4]
Train Model: Run the machine learning training right inside your browser window using your custom movement data. [1]
Test and Refine: Perform the actions live to check accuracy percentages, then record more samples if the model misinterprets a movement. [1, 2]
Deploy and Code: Export your trained model blocks into Microsoft MakeCode to program LEDs, sounds, or connected objects to react when a specific movement is detected. [1, 2]
Micro:bit CreateAI allows you to explore the vital role data plays in AI systems, and develop AI literacy. It also helps to consolidate computer science learning and skills of data literacy used in mathematics and science.
You can find tips for using CreateAI in your classroom in our Teaching tools page and learn about AI terms and language in our AI glossary.
Get started with micro:bit CreateAI by trying out our ready-made AI projects and watching our getting started video.
Machine learning (ML) is a type of AI where computers can learn from and make decisions based on data. It's widely used to power many kinds of technology, including smart fitness trackers and tagging photos with the names of your friends.
ML also works well in education because it can be simplified to work with small sets of data. This makes it ideal for classroom use with the micro:bit, allowing students to experience how ML works for themselves using personal movement data they gather from the micro:bit's accelerometer sensor.
To use micro:bit CreateAI, you will typically follow these steps:
Connect a micro:bit to the micro:bit CreateAI tool
Collect movement data using the micro:bit
Train and test the ML model
Improve the ML model, re-train and re-test the model
Use your ML model in a MakeCode program
Download your MakeCode program and model to a micro:bit
Optionally, save your CreateAI project for sharing or working on later