Micro:bit Setup

Connecting Your Micro:bit

Start with your computer, the short USB cable, and your Micro:bit.

Setup materials: computer, USB cable, and Micro:bit

Plug the Micro:bit into your computer using the short USB cable:

Micro:bit plugged into computer

Opening the MakeCode Editor

Using the Chrome or Chromium browser, visit the Micro:bit MakeCode project website:

https://makecode.microbit.org

First, click on the Sign In button in the upper-right corner to create an account.

Importing Your First Program

To load your first program, click on the Import button: Import

In the import window, click on the middle box, “Import URL….”

Then, enter this URL:

https://github.com/League-Microbit/flashing-heart

You should see the Micro:bit editor screen with a simple program:

MakeCode editor with flashing heart program

Warning
For the next step, downloading, you should be running the Chrome browser, although Firefox or Edge might also work. Chrome is best supported. If you have a Chromebook, you are already running Chrome.

Downloading to Your Micro:bit

Click on the purple Download button at the bottom of the screen, and follow the instructions for downloading the program to your Micro:bit.

You should now see a flashing heart on your Micro:bit:

Flashing heart on Micro:bit

Congratulations! You have created your first Micro:bit program.

Tip
Before you move on, read the Micro:bit program carefully and see if there is anything else the program does besides flash a heart. There might be an easter egg hiding in there!

Troubleshooting

  • Micro:bit not recognized: Try a different USB cable or USB port. Make sure you are using the data cable, not a charge-only cable.
  • Download not working: Make sure you are using Chrome. Click the “…” next to the Download button and try “Connect device” first.
  • Nothing appears on the Micro:bit: Unplug and re-plug the USB cable, then try downloading again.

Challenge

Modify the flashing-heart program to display your initials instead of a heart. Use the LED grid blocks in the MakeCode editor to design your own pattern.