Skip to Main Content

Coding for Educators

What is the Micro.bit?

The micro:bit is a tiny programmable computer, designed to make learning and teaching easy and fun!

BBC micro:bit

Photo credit: By Les Pounder from Blackpool, UK (BBC micro:bit) [CC BY-SA 2.0  (https://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons

Micro:bit simulator

The Basic Structure of a Computer Program

The Input, Process, Output Cycle

Input - data entered into the computer from keyboard, mouse, a file, sensors, buttons, etc.

Process - the instructions that react to the input, perform operations, and create information

Output - the processed information returned back through monitors, printers, speakers as images, video, text, sound.

Write your first program

Hello World

1) Connect your micro:bit to a USB port on your computer.

2) To use the Microsoft MakeCode Blocks editor click here.

3) Code the micro.bit to display "Hello World" on the LED panel.

4) Transfer your code to your micro:bit. The first time you download it, type a project name in the box and then click save. 

5) Next you need to copy the micro:bit file that you just downloaded above to your micro:bit. You can do this in File Explorer.

6) Add code to display a smiley face on the LED panel when the A button is pressed.

7) Add code to display a sad face on the LED panel when the B button is pressed.

8) Download and copy your new program to your micro:bit.

9) Did it work? Do you need to debug?

Smiley face LED Panel