micro:bit
- Micro:bitSafety in the micro:bit workshop
We work like little engineers — carefully, safely and together
- Micro:bitElectricity detectives
Which materials conduct electricity, and which ones stop it?
- Micro:bitBreadboard lab
A breadboard for beginners: how the holes are connected underneath, and how to build a circuit without soldering in which a push button lights an LED.
- Micro:bitIntroduction 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.
- Micro:bitMy 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.
- Micro:bitHow 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.
- Micro:bitSmart systems and connected devices
A smart crossroads with the micro:bit - from the LED screen to two traffic lights that talk to each other
- Micro:bitLives 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.
- Micro:bitRadio 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.
- Micro:bitThe 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.
- Micro:bitMeet 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.
- Micro:bitHow 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.
- Micro:bitDriving 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.
- Micro:bitRemote 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.
- InfoBreadboard
How a breadboard works: which holes are connected, how to place components and wires, the power module, common mistakes and finding faults.
- Info29 misconceptions about electronics
29 common misconceptions about electronics: does a resistor use up current, can LEDs share a resistor, what is ground, why can't an Arduino pin drive a motor?
- InfoHow devices talk: UART, I2C and SPI
How an Arduino, a micro:bit and modules exchange messages: bits through a wire, protocols and clocks, and UART, I2C and SPI, their pins and common mistakes.
- InfoDigital and analogue
What a digital and an analogue signal are, how the micro:bit and Arduino measure a voltage (0 to 1023), when a pin is HIGH, and why PWM isn't a real voltage.
- InfoPinouts: micro:bit, Arduino Uno, Nano, Mega and Giga
What each pin of the micro:bit (V1, V2) and the Arduino Uno, Nano, Mega and Giga does: power, GND, digital, analog, PWM, I2C, SPI, UART and current limits.
- InfoBinary, octal and hexadecimal numbers
How a computer counts with zeros and ones: binary numbers on LEDs, bits, nibbles and bytes, octal and hexadecimal numbers, and writing them in code.
- InfoVariables and data types
Variables on the micro:bit and Arduino: the types int, long, float and char, storage in memory, byte order, type conversion and common mistakes.
- InfoArrays: many values under one name
Arrays in MakeCode and Arduino programs: indexes from zero, a loop through an array, two-dimensional arrays, sizeof, memory and going past the end of an array.
- InfoState machines
How to split a program into states: the state diagram, a micro:bit game, enum and switch on an Arduino, the entry action, a state table and a crossing button.
- InfoBatteries
How batteries work: types (AA, AAA, 9 V, button cells, LiPo), what V and mAh mean, why a battery gets weaker, and rules for using batteries safely.
- InfoButtons and switches
Push buttons, microswitches, tilt and reed switches: how they work, wiring them to an Arduino with a pull-up resistor, and why contacts bounce.
- InfoPhotoresistor
A photoresistor (LDR) changes its resistance with light: how much, the voltage divider for an Arduino, choosing the resistor and a night-light program.
- InfoBuzzer and speaker
Active and passive buzzers and speakers: telling them apart, tone() on an Arduino, playing a melody, and why a speaker needs a transistor or an amplifier.
- InfoServo motor
How an SG90 servo knows its angle: a pulse every 20 ms, three wires, its own power supply, the Arduino Servo library and how long it takes to turn.
- InfoInfrared sensors
Infrared light, line sensors with an LED and a phototransistor, TV remotes and 38 kHz receivers, why sunlight confuses them, and an Arduino program.
- InfoHall sensor
A Hall sensor feels a magnet without touching it: the A3144 switch, latches and linear sensors, wiring to an Arduino, and a steel ball over a magnet.