Skip to main content

Lesson 4: Moving One Disk of Each Color

Planning a Project to Move One Disk of Each Color

In Lesson 3, you created a project to have the VR Robot pick up and drop each of the three blue disks into the blue goal on the Disk Mover Playground. In this Lesson, you will now create a project to pick up and move one disk of each color into its corresponding colored goal in the Disk Mover Playground!

A top down view of the Disk Mover Playground with the VR Robot in the start position in the blue goal, and the first disk of each color highlighted in a red box, indicating what to collect to complete the task.

What Behaviors are Needed to Move The Three Disks?

  • First, the VR Robot needs to be able to collect a disk. The VR Robot will need to repeat the behaviors of driving to the disk, picking it up, turning around, and then driving back to the colored goal one time for each color. In order for the VR Robot to repeat the actions of picking up and dropping one disk of each color, the VR Robot will need to perform the following behaviors three times:

    • Drive until a disk is detected by the Down Eye Sensor, pick up the disk, turn to the goal, and drive to the goal using the Distance Sensor to drop the disk. A sequence of four top down views of the Disk Mover Playground show the progression of behaviors needed to collect a disk. In the first, the VR Robot starts in the goal with a dotted arrow pointing to the first disk, indicating that driving behavior. In the second, the VR Robot is at the first disk, indicating the electromagnet will pick up the disk. In the third, a curved arrow points counterclockwise, indicating the robot needs to turn around. Finally, the robot with the disk faces the goal, with a dotted arrow pointing back to the goal, indicating returning the disk to the goal.

     

  • However, after collecting the first blue disk, the VR Robot will need to drive towards the next section of the Disk Mover Playground to collect the first red disk. A top down view of the Disk Mover Playground with the first blue disk in the blue goal, and the VR Robot in the front of the goal facing to the right. A dotted arrow extends from the front of the robot to the red goal in the center section of the Playground, indicating the intended movement.
  • Then it will turn to face the disks, so that it is ready to drive and collect the first red disk, as it did the blue disk. Top down view of the Disk Mover Playground with the VR Robot at the red goal, facing the right, with a curved arrow indicating the robot needs to turn to the left to face the red disks.
  • With all of these behaviors, the VR Robot will be able to collect the first disk of each color and return it to the corresponding goal, using nested loops to repeat the behaviors. Top down view of the Disk Mover Playground at the start, with dotted arrows indicating the path the robot needs to move to collect each Disk. Arrows point to and from each goal to the first disk, and additional right arrows point between each of the goal areas.

Select the Next button to continue with the rest of this Lesson.