← Code

Robotics challenges

Drive, sense and decide with a two-wheeled micro:bit robot. Each idea runs in the robot simulator first, then on a real robot.

Start1. Drive and stop

Drive

Wheel speeds, timed moves, and moves you name as functions.

1Drive and stopNot started
2Moves as functionsNot started

Sense

Read the distance sensor again and again, and decide what to do.

3Stop before you crashNot started
4Avoid and exploreNot started

Turn away when something is close, and keep exploring, choosing between two moves with if and else.

  1. Predict
  2. Run
  3. Investigate › Back to forward
  4. Investigate › Zara's robot
  5. Modify › Back up first
  6. Modify › Indicator lights
  7. Make
Start lesson
5Follow the lineNot started

Modes

A variable remembers which job the robot is doing; forever does that job.

6One robot, many jobsNot started

A mode variable remembers which job the robot is doing; buttons change it, and forever does that job.

  1. Predict
  2. Run
  3. Investigate › Still following
  4. Investigate › Ruby's robot
  5. Modify › Which mode?
  6. Modify › Explore mode
  7. Make
Start lesson

Talk

Radio messages drive a robot from afar, cue a dance, and send alerts back.

7Remote controlNot started
8Conductor and dancersNot started

One micro:bit plays a tune and sends a cue as each phrase starts; robots dance the move for each cue, in time.

  1. Predict
  2. Run
  3. Investigate › The quiet robot
  4. Investigate › Lily's show
  5. Modify › Up above the world
  6. Modify › Light show
  7. Make
Start lesson
9Report backNot started

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.

  1. Predict
  2. Run
  3. Investigate › Tell once
  4. Investigate › Noah's patrol
  5. Modify › All clear
  6. Modify › Count the alerts
  7. Make
Start lesson

Final challenge: Showcase and Patrol

Build a robot show and a patrol system in milestones, with less help each time. An optional lesson makes two robots work together.

10ShowcaseNot started

Build a robot dance show to a tune in three milestones, from a moves library to a finale with an emergency stop.

  1. Predict
  2. Run
  3. Investigate › Three layers
  4. Investigate › Slower wiggles
  5. Milestone 1: a moves library
  6. Milestone 2: cue the show
  7. Milestone 3: finale and safety stop
Start lesson
11Patrol and alertNot started

Build a patrol system in three milestones, a robot and a base that talk both ways, then add an alert log and status lights.

  1. Predict
  2. Run
  3. Investigate › Who does what?
  4. Investigate › Jack's patrol
  5. Milestone 1: start and stop from the base
  6. Milestone 2: report back
  7. Milestone 3: a log and status lights
Start lesson
12Tripwire OptionalNot started

Progress is saved in this browser only. Nothing is sent anywhere.

For teachers: Teacher guide (notes, answers, solutions, slides and worksheets)