Skip to content

First steps

Set up your micro:bit

It's really simple to learn to code with your BBC micro:bit

Program

Tell your micro:bit what to do by giving it instructions. Sets of instructions for computers are called programs and are written in code.

You can program your micro:bit in the online MakeCode block or Python text editors. Let's code helps you choose the one that's right for you.

To access an editor you need either:

  • A computer with a web browser and internet access or
  • A mobile device with the free micro:bit app for Android phones and tablets or iOS (iPhone and iPad) - MakeCode available only

Then you'll need to transfer your program onto the micro:bit to make it work.

Connect

To make your micro:bit work you need to copy your code from the editor to the device.

Connect your micro:bit to your computer or mobile device. You will need:

  • Computer - use a USB cable to connect to your micro:bit
  • Mobile apps - use Bluetooth to connect your micro:bit to your phone or tablet

Transfer from a computer

Transferring your program to your micro:bit is called flashing because it copies your program into the micro:bit’s flash memory.

Your micro:bit will pause and the yellow LED on the back will blink while your program is being transferred. Once it’s copied across, your program starts running on your micro:bit.

There are two ways to transfer your program:

  • Drag and drop works like copying a downloaded file from your computer to a USB memory stick. It works on any computer.
  • Direct flashing sends your program directly from the code editor to your micro:bit. It works on two popular web browsers.

Drag and drop

When you plug the micro:bit into your computer's USB socket, it will appear like a USB memory stick called MICROBIT.

Download your program as a .hex file from the code editor to your computer, usually to your downloads folder. Then drag and drop it onto the MICROBIT drive.

See how it works in:

Direct flashing

You can send programs direct from the online code editors to your micro:bit without the need to download and copy a .hex file. You'll need to use the editors in a recent Chrome or Edge web browser for this to work. You may need to update your micro:bit firmware to allow direct flashing, if you got the device a long time ago.

Note: direct flashing is quick and easy, but it does not save a copy of your program on your computer. If keeping a copy of your code on your computer or local network drives is important to you, use drag and drop instead.

Direct flashing from MakeCode

Direct flashing from Python

Get help with direct flashing using WebUSB

Transfer from mobile app

To get started on mobile, you need to download the micro:bit mobile app to your phone or tablet and follow the on-screen instructions. The apps use Bluetooth to transfer your code to your micro:bit, so you need to enable Bluetooth on your phone or tablet.

These videos help you understand how the mobile apps work with your micro:bit.

iOS

Android

Find out more about mobile apps