Skip to main content

Lesson 1-7 · Blockly Challenges & Synthesis

Module 1 · Learning to Drive

Lesson 1-7 · Blockly Challenges & Synthesis

60+ minDriving ChallengesCapstone projectSlides (PowerPoint)
👩‍🏫

Teacher mode is on. Toggle it off (bottom-right) to preview the student view.

This is your Blockly capstone. There's nothing new to learn — instead you'll put everything together (loops, functions, parameters, motor control) to solve two open-ended challenges. Like real engineering problems, these have many right answers.

Learning Objectives

By the end of this lesson you will be able to:

  • Combine loops, functions, parameters, and motor control in one program
  • Plan a program's structure before you start dragging blocks
  • Debug with a repeatable process: predict → test → observe → adjust
  • Judge trade-offs (precision vs. speed, simple vs. flexible)

Challenge 1 · Precision navigation​

Your robot is a delivery vehicle. It has to follow a marked course and stop on a target within ±30 cm, then signal that it arrived.

A to-scale map, seen from above, of a route taped on the floor. From the start mark, where an XRP sits facing up the page, the tape runs 150 cm straight ahead, turns right 90 degrees, runs 100 cm, turns left 45 degrees, and runs 50 cm to a red target. A dashed red circle 30 cm around the target marks the stop zone. Each turn is drawn as a red arc from a dashed line that continues the way the robot was facing. Beside the map, a key explains the tape, the start, how turns are measured, and the stop zone.
The delivery course. Measure it, then translate it into blocks.

Measure the course, plan the moves on paper, then build it. Everything you need you already have: Straight, Turn, a function to wrap the route, and the debugging loop of predict → run → watch → adjust.

Test it in pieces. Get the first straight-and-turn landing correctly before you add the next. That's far easier than running all five moves and guessing which one is off.

Knowledge Check

Your robot overshoots the target by about 15 cm every run. What's the most sensible fix?

Challenge 2 · Creative design​

Now design your own robotic performance. Pick one (or invent your own) and bring the whole toolkit:

Option A

Multi-shape artist

Use your polygon function to lay out a design — pentagon, hexagon, octagon arranged into a pattern.

Option B

Precision parking

Drive in, then use Set effort for a slow, careful final nudge to park centered in a marked box.

Option C

Robot choreography

Combine curves, spins, and the LED into a 30-second performance that tells a little story.

The workflow is the same one professionals use: brainstorm → break it into functions → pseudocode → build core functions → test each → assemble → refine.

Knowledge Check

Your creative program is one giant stack of 40 blocks and it's hard to debug. What's the best move?

Real-world connections​

Planning a route, running it, and trimming it until it lands is how real machines get where they're going:

Space

Driving a Mars rover

Rover drivers plan each day's moves on Earth, send the whole sequence at once, then check where the rover actually stopped before planning the next drive.

Warehouses

Shelf-carrying robots

Warehouse robots drive set routes across the floor and have to stop on exactly the right spot to pick up a shelf.

Navigation

Dead reckoning

Before GPS, navigators worked out where they were from heading, speed and time, then corrected when they spotted a landmark. Your robot drives the same way.

Looking ahead: why Python next?​

You may have hit Blockly's limits today — big programs get unwieldy, and some ideas are just faster to type than to drag. That's exactly why the next phase moves to Python. The good news: it's the same concepts you already know — loops, functions, parameters — just written as text.

Knowledge Check

Moving from Blockly to Python next lesson mostly means…

Wrap-up​

  • What's the debugging loop? (Predict → test → observe → adjust.)
  • Why break a big program into functions? (Easier to build, test, and fix.)
  • Which Module 1 concept will you lean on most in Python? (Your call — loops, functions, and parameters all carry over.)

Resources​