Module 3: Transferring Code to the BBC micro:bit

Read and Watch

The first thing you will need to do before connect your device to your computer is to learn about how to safely handle your new device. Before continuing, be sure to read the micro:bit safety instructions.

The BBC micro:bit can be connected to a computing device in a couple different ways.

  • You can directly connect the BBC micro:bit to your computer/laptop using the provided USB cable.
  • You can wirelessly connect the BBC micro:bit to your computer/laptop/tablet/phone via Bluetooth.

The two processes look quite different so it is worth practicing whichever you will be asking your learners to use. WATCH the videos below and READ the information provided in the Quick Start guide to learn how to connect your micro:bit to a computer, tablet, or phone.

Using a USB cable?

  • If you are connecting your micro:bit via a USB cord, you can plug the micro:bit into your computer just like a jump drive (also called a USB drive or thumb drive). When you have successfully connected the micro:bit, a solid yellow light should illuminate on the back of the micro:bit.

  • Next, download the program as a 'hex' file. You won't open this file with your computer, but you will drag-and-drop it from your Downloads folder to the micro:bit.

  • Need a quick video tutorial? Check out this video!

Using a Bluetooth wireless connection?

  • If you are using a tablet or smart phone, you can check out the mobile apps guide for steps and instructional videos.

Using an iPad or iPhone?

Using an Android device?

Make and Do

First things first-- if you don't have a BBC micro:bit yet, you will need one to complete this portion of the training. The BBC micro:bit is available from a number of resellers in the U.S. and other countries. The cost for the kit is generally about $20.

If you have your BBC micro:bit kit, now's the time take it out of the box! Inside each individual BBC micro:bit kit, you should find a micro:bit, battery pack (including two batteries), a USB cable, and an instruction sheet.

Next, open the project you created in the MakeCode for micro:bit editor (Flashing Heart, Name tag, or Smiley Faces) in Module 1. It should be saved in the micro:bit app or in the browser-based platform.

Transfer the program you created to the BBC micro:bit device using what you learned in the readings and videos.

Reflect and Share

Reflect on the following questions:

  • Think about your experience connecting the BBC micro:bit and transferring the code. What parts were confusing or frustrating? Which parts were easy or enjoyable?
  • Share a celebratory video with the group on Flipgrid and tell us a little about your experience! There is something special about the first time you are able to see your program move from the simulator in the MakeCode editor to holding your programmed BBC micro:bit in your hand!

Go to Module 4