A free robot coding lesson for kids (ages 8–14), ready to teach in 45 minutes

Want a first coding lesson that kids enjoy and that doesn't take you a weekend to prepare? This page walks you through Crabby Lesson 1: First moves. It's a free, printable lesson in which children program a cartoon robot crab in the browser. No installs, no accounts, no robot to buy.

Crabby simulator with Lesson 1 loaded from the Lessons menu
Lesson 1 opens straight from the 📚 Lessons menu in the free simulator.

What children learn

Lesson 1 teaches the most important idea in programming: a sequence. A program is a list of instructions that runs from top to bottom, one at a time. Kids snap blocks such as walk forward 2 steps, turn right 90 degrees, open claws and play the hello song under a green when start block. Then they press Run and watch each block light up while the crab does it.

By the end of the lesson students can:

That last skill, predict, then test, matters more than any single block. It's the start of debugging.

What you need

The 45-minute plan

  1. Hook (5 min). Show the crab and ask: “How would you tell a robot to walk to the duck?” Collect ideas on the board. Kids naturally say things in order, and that's a sequence.
  2. First run (5 min). Students open L1 First moves (starter) from the Lessons menu and press Run. Crabby says hello.
  3. Build (20 min). Following the worksheet, they add wave, walk, turn, claws and a song. The worksheet has a screenshot of the real app for every important step.
  4. Look under the hood (5 min). The Arduino code tab shows the same program as real C++ for an ESP32 microcontroller. Most kids find it exciting that their blocks became “real code”. See how block coding turns into Arduino code.
  5. Challenges (10 min). Walk to the yellow duck, change the speech bubble to your name, or walk sideways like a real crab.
A sequence of Blockly blocks controlling the crab robot
A finished sequence: say → wave → walk → claws → jump → dance → song.

Common mistakes (and how to help)

The teacher notes in the PDF include the answers, a short list of key concepts and a three-level assessment checklist (not yet / almost / yes!). You can tick it off while walking around the room.

Is it really free?

Yes. The simulator and Lesson 1 are free, with no sign-up. If your class enjoys it, the Crabby Starter Lesson Pack ($9) adds four more lessons: loops (a dance party), sensors with if/else (avoid obstacles), variables (count steps and grab the ball) and a mini project that combines everything. Each lesson comes with starter and solution files that we tested in the simulator.

Classroom tips that save time

Where to go next