Arduino Learning Studiorobotics pathway

Robot Explorers · R09-U1 and R09-U3 · usually ages 9–11, any age welcome

Robot Blocks

Build a program from blocks. Get the robot to the star.

Level 3: Where is the star?

The star is in a different place on each board. Make one program that works on all three. You have 3 blocks.

Test table
BoardMy guessWhat happened
Anot run yet
Bnot run yet
Cnot run yet

Your program

Blocks: 0 of 3

No blocks yet. Add blocks from the list below.

Add a block

New blocks go: at the end.

Same idea in Arduino code
What it would look like · not run
// Your blocks as Arduino code.
// The lab does not compile
// or run this code.

void setup() {
  // (empty)
}

void loop() {
  // Empty. setup() runs
  // the program once.
}

This is what your program would look like in an Arduino sketch. The lab does not compile or run it: the robot here runs the blocks. The highlighted line is the block that is running.

Next, in the Arduino labs: Meet the board (setup() and loop()), Push a button (if … else with a button input) and Read a sensor (a distance sensor, in centimetres).

For the adult: level 3

What's new: New: repeat until. The robot checks before every round and stops itself, so it does not need to know how far to go. Before each run, ask for a guess and write it in the test table; copy the table onto paper afterwards.

It practises: Record trials in a table.

It uses again, as blocks: Build and change a block program with sequences, loops and events. Choose between two actions with 'if … else'.

Part of: R09-U3 Make Decisions. See it in the robotics pathway (opens a new tab)

How to use it: Press an add button to add a block. Press a block in the program to choose it: buttons appear under it to change it, move it up or down, put it into the block above, take it out, or delete it. When a repeat or if block is chosen, new blocks go inside it. Run plays the robot on the board shown; Step goes one action or check at a time and highlights the block (and the code line) that is running. Everything works with a keyboard and a screen reader; nothing needs dragging.

Test table: before each run, choose a guess. Afterwards, copy the table onto paper. A level counts as solved when the same program reaches the star on every board.

Before the screen: one learner reads the blocks aloud, another walks them on a taped floor grid. For "repeat until" and "if", the walker stops and checks before every move. Keep the area clear and walk slowly.

Ask, don't tell: "What will happen on board B?" "Which block was running when it bumped?" "Which line of the code is that block?"

New to this? Robot Instructions (picture cards) comes before this. Every level here is open: let a ready learner move on at any age.

Nothing is saved. The ticks and the test table last for this visit only. They are not a score.