Skip to main content
Teacher Portal

Play

Part 1 - Step by Step

  1. InstructInstruct each group that they will be opening and starting the 'Using the LED Bumper' example project in VEXcode GO to see the color-changing function of the LED Bumper.

    Code Base LED Bumper Top with the Touch LED glowing Green.
    Using the LED Bumper on the Code Base
  2. ModelModel for students the steps to launch VEXcode GO.

    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.

    • Students will be using an example project to help them learn about  commands related to the LED Bumper in VEXcode GO. Model for students how to open the File menu and select 'Open Examples.'
    • File menu in VEXcode GO open, with the Open Examples option highlighted in a red box. Open Examples is the third menu option, below New Blocks Project and Open.
    • Open the 'Using the LED Bumper' example project.

    Example project icon reads 'Using the LED Bumper' at the bottom, and shows a purple icon image of the Touch LED with an arrow wrapping around it.
    Open "Using the LED Bumper" Example Project
    • Model for students how to save the example project, and name it Using the LED Bumper, then start the project and observe the changing color pattern on the LED Bumper.

    The project name box in the center of the VEXcode GO Toolbar is highlighted with a red box, and reads Using the LED Bumper.
    Rename and Save Project
    • After the project is complete, students should be sure to select 'Stop' in the Toolbar.

    The VEXcode GO Toolbar with the Stop button highlighted in a red box. The icons from left to right show a green Brain icon, then Start, Step, Stop, Share, and Feedback.
    Stop the Project
    • Model for students how they can change the parameter of a block by selecting a dropdown or changing the number in the [Set bumper color] and [Wait] blocks.

    The Using the LED Bumper example project is shown twice, to highlight how to change the parameters in different blocks. On the left, the parameters of the first Set bumper block is opened and 'red' is selected. On the right, the parameter of the first Wait block is highlighted and changed to 3.
    Change the Parameters
    • Model how to add or remove blocks from the example project to create a new pattern. Students should change only 1 or 2 parameters or blocks at a time, then start their project to see what changed.

    An overview of how to add or remove blocks from the example project is shown. In the stack on the left, the last Set bumper block is shown detached from the project, as if to remove it. In the stack on the right, a Set bumper to off block and a Wait block are being dragged toward the stack, as if to add them to the project.
    Add or Remove Blocks
    • Students should continue testing their projects to create a new pattern of LED Bumper color displays.
  3. FacilitateFacilitate a discussion with students as they create a new pattern.

    Child with thought bubble above her head, imagining a new pattern. The pattern she is thinking of includes green, red, greed, then off.
    Create a New Pattern
    • What pattern are you trying to create? 
    • What has your group changed in the project so far? Why?  
    • How could displaying color be useful in a project? 
       
  4. RemindRemind groups that they can change the color displayed on the LED Bumper and the time between each color change to make a new pattern.
    • To change the time between each color change, students should change the parameter in the [Wait] block. 

    A VEXcode GO project with the first wait block highlighted, and the parameter set to 4 seconds. The project reads: When started, with a comment of 'Repeat color changes 10 times', then a Repeat block set to 10. Inside the C of the Repeat block the blocks read: Set bumper to red; Wait 4 seconds; Set bumper to green; Wait 1 second; Set bumper to off; Wait 1 second.
    Change time between colors

     

  5. AskAsk students what other things they have seen that display a color pattern, or display colors to indicate something. How does that make the object more useful? For example, a traffic light uses a color pattern to tell drivers to stop and go. The indicator light on the VEX GO Battery shows a user when it needs to be charged.

Mid-Play Break & Group Discussion

As soon as every group has created a new pattern with the LED Bumper, come together for a brief conversation.

  • What new pattern did your group create? What did you change in order to do that? 
  • What action was the LED Bumper performing in the example project? How else can the LED Bumper be used? Let’s think about the Bumper part. 
  • The LED Bumper can sense when it is pressed, and it can use that information to cause something to happen. Why do you think that could be useful?

Part 2 - Step by Step

  1. InstructInstruct students that they are going to use a different example project to explore how the LED Bumper can be used to cause a behavior when it is pressed.

    A close up image of the Code Base in the corner of a GO Field, with a hand reaching to press the top of the LED Bumper.
    Pressing the LED Bumper
  2. ModelModel using a group’s setup, how to open the 'Wait Until Push' example project and test it. Place the Code Base in the field to begin.
    • Model for students how to open the File menu and select ‘Open Examples’.
    • File menu in VEXcode GO open, with the Open Examples option highlighted in a red box. Open Examples is the third menu option, below New Blocks Project and Open.
    • Select the ‘Wait Until Push’ example project.

    Example project icon reads Wait until Push at the bottom, and shows an orange icon image of a robot with an arrow pointing up and a finger pressing a button.
    Wait Unit Push Example Project

    The project name box in the center of the VEXcode GO Toolbar is highlighted with a red box, and reads Wait Until Push.
    Rename Project Wait Until Pushed
    • Model for students how to start the project and observe the behavior of the Code Base. Be sure to select Stop in the Toolbar when the project is complete.
    • Students should test this project themselves. After the initial testing, students should add additional blocks to expand the behavior of the Code Base when the LED Bumper is pressed. Students can use a [Drive for] or [Turn for] block to add motion or add the [Set bumper color] block to add the color display they used in Play Part 1. 
  3. FacilitateFacilitate students understanding of the cause and effect nature of the LED Bumper in this project, as they are testing their projects.

    A VEXcode GO project begins with a When started block, and an attached comment that reads Press the LED Bumper to begin movement of the Drivetrain. The two blocks attached read Wait until bumper pressed; then drive forward for 150mm. A Turn for block is being dragged toward the project to be added to the stack.
    Add Blocks to the Project
    • What is the effect of pressing the LED Bumper in the original project?
    • What more do you want your Code Base to do when you press the LED Bumper? What blocks do you need to add to do that?
  4. RemindRemind students that they should think about the intended behaviors prior to adding the blocks to their projects.
    • If their changes to the project don’t work as intended, remind students that trial and error is a part of learning, and of coding.
    • Remind students that talking through problems with their group can help them explain their thinking, and set them up to problem solve together.
  5. AskAsk students to think about what other cause and effect relationships they can think of. For instance, when you hear the bell ring (cause), you line up for recess (effect). What other examples can you think of?