Skip to main content
Teacher Portal

Engage

Launch the Engage Section

ACTS is what the teacher will do and ASKS is how the teacher will facilitate.

ACTS ASKS
  1. Have students share their ideas about how this could be used by the real Mars rover. Remind them of the things the real rovers, like Perseverance, are looking for. You can use the Background information as a reference.
  2. Encourage students to think about the surface of Mars, and the samples that could be collected - this can be general, like “rock” or “soil.” The idea is to show that there is a need for sorting different items using sensor data.
  3. Guide students to the idea that since there are no humans on Mars to do this work, so the Mars rovers, like Perseverance, have to keep things organized for future study.
  4. Have students share their answers, and draw on their experiences with the Code Base in the previous Lab to guide them to the idea of using a condition, or an [If then] block, like they did in Lab 2.
  5. Get students ready to explore this with you.
  1. In Lab 2, we used our Code Base to sort a Disk based on its color. Why do you think this kind of behavior could be useful on the Mars rover?
  2. We used Disks to represent rock samples – do you think there is more than one kind of rock sample to sort on Mars? What kinds of samples do you think the Mars rovers, like Perseverance, are collecting?
  3. Why do you think it’s important for the rover to be able to sort the samples after they’re collected?
  4. How do you think scientists code the rover to collect and sort different types of samples to different places? How can they use the sensor data from the rover to help it make decisions about how to sort the samples?
  5. Let’s think about what we did in Lab 2 - we used a Red Disk to represent a rock sample. What if we added a Blue Disk or a Green Disk to represent other types of samples? How can we code our Code Base to collect and sort multiple Disks based on their color?

Getting the Students Ready to Build

Before we build our projects, let’s look a little more closely at how they are working, when the Code Base is making a decision. (If students do not have a pre-built Code Base 2.0 - Eye + Electromagnet from the previous Lab, allow 10 - 15 minutes for students to build it prior to the Lab activities.)

Facilitate the Build

  1. InstructInstruct students that you are first going to look at their project from Lab 2 using the Stepping feature in VEXcode GO, to see the project flow more clearly.
    • When students join their groups, have them complete the Robotics Roles & Routines sheet. Use the Suggested Role Responsibilities slide in the Image Slideshow as a guide for students to complete this sheet.
  2. DistributeDistribute one pre-built Code Base 2.0 - Eye + Electromagnet, a Red Disk, and a tablet or computer with VEXcode GO open for demonstration purposes. Students should be able to see the screen and the robot. Students will collect their materials after the demonstration.

    VEX GO Code Base 2.0 Eye + Electromagnet build.
    Code Base 2.0 - Eye + Electromagnet
  3. FacilitateFacilitate a demonstration of stepping through a project for students, to show the project flow with the [If then] block.
    • Turn on, connect, and configure VEXcode GO for the Code Base, if you have not already done so before the start of the Lab. See the Connecting articles in the VEX Library for device-specific information about connecting your robot to VEXcode GO. See the Configuring a Code Base article for more information on configuring VEXcode GO for your robot.
    • Open the Sort Red 1 project from Lab 2. See the Open and Save section of the VEXcode GO VEX Library for device-specific steps to open a VEXcode GO project, if needed. If you do not have access to the project from Lab 2 build the following project in VEXcode GO.

      VEXcode GO blocks project titled 'Sort Red 1' from Lab 2. The project reads When Started, to collect the disk drive forward for 400mm and then energize the magnet to boost. Next, turn right for 180 degrees and drive forward for 400mm. To sort the disk, turn left for 90 degrees and if eye detects red then drive forward for 100mm and energize the magnet to drop. Finally, and still inside the If Then block, drive reverse for 100mm and turn left for 90 degrees.
      Sort Red 1 project
    • Place a Red Disk in the location, as shown in the Field Setup image below, and place the Code Base on the Mars Base (starting position).

      Top down view of a GO field with a red disk in the top left and a black 'X' drawn with dry erase marker on the bottom of the field to the left. The robot is placed to the left side of the 'X' and directly below the red disk, facing towards the disk.
      Setup to test
    • Press the Step button in the VEXcode GO Toolbar, to begin the project one block at a time. When the Step button is pressed, the highlight feature in VEXcode GO will flash on the block being executed, then glow solidly around the next block in the project. Press the Step button again to move to each block in the project. Help students to recognize that the block that is highlighted is the block that is running in the project. To learn more about the Stepping Feature in VEXcode GO, see the Stepping Through a Project in VEXcode GO VEX Library article.

      VEXcode GO Toolbar with the Step button called out in a red box, in between the Start and Stop icons.
      Step button
    • After the Code Base collects the Red Disk, guide students to think about the project flow of the [If then] block. Ask students to predict whether the blocks inside of the [If then] block will run. We will know if these blocks run because they will become highlighted:

      The same VEXcode GO blocks project, with the If Then container block highlighted in green to indicate which blocks are inside of it. The project reads When Started, to collect the disk drive forward for 400mm and then energize the magnet to boost. Next, turn right for 180 degrees and drive forward for 400mm. To sort the disk, turn left for 90 degrees and if eye detects red then drive forward for 100mm and energize the magnet to drop. Finally, and still inside the If Then block, drive reverse for 100mm and turn left for 90 degrees.
      Will the blocks inside the [If then] run?
      • Our Code Base collected the Red Disk. Will the blocks inside of the [If then] block be highlighted next? Why or why not? 
        • Since the Disk is red, and <Detects color> block is set to 'red', the condition of the [If then] block is true. So the blocks inside of the [If then] 'C' block will run. 
    • Continue to step through the project, to show students how the highlighting moves through the blocks in the [If then] block as the Code Base sorts the Red Disk. 
    • Once you have stepped through the project completely, remind students that the Mars rover will collect different kinds of samples. Show students the Blue Disk, to represent a different rock sample. Reset your Code Base on the Field and replace the Red Disk with a Blue Disk. 
    • Step through the project again, and after collecting the Blue Disk, ask students to predict whether the blocks inside of the [If then] block will be highlighted: 
      • If we use a Blue Disk instead of a Red Disk, will the blocks inside of the [If then] block be highlighted? Why or why not? 
        • Since the Disk is blue, and <Detects color> block is set to 'red', the condition of the [If then] block is false. So the blocks inside of the [If then] 'C' block will NOT run. 
    • Ask students what they could do to code their Code Base to make it sort both Red and Blue disks. Tell students that they will be exploring this during Play, when they build on their projects to add more [If then] blocks, to make their Code Base collect and sort different colored Disks to their sorting areas, based on color. 
  4. OfferOffer positive reinforcement for students who are actively engaging in the demonstration, asking and answering questions, and listening to their classmates.

Teacher Troubleshooting

Facilitation Strategies

  • Think about how your students will access VEXcode GO. Ensure that the computers or tablets that students will use have access to VEXcode GO. For more information about setting up VEXcode GO, see this VEX Library article.
  • Gather the materials each group needs before class. For this Lab, each group of two students will need a GO Kit, Build instructions, a computer or tablet to access VEXcode GO, and the Red, Blue, and Green Disks from the Kit. Students will also need access to a Field for testing. 
  • Set up your Fields ahead of time, as shown in the image below, to serve as a testing area for the Code Base. Have these spread out around the classroom to allow students ample space to test their projects. In this image, the Blue Disk is shown in place for Play Part 1. You may want to mark the starting locations of the Disk and the Code Base, as well as the sorting area locations with a dry erase marker to help students when they are setting up to test their projects.

    Top down view of a GO field with a blue disk in the top left and three horizontally-adjacent squares in the bottom right labeled with the letters R, G, and B. The letters indicate the spaces that the corresponding colored disks will be placed in.
    Field setup
  • Use the gridlines on the Field to help with alignment. The Disk and the Electromagnet can both be lined up on intersecting grid lines of the Field, to make it easier for students to be set up for success when they test their projects.
  • Students can use the Step button at any time while testing. The Step button can be used during student tests, to help them slow down their project’s execution, and more easily identify mistakes while troubleshooting. Students can look at each block’s behavior individually, to better identify where the robot is not performing as intended. 
  • If students finish early, have them test their project with the Red Disk. Does it collect and sort the Red Disk to the correct sorting area? Why?