Sensors & Modules
These projects add external hardware to the micro:bit. Each page lists the parts you need, a wiring table and any helper library you must copy onto the board first.
Edge connector breakout
Pins beyond P0, P1 and P2 (like P13, P16, P19, P20) are only reachable
through an edge connector breakout board.
DHT11 Sensor
Read temperature and humidity from a DHT11 sensor.
Intermediate
IR Receiver (Remote Control)
Decode signals from an infrared remote control with an IR receiver.
Intermediate
LED and Buzzer
Turn an LED or buzzer on and off from pin 0 with button A.
Beginner
OLED Screen (SSD1306)
Print text on a 128×64 SSD1306 OLED display over I²C.
Intermediate
PIR Sensor (Motion Detection)
Detect motion with a PIR sensor and sound a buzzer.
Beginner
Servo Motor
Move a 9g servo between 0° and 90° with the micro:bit buttons.
Intermediate
Ultrasonic Sensor
Measure distance in centimetres with an HC-SR04 ultrasonic sensor.
Intermediate