mBot D3 - Loops: Square Dance!


Concepts: Students are introduced to a new fundamental coding concept, the Loop! Activity: Students are first challenged to create a sequence that has their mBot drive in a perfect square on the floor. Next, students are challenged to identify the “repeating unit” and place this inside of a loop, making their program much more efficient. Extensions: Students are challenged to adjust their programs to have the mBot complete other shapes (e.g. triangles, stars).


For students to understand and use a loop.

For students to understand why loops are a powerful tool in programming.

For students to practice pattern-recognition and breaking large problems down into their component parts.

Find Out More


mbot is the best of both worlds, transitioning students from Scratch Blocks to Text Code