Resources — MicroPython

Use Python to add Multiple Servos to Your Self-watering Plant

BBC micro:bit BBC microbit v2 micro:bit accessories microbit tutorials MicroPython mu editor radio tutorial

Use Python to add Multiple Servos to Your Self-watering Plant

This project will let you add an servo motor controller to your self-watering micro:bit project. The servo can be used to raise a flag or some sort of sign to indicate the status of your plant, and can even be located a few metres away from your self-watering plant!

The project can be run as a group activity, with one person programming the first micro:bit and their lab partner programming the second micro:bit. Alternatively, one person could program both micro:bits by having separate code in tabs within mu or Thonny editors.

Read more →


Use Python to calibrate your Kitronik Prong Moisture Sensor

BBC microbit Kitronik MicroPython moisture sensor mu editor Thonny

Use Python to calibrate your Kitronik Prong Moisture Sensor

 In this tutorial, you'll learn to:

  • Use Python to read the output from a moisture sensor
  • Use mu or Thonny editors to debug your micro:bit code
  • Calibrate your code to detect the right amount of moisture

Read more →


STOP:bit MicroPython Tutorial: Two Traffic Lights

microbit MicroPython state table traffic lights

STOP:bit MicroPython Tutorial: Two Traffic Lights

Program a pair of traffic lights to work in tandem using the Kitronik STOP:bit and micro:bits. 

 In this project, you will learn to:

  • Write a state table to represent the different changes between two traffic lights.

  • How to reuse our function to save time, and keep our code readable.

  • Send our light changes to another STOP:bit over radio, and write code to match our state table.

Read more →


STOP:bit MicroPython Tutorial - Single Traffic Light

microbit MicroPython traffic light

STOP:bit MicroPython Tutorial - Single Traffic Light

Use microbit Python to program a single traffic light

In this project, you will learn to:

  • Write a function to turn on individual Traffic Light LEDs

  • Call the function in your main loop

Read more →


Kitronik :MOVE Motor robot for the BBC micro:bit - MakeCode Block-based Tutorials

BBC microbit kitronik makecode micro:bit accessories MicroPython python robotics

Kitronik :MOVE Motor robot for the BBC micro:bit - MakeCode Block-based Tutorials

The Kitronik :MOVE Motor robot is a micro:bit powered robot, that is both manoeuvrable and stable. In addition to the well-written instruction booklet, here's some downloadable tutorials with Interactive MakeCode links to get you started..there's also a Python library!

Read more →