Skip to content
RoboLearn
Not completed

BBC micro:bit

PlatformsBeginner25 minTry the micro:bit simulator ↓Before this: Choosing your first kit

What you’ll learn

  • What’s on a BBC micro:bit
  • How to program it with MakeCode blocks or Python
  • How it’s used in robots

On the board

Feature Details
Display 5 × 5 red LEDs
Inputs Buttons A and B; on V2 also a touch-sensitive logo and a microphone
Sensors Accelerometer, compass, light (via the LEDs), temperature
Outputs LED display; on V2 a built-in speaker
Radio micro:bit-to-micro:bit radio and Bluetooth
Connectors Edge connector with pins 0, 1, 2, 3V and GND (more via a breakout)

Programming it

  • MakeCode: blocks, JavaScript or Python in the browser, with a built-in simulator.
  • MicroPython: via the online Python editor at python.microbit.org.
  • Download the program and copy it onto the micro:bit (it appears as a USB drive), or pair it with WebUSB from the browser.

In robots

Many robot car kits are built around the micro:bit: it plugs into a base board that has a motor driver, line sensors and an ultrasonic sensor. Its radio is great for remote control (one micro:bit as the controller, one in the robot).

Finished this lesson?