Skip to main content

Lesson 3: Picking Up and Moving Disks

In the previous Lesson, you used the [Energize Electromagnet] block and Drivetrain blocks to pick up and move disks on the Disk Mover Playground with the VR Robot. This Lesson will solve the same challenge using reported sensor feedback and [Repeat until] blocks.

A top-down view of the Disk Mover Playground with the VR Robot in the starting position in the blue goal with the first blue disk highlighted in a red box.

Learning Outcomes

  • Identify how to use the [Repeat until] block in a project.
  • Identify that the <Eye Sensor near object> block reports if the Eye Sensor is close enough to an object to detect a color.
  • Identify that the [Turn to heading] command turns a drivetrain to a specific heading, using the Gyro Sensor.
  • Identify that the [Turn to heading] command will determine which direction to turn based on the current heading of the Gyro Sensor.
  • Explain why a [Turn to heading] command would be used instead of a [Turn] or a [Turn for] command.

Why Use Sensors?

In Lesson 2, the VR Robot drove a specified distance using the [Drive for] block to pick up and move a blue disk back to the goal. The distance between the VR Robot and the first blue disk was estimated and checked using the dimensions of grid squares on the Disk Mover Playground. While this did solve the challenge, there is much room for error in duplicating the process to pick up multiple disks at various distances, which is necessary to solve the Disk Mover Challenge at the end of this Unit. Using reported sensor feedback is a more efficient way to solve this challenge, while also optimizing the project by using fewer blocks.

What if the VR Robot collides with a disk and is knocked off course? What if the disks are in slightly different locations from the goal? Feedback from sensors can be used to precisely pick up and move disks without knowing their exact location on the Disk Mover Playground.

The steps to solve the challenge can be used to determine which sensors to use in the project.

  • First: The VR Robot will drive to the first blue disk.

    Top down view of the Disk Mover Playground, with the VR Robot in the blue goal starting position in the lower left corner. A dotted arrow goes from the front of the robot to the first blue disk, indicating the movement needed to get to the disk.
    • The disks are on the ground of the Playground. To determine where a disk is located, the Down Eye Sensor can be used with the <Eye Sensor near object> block.

      The bottom of the VR Robot with the Down Eye Sensor highlighted. The Down Eye Sensor is located directly behind the Electromagnet.
  • Second: The VR Robot will pick up the first blue disk.

    The VR Robot on the Disk Mover Playground with a blue Disk attached to the Electromagnet.
  • Third: The VR Robot will drive back to the blue goal.

    A top down view of the Disk Mover Playground, the VR Robot has picked up the first blue Disk. There is a dotted arrow from the back of the robot to the blue goal, indicated the movement needed to drop the disk in the goal.
    • While driving back to the blue goal, the VR Robot will use the Distance Sensor to determine when to stop driving. The Distance Sensor can be used to determine how far away the front of the VR Robot is from the wall of the Playground.

      The VR Robot with the Front Eye Sensor highlighted. The Front Eye Sensor is located in the front center of the robot, above the Electromagnet.
  • Finally: The VR Robot will drop the blue disk into the blue goal.

    VR Robot in the blue goal in the corner of the Disk Mover Playground dropping the blue disk in the goal.

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