Dash Joins a Dance Circle! (K-5)

Dash Robot

Dash wants to learn how to dance! Can you help her drive in and out and show her stuff in the middle?

This activity is student-directed and will teach the user about sequencing and loops.

To do this activity, you will need:

1. Driving Forward


  1. First, turn on your robot by pressing the round power button on her side.
    Power Button
  2. Next, open the Blocks4All app on your iPad.
    Blocks4All logo
  3. Select Add Robots (in the center, near the bottom of the screen).
    Add robot screen
  4. A new screen will open with a list of robots. Select your robot’s name (it will appear near the top of the screen). Once she connects, her name will turn green. If you have VoiceOver on, it will say “connected.”
    Robot List
  5. Press the Workspace button in the upper left corner of the screen. This will open up the coding environment where you can send commands to the robot. On the left side of the screen is the toolbox, which contains a menu of all the commands (called blocks) that you can send to the robot. In the center of the screen is the main workspace.
    Main Workspace Screen
  6. Find the Drive category in the toolbox and select it.
    Main Workspace Screen, drive selected
  7. A new toolbox screen will open with your drive options! Select the first block in this screen (it is called Drive Forward).
    Drive Selections
  8. Once selected, your choice will appear in the toolbox.
    Drive Forward Selected
  9. Select anywhere in the workspace and the Drive Forward block will be placed at the beginning of your code. You do not need to drag and drop!
    Drive Forward In Workspace
  10. Dash is ready to drive! Press the Play button (green triangle) in the bottom right corner of the screen.

2. Driving Backward


  1. Now Dash can show her moves in the middle of the circle! Let’s help her learn how to go back after she’s done. The Drive category in the toolbox should still be open. Find the second block (Drive Backward) and select it.
  2. Where should we put the block in the workspace? Dash reads her instructions left to right, so we have to make sure to put the Drive Backward block after the Drive Forward block. Click anywhere in the workspace to the right of the Drive Forward block to do this.
    Adding Drive Backward To Workspace
  3. Select the Play button to make Dash go forward and backward

3. Dash Does the Nod


  1. Now Dash can go in and out of the circle, but she wants to dance while she’s in the middle. Let’s teach her a basic move. Select the Back button in the upper left corner of the screen. This will take you out of the Drive category.
  2. Select the Motion category in the toolbox (Hint: You will have to scroll down to find it).
    Motion Category
  3. The selection screen will open. Select the second block (Nod).
    Select Nod block
  4. Now we have to place this block in the workspace. We want to put it after Dash Drives Forward into the circle and before she Drives Backward out of it. Select the Drive Backward block in the workspace to place Nod before it!
    Adding Nod to Workspace
  5. Select Play to make Dash do her dance!

4. The Circle Gets Bigger


  1. Now Dash can do her dance in the circle. But what if the circle gets bigger? She will need to drive a longer distance to get to the center. Did you notice that the Drive Forward and Drive Backward blocks have another block on top of them? These are called modifier blocks and we can use them to help Dash drive farther. Select the modifier block on top of Drive Forward (it says 30 cm, Normal).
  2. A new screen will appear with your options. At the top of the screen is a distance slider. Let’s use it to help Dash drive 50 centimeters.
    Editing Distance Modifier
  3. Increment the distance slider until it reaches its halfway point and says “50”.
    Editing Distance Modifier to be 50
  4. Optional: You can also change how fast Dash drives! Select the Faster (plus) and Slower (minus) buttons to make her go the speed you want.
  5. When you’re happy with your choices, press the Back button in the upper left corner of the screen. Now Dash will drive forward 50 centimeters!
  6. Adjust the Drive Backward distance to also be 50 centimeters (Hint: Use the modifier block).
    Workspace with modified distances
  7. Press play to make Dash dance in the bigger circle!

5. Dash Repeats Her Dance


  1. Dash wants to go into the circle again! Let’s help her do her dance more than once. We can help Dash repeat her dance by using a loop. We can create one by selecting the Control category in the toolbox.
    Workspace with control category selected
  2. Select the first block in this category (Repeat) and place it anywhere in the workspace.
    Repeat button selected
  3. In the workspace, Repeat has two blocks that are next to each other (you may have to scroll left or right to find both). The one on the left is Repeat and the one on the right is End Repeat. We can put the commands we want to repeat in between these two blocks (inside the loop).
    Repeat button in workspace
  4. Since we want Dash to repeat her whole dance, we will have to move all three other blocks into the Repeat loop. We can start with Drive Forward. Select Drive Forward in the workspace (you may have to scroll left or right to find it). Make sure to select the bottom block and not the modifier. Once you select it, the block is ready to be moved.
    Drive forward selected to move
  5. Select End Repeat to put it inside the loop.
    Drive forward placed before end repeat
  6. Repeat this move for Nod and Drive Backward. Now Dash’s whole dance should be inside Repeat.
    Drive backward and nod placed before end repeat
  7. Select Play. Dash now does her dance twice!

6. Dash Dances More Than Twice


  1. Dash loves dancing in the circle! Let’s help her repeat her dance as many times as she wants. The Repeat block in the workspace has a modifier block, just like Drive Forward and Drive Backward! We can use this block to change the number of times to repeat. Select the modifier block (the block on top of Repeat that says 2). A new screen will open with your options.
    Repeat modifier
  2. In the center of this screen there are two buttons. You can select the Increase (plus) button to make Dash dance more times.
  3. You can also select the Decrease (minus) button to make Dash dance fewer times. She has to do at least two repeats though!
  4. Use the two buttons to make Dash dance as many times as you want. When you’re happy with your choices, press the Back button in the upper left corner to return to the workspace.
    Back button selected on repeat modifier
  5. Select Play to have Dash dance as many times as you told her to!
  6. When you finish, give yourself (and Dash), a high five and head over to the Hour of Code Website to access your completion certificate!

Bonus


  • Dash wants to learn some other moves to show off in the circle. Can you help her out?
  • Give Dash some cool dance moves to do inside the circle (besides Nod)! Here are some ideas to get you started:
    • Dash changes her lights! (Hint: Check out the Lights category in the toolbox. You can select different colors/options with the modifier block.)
    • Dash moves her head different directions! (Hint: Check out the Look category)
    • Dash sings! (Hint: Check out the Sounds category. You can change the noises with the modifier block.)
  • Place your new moves in the workspace before Drive Backward.
  • Select Play so that Dash shows off her new dance!