Skip to main content
Teacher Portal

Play

Part 1 - Step by Step

  1. InstructInstruct students to attach their float to the Code Base robot ensuring that all materials stay on the Code Base robot. Students may need to use more tokens to gather extra materials for this.
    A pile of assorted buttons, illustrating an example of what 'tokens' could be.
    Tokens can be classroom items such as buttons or sticky notes
  2. ModelModel using a group’s setup, how to put the float on top of or around the Code Base robot. Let students know that the float might need to be removed from the Code Base robot at the end of the Lab. They will need to reattach their float at the beginning of Lab 3.
    • Encourage students to use pins, standoffs and connectors from the VEX GO Kit to secure the float. See the Pieces of the VEX GO Kit VEX Library article for information on the various categories and functions of the Kit pieces.

    Side by side images of a parade float and a perspective view of the Code Base, to emphasize that the float should be build on top of the robot.
    Design a Float that Attaches to the Code Base

     

  3. FacilitateFacilitate the attachment process by walking around and helping students who are struggling.

    Encourage students to work together and use spatial language to help attach the float. For example, encourage discussion and explanation by asking the students:

    • Why did you attach that piece to the side/top/back of your Code Base robot?
    • What would happen if you moved this piece to the other side or even on top of the float?
    • How would you describe attaching the float to the Code Base robot? What words would you use such as on top of, next to, or behind?
  4. RemindRemind groups that frustration happens. Ultimately trial and error is a part of life, and there is enough time for both.
  5. AskAsk students to help other groups once they are done with their float attachment.

Mid-Play Break & Group Discussion

As soon as every group has accomplished attaching their float to the Code Base robot, come together for a brief conversation.

  • What problems did you come across while attaching your float?
  • How did you solve this problem?
  • What solutions did your group use when you found problems in your design?
     

Part 2 - Step by Step

  1. InstructInstruct students to create a project using VEXcode GO so that their Code Base float moves around the parade route. Let students know that they will work with their groups to create pseudocode and a project to drive their float through a short parade route.

    A sketch of a parade route that begins in the upper left corner at a green square. An arrow extends to the right, then a second arrow points down, then a third arrow points to the right toward a red square that indicates the end.
    Example Parade Route

     

  2. ModelModel for students how to begin writing pseudocode to plan for their movements around the parade route.
    • Demonstrate how a float will move through the route. Physically move a Code Base through the parade route course, and have the students provide the spatial language for how the robot is moving. (i.e. moving forward 200 millimeters (mm), turning right 90 degrees.)
    • Once students understand how to navigate the parade route, they will create pseudocode to plan the path of their Code Base through the route. Show students the animation below and walk them through this process. In the animation the Code Base follows directions as they appear onscreen in a list. The directions read Robot drives forward for 21cm, Robot stops, Robot rotates right for 90 degrees, Robot drives forward for 20cm, Robot stops, Robot rotates left for 90 degrees, and finally Robot drives forward for 20cm.
    Video file
    • Show students how to begin writing pseudocode to plan for their movements around the parade route. Remind them that pseudocode is a step-by-step outline written by hand. Encourage students to be exact with their pseudocode to include driving distances and degrees of turns. 

    Sample pseudocode lists 5 steps and reads: 1. Robot drives forward for 200mm; 2. Robot turns right for 90 degrees; 3. Robot drives forward for 200mm; 4. Robot turns left for 90 degrees; 5. Robot drives forward for 200mm.
    Example of Pseudocode 
    • Have students work with their group to write pseudocode.

    Once the students have completed their pseudocode, they will need to transfer their pseudocode into [Comment] blocks in VEXcode GO. Ensure students have completed the following steps. If necessary, model the steps outlined in the attached VEX Library articles:

    Note: When you first connect your Code Base to your device, the Gyro built into the Brain may calibrate, causing the Code Base to move on its own for a moment. This is an expected behavior, do not touch the Code Base while it's calibrating.

    Model for students how to add [Comment] blocks into the project. Students will need one [Comment] block for each line of pseudocode. So, if they have eight lines of pseudocode, they will need eight [Comment] blocks. Model for students the first three lines of the example.

    A VEXcode GO project with the 5 pseudocode steps as 5 comment blocks attached to a when started block. The project reads When started, Drive forward 200mm; Turn right 90 degrees; Drive forward 200mm; Turn left 90 degrees; Drive forward 200mm.
    Pseudocode Transferred to [Comment] Blocks

    Once students have transferred their pseudocode, they will add Drivetrain blocks. Remind students that the [Comment] blocks are used to organize their projects and they will not execute behaviors. They will need to add Drivetrain blocks to make their Code Base move.

    • Have students add a [Drive for] block under the first [Comment] block.

    The same VEXcode GO project as before, with a Drive for block being dragged in between the first and second comment blocks.
    Add [Drive for] Block
    • Then, have students adjust the parameters to match what is called for in the [Comment] block. In this case, that is 200 millimeters (mm).

    The same VEXcode GO project with the distance parameter of the Drive for block set to 200mm. The start of the project now reads When started, Comment - Drive forward 200mm; Drive forward for 200mm.
    Adjust Parameters
    • Instruct students to continue adding the matching blocks throughout their pseudocode.
    • As students complete their projects, have them start their projects and test their code on the test parade route setup.

    The same VEXcode GO project with Drive for and Turn for blocks added between each of the Comment blocks. The project reads When started, Comment Drive forward 200mm; Drive forward for 200mm; then a comment of Turn right 90 degrees; Turn right for 90 degrees; then a comment Drive forward 200mm; and Drive forward for 200mm; then a comment of Turn left 90 degrees, and Turn left for 90 degrees; lastly a comment of Drive forward 200mm with a Drive forward for 200mm block.
     Example Project with Pseudocode

     

  3. FacilitateFacilitate a discussion with the students by asking the following questions:
    • How many turns are in the parade route?  What direction are they?
    • How far does your Code Base robot have to move for the entire parade route?
    • Can you use your hands to explain how the robot needs to move through the course?
    A sketch drawing of a teacher with a small group of students around a table working and collaborating to code the robot to drive the route.
  4. RemindRemind students that each step in their pseudocode is a behavior that their Code Base robot will complete. Behaviors should be as specific as possible.
  5. AskAsk what types of jobs require coding? Can they ever see themselves working at a job that requires coding? What is fun about coding?