Skip to content

First steps

Sensors

Learn how to program your micro:bit to take readings from its sensors

Building on your learning in the LEDs and buttons sets, these projects and videos will show you how to program your micro:bit to sense movement, temperature and magnetic fields.

More micro:bit feature videos

Each set of projects is designed to build your understanding and confidence progressively. You can pick one or work through them all to develop your understanding of using the micro:bit’s sensors.

Set 1: Dice

In this sequence of projects, you’ll learn how to use the accelerometer and create dice and a game with your micro:bit.

Shake your micro:bit to make random numbers

Set 2: Step counter

In this sequence of projects, you’ll learn how to use the accelerometer to program increasingly sophisticated step counters.

Make your own step counter with a micro:bit

Set 3: Thermometer & compass

In this sequence of projects, you’ll learn how to transform your micro:bit into a compass and thermometer.

Create a simple compass to show which way is North

Make a simple thermometer with your micro:bit

Learn more about the compass on the micro:bit