Beginner
15 mins
0 points
What you need:

Microbit Teacher Tutorial

1 - What is a Microbit?

The BBC microbit is a pocket-sized codeable computer with motion detection, a built-in compass and Bluetooth technology, which was given free to every child in year 7 or equivalent across the UK in 2016.

The board measures 4 cm × 5 cm and has a processor, accelerometer and magnetometer sensors, Bluetooth and USB connectivity, a display consisting of 25 LEDs, two programmable buttons, and can be powered by either USB or an external battery pack. 

The list of things you can program the Microbit to do is nearly endless. You can program the buttons, LEDs and different sensors to create games and turn the Microbit into things like a pedometer, a compass or even a musical instrument.



2 - Programming a Microbit

In a similar way to Scratch, you can create programs using a special website but you then need to download the program to your computer and then send the program to the Microbit.

  1. Create your program using makecode.com
  2. Download the program to your computer
  3. Send the program to your Microbit by USB cable

3 - The project editor

The makecode.com website is a website provided by Microsoft that lets you create code for different devices such as the Microbit. It has a project editor that is used to create Microbit programs. The editor has 3 main areas:

  1. Microbit Simulator - this is on the left hand side of the screen and simulates how our program will run on a Microbit when we click the run button.
  2. Block Palette - this is in the middle of the screen and has code fragments (called "blocks") that can be dragged onto the scripts area. To keep the palette from being too big, it is organized into groups of blocks: Basic, Input, Music, Led, Radio, Loops, Logic, Variables, Math and Advanced.
  3. Scripts Area - this is on the right hand side of the screen and is where we drag the blocks to create our code and programs.

The blocks 'on start' and 'forever' will appear in the Scripts Area by default for new projects.



4 - Sending code to a Microbit

To send a program that's been created in the project editor to a microbit, you need to connect the microbit to the computer and transfer the downloaded file.

  1. Plug the small end of the USB cable into your Microbit.
  2. Plug the large end of the USB cable into your computer.
  3. Download the code file
  4. Click the Download button (this downloads a .HEX file with the code onto their computer).
  5. Open the folder where the file downloaded to (usually the Downloads folder).
  6. Right click on the file (it should be called 'microbit-project-name.hex').
  7. Click Send To.
  8. Click Microbit.

The file will be sent to the Microbit and a progress bar will appear on the screen. The Microbit will also also flash a light while the file is been sent to it. Once it has completed the program will run on the microbit.

Microbits can only have one program on them at a time. This means that when you send a program to a Microbit, the previous program that was on it is overridden.


5 - Powering a Microbit

The USB cable powers the Microbit when it is connected. However sometimes you might need to have a microbit disconnected from the computer and be more mobile. The battery pack can be used to for these occasions.

  1. Disconnect the USB cable from the Microbit.
  2. Connect the power cable from the battery pack into the battery connector on the Microbit. Make sure to put it in the right way around.


Join our club 😃

To view the remaining 3 steps and access hundreds of other coding projects please login or create an account.

Copyright Notice
This lesson is copyright of Coding Ireland. Unauthorised use, copying or distribution is not allowed.
🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more