Skip to content

Teaching tools

Learning with the micro:bit in class

This page focuses on our tools that support teaching and learning with the BBC micro:bit, including tips for organising successful and creative classroom sessions.

micro:bit classroom

You can use micro:bit classroom to run a live code session with your class using Microsoft MakeCode or the micro:bit Python Editor. No registration or accounts are necessary for either teacher or student.

Start a new session quickly

Either choose 'New blank session' from the micro:bit classroom home page or start a session by selecting the 'Open in classroom' button in projects or lessons on the micro:bit website.

As part of the set up process you can:

  • Name your session
  • Choose whether students will be working with MakeCode or the micro:bit Python editor
  • Edit the starter code that students see when they join the session
Screenshot of the new session setup screen

Students join easily (no accounts needed)

Students join easily via a link or by entering a classroom name and password. Access these from the 'Invite' menu once you have started the session (or in the left hand column if no students have joined yet).

Note that the link and classroom name and password are likely to change if you continue a session at a later time.

Screenshot show where to find the link or joining details in micro:bit classroomScreenshot showing example of joining details

Share code with your students

You can edit the code students see when they join as part of setting up a new session.

You can also send code (from your coding space or any of the students') to one or more students at any time. Although, beware, this will overwrite the code they already have.

Screenshot highlighting the 'Send code' optionScreenshot showing the 'Send code' dialog box

View and edit students' code

Select individual students and see their code as they write it. If they get stuck, you can edit their code, try it in the simulator or download it to your micro:bit. You can even share any changes you make back to the student.

Note that any code you share with the student will overwrite the code they already have.

Screenshot highlighting the link to edit a student's codeScreenshot showing the teacher editing a student's code

Save student code for review

Download a copy of the students' code as a word document by choosing 'Save session report' from the Save menu. This contains images (MakeCode) or text (Python) of each student's code in a single report.

Screenshot highlighting button to download session report.

Save the whole session to continue at a later date

Your most recent classroom session will be automatically saved in your browser's temporary storage. Simply continue the session by selecting it from the home page. When you continue a saved session, students can rejoin and continue coding from where they left off.

Screenshot of the home page indicating the open last session option

To keep a permanent copy, choose 'Save session as a file' from the save menu or when you choose 'End session' choose 'Save and end'. This will save a file to your local computer. To continue with the session later, select 'Continue a saved session' link on the micro:bit classroom home page and choose the downloaded file. This is particularly useful if you run sessions with different classes or on different computers or browsers.

Screenshot of how to save classroom to continue later

Students save their work to continue outside micro:bit classroom

Students are also encouraged to download their own project to their local computer at the end of the session. This is useful if they would like to continue coding between sessions.

Screenshot showing message students see when they leave a session.

If they download their project to their local computer they can move the file to their preferred location (such as into cloud storage if they have access to it). They can then open it in MakeCode or the micro:bit Python editor outside classroom to continue working on it between classes. Similarly they can open it within micro:bit classroom again at the start of the next session by dragging and dropping the downloaded hex file onto the coding area inside micro:bit classroom once they have joined.

Screenshot showing opening where to import the downloaded file in MakeCode
Try micro:bit classroom

micro:bit CreateAI

micro:bit CreateAI is a free, web-based tool that makes it easy for students to explore AI through movement and machine learning, and take it into the real world with a BBC micro:bit.

Add AI to your micro:bit learning experience. Students collect their own data to train, test and improve machine learning (ML) models to recognise and respond to different movements. They can then create programs using these models in MakeCode, and use them on micro:bits anywhere.

Getting started

We recommend you try CreateAI out for yourself before using it in class. You just need one or two micro:bits with a USB data lead, a battery pack, and a computer with the Chrome or Edge web browsers that can access the CreateAI web page.

The video above walks you through how micro:bit CreateAI works, from collecting data, through training, testing and improving machine learning (ML) models, to using them in MakeCode programs.

You can find more details about what you need and technical requirements in the micro:bit CreateAI user guide.

Classroom resources

We’ve created a micro:bit CreateAI glossary and two Make it: code it projects to help you explore AI with your students. Each project will take between 60 and 90 minutes.

Teaching tips

  • Student preparation: we recommend your students have some experience of using the micro:bit before using CreateAI. This could be as simple as completing the Step counter project which gets your students confident with putting code on the micro:bit, using battery packs and familiarises them with the micro:bit's accelerometer, its built-in movement sensor. This project also makes a good comparison with the Simple AI exercise timer and AI activity timer projects.
  • Paired work is particularly powerful when working on AI projects. Students can take turns to wear the micro:bit and collect and analyse training data.
  • Plan how much equipment you need: one computer (desktop, laptop or Chromebook) per pair of students, plus a micro:bit V2, battery pack, USB lead and some way to attach a micro:bit to arms, legs or other things that move!
    • If your student computers don’t have Bluetooth enabled, you’ll need one extra micro:bit V2 per pair of students. Read more about what you need in the CreateAI user guide.
    • If you need to use an extra micro:bit this way, hand out the data collection micro:bit first (this is the micro:bit your students will move or wear). This will save any confusion about which micro:bit to plug in and set up first.
  • Plan your lesson time: we recommend allowing between 60 and 90 minutes of classroom time to complete the Simple AI exercise timer and AI activity timer projects. It can work well to test and improve the ML in one lesson, before moving into MakeCode in the next lesson.

Saving and resuming CreateAI projects

If you want to work on your CreateAI project at a later time, save it as a single HEX file which contains:

  • all your recorded data
  • your ML model
  • the code blocks in your MakeCode program

You can resume your CreateAI session by dragging the HEX file on to the CreateAI page or use the ‘Continue a saved session’ button when you open CreateAI.

Find out more about saving and resuming projects in the CreateAI user guide.

Curriculum and learning links

You can read more about the learning opportunities micro:bit CreateAI brings in our article 'Teaching and learning about AI with the micro:bit'.

As well as helping students learn about how AI works, micro:bit CreateAI can be used to consolidate skills and knowledge in other familiar subject areas:

Computer science and ICT

Because CreateAI includes a coding element, it supports learning about:

  • Computational thinking skills: algorithms, abstraction, decomposition and pattern recognition
  • Coding and related skills like debugging, resilience, collaboration
  • eSafety, awareness of personal data

Mathematics and science: data literacy

  • Collecting data
  • Visualising and interpreting data in graphs to aid understanding and help make decisions
  • The importance of accuracy and risks of bias in data

Design and technology

  • Iterative design when training an ML model, testing it, and improving it
  • Designing and testing wearable tech from scratch
Try micro:bit CreateAI

Microsoft MakeCode

Microsoft MakeCode, our official block-based coding editor, offers tools to support teachers working with a class of students including:

Screenshot showing dialogue to share a MakeCode project

Share your project

Create a public link to share a MakeCode project. Use this to share code with your students or get your students to share their code with you.

MakeCode screenshot highlighting the link to share a project.Screenshot showing MakeCode share project dialogue

Set a Microsoft Teams assignment

Attach a MakeCode project to a Teams assignment if you have Microsoft Teams accounts.

Save a MakeCode project

MakeCode projects are stored in temporary storage on your local computer as you create them, however these are lost if your temporary storage is cleared and can only be accessed on the same computer / account.

To save a MakeCode project permanently, download it to your local computer using the link highlighted in the image below (and move it to a folder of your choice, if desired).

MakeCode with the project name and save button highlighted using a square red box.
Try MakeCode

micro:bit Python Editor

The micro:bit Python Editor, our official text-based coding editor, is designed for use in the classroom.

Save a Python project

Your most recent python project is stored in temporary storage on your local computer as you create it. However, this will be lost if temporary storage is cleared and cannot be accessed from another computer or account.

To permanently save your Python project, use the Save button to download the project to your local computer. You can also save the code as a .py text file, this is small file that is easy to share.

Screenshot of dialogue for saving a python project
Try micro:bit Python Editor