Lesson 05 · 60 minutes

Your First Program

Blocks, and what the robot actually receives

Today's goal

Build a program from blocks, send it, run it, and read the same program back off the robot.

Ideas in this lesson

Sense → Think → Do

THINK, written down in advance. The robot does exactly what you wrote, which is the whole joy and the whole problem.

How the session runs

  1. Open the Blocks tab. Tap 'set speed', then 'drive rooms'. Watch the text box fill in underneath.
  2. Look at the robot language: V 5 then F 900. Every block is one line.
  3. Press Send to robot. Watch for SAVED steps=2 — that number must match your block count.
  4. Press Run. Watch each step announce itself as it happens.
  5. Now press 1 on the IR remote. The same program runs, with no phone at all.
  6. Save a different program to Slot 2 and switch between them from the remote.

Sample program

Drive one room, turn a quarter turn left, drive one more room. An L-shaped path — the smallest program that goes somewhere interesting.

V 5
F 900
L 350
F 900

Paste it into the Workshop's Robot language box, then press Text → blocks to see it as blocks — or just send it straight to the robot.

Try this

When it goes wrong

What you seeWhat it means
SAVED steps= does not match your block countSome of the program was lost on the way. Send it again; if it keeps happening, say so — that is a real bug, not your mistake.
Robot runs the wrong programCheck which slot is selected. The slot button glows.
Notes for the grown-up

The read-back is the moment worth pausing on: press Read back and watch their program appear from the robot's own memory. That is when 'the robot stored it' stops being a claim and becomes a fact.

← Every Robot Is DifferentDoing It Again →