Micro:bit
micro:bit lessons for children aged 7 to 11: electric circuits, the breadboard and block programming in MakeCode, step by step.
0 Safety in the micro:bit workshop
We work like little engineers — carefully, safely and together
1 Electric circuit
A first electric circuit with a battery, wires, a resistor and an LED: what current is, why a circuit must be closed and what to do if the LED won't light.
2 Introduction to the micro:bit
What a micro:bit is and what's on it: LED display, A and B buttons, compass, accelerometer, temperature sensor, pins, Bluetooth radio, speaker, microphone.
- 2.1 My first program in MakeCode A first micro:bit program in MakeCode: blocks, on start and forever, buttons A and B, the LED display, the simulator and copying it to the micro:bit.
- 2.2 How does our program think? Five small MakeCode programs for the micro:bit (greeting, heart, buttons, dice, score counter): predict, run and change one thing to see how they work.
3 Smart systems and connected devices
A smart crossroads with the micro:bit - from the LED screen to two traffic lights that talk to each other
- 3.1 Lives and conditions A steady-hand game with the micro:bit: a lives variable, if / else, a wire as a switch on a pin, start and finish on the touch logo, and a stopwatch.
- 3.2 Radio games How micro:bits talk over radio: radio groups, a number or text as a message, rock-paper-scissors for two and hot potato for nine players.
- 3.3 The micro:bit as a controller The micro:bit as a remote control: the accelerometer measures pitch and roll, the sender sends the direction, and the receiver stops if the link is lost.
4 Meet the Maqueen
The Maqueen robot with a micro:bit: the robot's parts, batteries, a safe start and the first drive forward, backward and turning in MakeCode.
- 4.1 How fast does the motor spin? What's inside a DC motor and why it has a gearbox; we measure how far the Maqueen robot drives in 2 seconds at different speeds.
- 4.2 Driving to a plan The Maqueen robot drives a square: our own functions for driving and turning, the speed measurements, and why a robot with two motors doesn't drive straight.
- 4.3 Remote control The sender from the lesson The micro:bit as a controller drives the Maqueen robot over radio, and the safety rule stops the motors when the link is lost.
