Drive, sense and decide with a two-wheeled micro:bit robot. Each idea runs in the robot simulator first, then on a real robot.
★ Challenge completeWheel speeds, timed moves, and moves you name as functions.
Set the speed of each wheel, drive for a time, turn, and stop.
Start lessonName each dance move as a function, then build a routine by calling them.
Start lessonRead the distance sensor again and again, and decide what to do.
Read the robot's distance sensor again and again, and stop before it hits something.
Turn away when something is close, and keep exploring, choosing between two moves with if and else.
Use the two line sensors to tell which side the line is on, and steer to stay on it.
A variable remembers which job the robot is doing; forever does that job.
A mode variable remembers which job the robot is doing; buttons change it, and forever does that job.
Radio messages drive a robot from afar, cue a dance, and send alerts back.
One micro:bit sends numbers by radio; the robot turns each number into a move.
One micro:bit plays a tune and sends a cue as each phrase starts; robots dance the move for each cue, in time.
A patrol robot sends an alert to a base station when its way is blocked, once, using a variable to remember it has already told.
Build a robot show and a patrol system in milestones, with less help each time. An optional lesson makes two robots work together.
Build a robot dance show to a tune in three milestones, from a moves library to a finale with an emergency stop.
Build a patrol system in three milestones, a robot and a base that talk both ways, then add an alert log and status lights.
Two robots work together. One stands still as a tripwire and, when the other passes, cues it to do a trick.
Progress is saved in this browser only. Nothing is sent anywhere.
For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)