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
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.
Use Python to calibrate your Kitronik Prong Moisture Sensor
BBC microbit Kitronik MicroPython moisture sensor mu editor Thonny
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
STOP:bit MicroPython Tutorial: Two Traffic Lights
microbit MicroPython state table traffic lights
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.
STOP:bit MicroPython Tutorial - Single Traffic Light
microbit MicroPython 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
Kitronik :MOVE Motor robot for the BBC micro:bit - MakeCode Block-based Tutorials
BBC microbit kitronik makecode micro:bit accessories MicroPython python robotics