Guide · micro:bit
micro:bit – Learning Guide
The micro:bit is a small programmable device with a 5 × 5 LED screen, two buttons, sensors (light, temperature, accelerometer, compass) and a radio. It is programmed with blocks in the MakeCode environment or in the text language MicroPython.
The lessons go in order, from the first program to projects. Next to the blocks, the same program is given in JavaScript or Python from MakeCode, so it is easy to move on to text programming.
- Grades 5–8
- MakeCode blocks
- 14 lessons + MicroPython
For teachers: the first six lessons cover the basic course (about 6 weeks); lessons 7–10 are for advanced groups, and 11–14 for clubs and projects.
Some lessons linked below are available only in Serbian for now. They are marked (SR).
1 MakeCode – basics
The device, MakeCode, the Basic, Input and Music blocks, variables and sensors.
1. Introduction to the micro:bit (SR)
Parts of the device, the MakeCode environment and the first program with the LED screen.
Open lesson →2. The micro:bit in everyday life (SR)
Examples of use in teaching, science and at home.
Open lesson →3. The Basic, Input and Music blocks (SR)
Showing text and images, buttons, gestures and melodies.
Open lesson →4. Variables and sensors (SR)
A step counter, measuring light and temperature, the LED palette.
Open lesson →5. Variables and the Math palette
Arithmetic operations, random numbers, a click counter.
Open lesson →2 MakeCode – branching, loops, arrays and functions
A program that decides, repeats, remembers several values and uses its own functions.
6. Branching and the compass
if – else, the Logic palette, compound conditions and compass directions.
Open lesson →7. Loops
repeat, while, for and every; Euclid's algorithm on the micro:bit.
Open lesson →8. Accelerometer: tilt and movement New
Gestures, a dice, a spirit level and a step counter.
Open lesson →9. Arrays (lists) New
Lists of numbers and words, sum, largest value, magic ball.
Open lesson →10. Functions New
The Functions palette: parameters and return value.
Open lesson →3 Radio, pins, games and projects
Communication between devices, external parts, games and final projects.
11. Radio communication (SR)
Remote temperature and the alarm "Watch out, thief!".
Open lesson →12. Pins and external devices New
Touch, an LED, a potentiometer, a moisture sensor and a servo motor.
Open lesson →13. Games and the Game palette
Sprites, points, lives and a countdown.
Open lesson →14. Projects and workshops
An alarm, reaction speed, measuring speed, watering the garden.
Open lesson →4 MicroPython
The next step: the same device, the text language Python.
MicroPython – learning guide
All MicroPython lessons in order.
Open lesson →Introduction to MicroPython (SR)
The first program and showing things on the LED screen.
Open lesson →Buttons A and B (SR)
Reading the buttons in MicroPython.
Open lesson →Radio communication (SR)
Sending messages from a MicroPython program.
Open lesson →5 The micro:bit and the computer
Data from the micro:bit sensors in programs on the computer.
✓ Learning goals and outcomes
- Understanding the basic concepts: sequence, branching, loop, variable, array and function.
- Writing programs with blocks in the MakeCode environment and reading the same program in JavaScript or Python.
- Working with the LED screen, the buttons and the built-in sensors (light, temperature, accelerometer, compass).
- Exchanging messages over the radio and connecting external parts through the pins.
- Making and presenting a mini project.
