Guide · MicroPython and the micro:bit

MicroPython and the micro:bit – Learning Guide

In this unit we program, with text in MicroPython, the same micro:bit that you programmed with blocks in MakeCode in grades 5 and 6.

Every lesson has a link to the same topic in MakeCode, so that you can compare the blocks and the code. At the end we connect the micro:bit with the computer and graphics.

  • Grades 6–8
  • Thonny or python.microbit.org
  • sensors and radio
Without installation: you can try MicroPython in the micro:bit Python Editor in the browser. For working with the computer and py5 we use Thonny.

Some lessons linked below are available only in Serbian for now. They are marked (SR).

1 Basics

The LED matrix, buttons, loops and variables.

2 Sensors and actuators

Acceleration, tilt, compass, temperature, light and external parts.

3 Radio and projects

Communication between several devices and bigger projects.

4 The micro:bit and the computer

A serial connection: data from the sensors controls graphics on the computer.

5 What next