Resources — microbit tutorials

Program a micro:bit with Python to Control a Water Pump

BBC microbit Kitronik microbit plant microbit tutorials moisture sensor pump python soil moisture

Program a micro:bit with Python to Control a Water Pump

In this project, you will learn:

  • how a relay works;
  • how to use code to control a relay to turn a water pump on and off; and
  • how to automate the pump based on sensor readings.

You will need:

  • To have completed our previous tutorial for calibrating a moisture sensor, with the following:
    • a micro:bit, computer with mu editor Thonny editor, and microUSB cable for programming the micro:bit
    • a moisture sensor
Additional hardware required for this tutorial:
  • 1 x submersible pump and hose to fit
  • 1 x MonkMakes relay
  • 5 x crocodile leads to connect everything up
  • 1 x old water bottle or similar container to hold water

Read more →


Project Tutorial: Make a number base Converter

BBC microbit BBC microbit v2 button kitronik mathematics microbit tutorials programming python

Project Tutorial: Make a number base Converter

In this project, you will learn:

  • What number bases are
  • How to connect and program buttons on the BBC micro:bit (works on V1 and V2)
  • How to program the micro:bit in Python, to convert between different number bases

Read more →


Automatic Lights Using the micro:bit's Built-in Sensor

led makecode microbit tutorials micropython

Automatic Lights Using the micro:bit's Built-in Sensor

Here's a quick and fun micro:bit lesson for schools or home. Make an automatic light using just an LED, some alligator clips, and your micro:bit! This easy tutorial includes PXT MakeCode and MicroPython versions.

Read more →