Skip to main content

CS Level 1 - VEXcode VR Python

Unit 8 - Moving Disks with Loops


Using Python with VEXcode VR requires a VR Enhanced or Premium license. Make sure you are logged in with your class code and that the VR Logo in the top left corner is grey or gold.

In this Unit, you will learn how to use the Electromagnet on the VR Robot to pick up and drop disks to solve the Disk Mover challenge. You will apply skills learned in previous units to create a project that uses VR Robot Sensors and loops to solve the Disk Mover Challenge.

The Disk Mover Problem

In the Disk Mover Challenge, the goal is to be able to drive the VR Robot to a disk, pick it up with the Electromagnet, drive it to a new location, and drop the disk. This same behavior sequence is repeated in order to move multiple disks on the Playground. There are many ways to solve the Disk Mover problem. Using strategies and tools we have used in previous Units, as well as some new tools, we can use the VR Robot to move disks in the most efficient way possible. First, we will learn about the Electromagnet, and how to use it in a Disk Mover solution.