Robot Dance

Please find a printable version of this page HERE.

Task Description

The goal for this introductory programming challenge is to get the robot to dance. By making their robot dance, students will learn some basic programming skills such as moving forwards and backwards, turning, and using loops.

Materials Needed

  • EV 3 Mindstorm Robot in base configuration
  • Lego Mindstorms Education EV3™ software on an iPad or PC (Note: The PC application uses the same programming blocks, but they look slightly different sometimes)
  • Music

Dancing Robots

Watch a video of a group of dancing robots here (click on the image to access video):

Programming to Dance

Please find a step-by-step tutorial on programming the robot to dance below, or see these video tutorials:

1) Moving Forward and Turning

Drag a <Move Steering Block> to the command chain and connect it to <Play> button.

The <Move Steering Block> has multiple functions:

<On> / <Off>:

<Off> turns the motor off / <On> turns the motor on indefinitely 

Steering Direction:

Makes robot go straight or turn depending on the number, i.e.,


How much power is delivered to the wheels

Duration length:

How many times the wheels rotate

Stopping options:

Break or coast at the end of block

Motor ports:

Which motor ports are used (ports are labelled A-D at the robot’s front)

Note: Use the <Move Steering Block> to make the robot go backwards (i.e., use a negative number in the power setting).

2) Loops

Loops are useful for repeating a sequence of steps, such as dance moves. To create a loop, select the orange tab on the lower menu bar. Then drag the <Loop Block> to the command programming chain.

Then drag your sequence of blocks into the loop. Make sure they are attached to the chain and in the correct order.

There are many options for how long the loop repeats, which can be found by clicking the infinity symbol.

A printable PDF of this challenge can be found HERE.

© 2020 Dr. Krista Francis & Stefan Rothschuh