Skip to main content

Speedbot is ready to drive at different velocities!

This investigation will help you to learn more about programming the Speedbot to drive at speeds that are best suited for the task. In the Strike Challenge at the end, you will need to find a velocity for the Speedbot that allows it to be fast and have great momentum but remain in control in order to hit the ball at a good angle and with great force.

VEXcode V5 that will be used in the first part of this investigation:

A block-based coding sequence in VEXcode showing two blocks: 'set drive velocity to 50%' and 'drive forward for 1 inch​​​​​​​

To find out more information about the block, open the Help and then select the block you want to read about.

Image showing the VEXcode V5 Workspace showing the help notes for the set drive velocity block

Each group of students should get the hardware required and the group’s engineering notebook. Then open VEXcode V5.

Materials Required:
Quantity Materials Needed
1

Speedbot Robot

1

Charged Robot Battery

1

VEXcode V5

1

USB Cable (if using a computer)

1

Engineering Notebook

1

Ball (the size and shape of a soccer ball)

1

3m x 3m clear space

1

Meter stick or Ruler

1

Roll of tape

1

Data table

Step 1: Preparing for the Exploration

Preparing for the Exploration

Before you begin the activity, do you have each of these items ready?

Step 2: Start a New Project

Before you begin your project, select the Speedbot (Drivetrain 2-motors, No Gyro) - Template project. The template project contains the Speedbot's motor configuration. If the template is not used, your robot will not run the project correctly.

Image showing the File menu open in VEXcode V5 showing the Open Examples option

  • Open the File menu.
  • Select Open Examples.

Image showing the Example projects with a red box around the Speedbot (Drivetrain 2-motor, No Gyro) Template Project

  • Select and open the Speedbot (Drivetrain 2-motors, No Gyro) template project.
  • Rename your project Drive Velocity because we will be using the [Set drive velocity] block.
  • Save your project.
    • For help with saving a project, review the Tutorials inside VEXcode V5.

      Image showing the Toolbar in VEXcode V5, with a red arrow pointing towards the Tutorials icon.

       

  • Check to make sure the project name Drive Velocity is now in the window in the center of the toolbar.

    Image showing the project name changed to Drive Velocity

Step 3: Drive Forward for 450 mm at Different Velocities

  • Build this project in VEXcode V5.

  • Select on the Slot icon. You can download your project to one of the eight available slots in the Robot Brain. Select slot 1.

    Image showing the slot options within VEXcode EXP

  • Connect the robot to your computer or tablet. The Brain icon in the toolbar turns green once a successful connection has been made.

    Image of the VEXcode V5 Toolbar with a red box around the green Brain Icon

  • Then, click the Download button on the toolbar to download the Drive Velocity project to the Robot Brain.

    Image showing the Brain Screen showing the Drive Velocity icon

  • Check to make sure your project has downloaded to the Speedbot’s Brain by looking at the Robot Brain’s screen. The project name should be listed in Slot 1.
  • Run the project on the Speedbot robot by selecting the project and then pressing Run.

    Image showing a red box around the Run button on the VEX V5 Robot Brain

Step 4: Drive Forward and in Reverse at Different Velocities

A block-based coding sequence in VEXcode starting with 'when started,' followed by 'drive forward for 150 mm,' 'set drive velocity to 25 percent; and drive reverse for 150 mm.' A dropdown menu is shown, with the reverse option selected

  • Change the second drive for block to drive in reverse instead of forward.
  • Then download the project.
  • Run the project on the Speedbot robot.

Step 5: Setting Up Your Testing Area

A diagram showing evenly spaced vertical lines representing distances marked at 0 cm, 50 cm, 100 cm, 150 cm, 200 cm, 250 cm, and 3 meters along a horizontal scale.

Example testing area layout

  • Use tape and a meter stick to create a 3m line on the floor like the horizontal line shown in the image above.
    • After the line is created, use tape and your meter stick once more to create 1m lines across the 3m line like the vertical lines in the image above. Tape a 1m line at every 50cm mark on the vertical line by starting at 0cm.
    • The shorter horizontal lines should be centered on the longer vertical line.
  • While the area is being set up, one or two members of your team should create a new project named Momentum. Set the velocity at 50% and have the Speedbot drive forward to the first line at 50 cm. Keep in mind 1 cm = 10 mm, so the robot will travel forward for 50 cm or 500 millimeters.

A block-based coding sequence in VEXcode showing a 'when started' block connected to two commands:set drive velocity to 50 percent; and drive forward for 500 mm

Step 6: Testing the Transfer of Energy during Collisions

A diagram showing a robot on the left side positioned at 0 cm on a horizontal scale, with a ball placed at the 50 cm mark. Vertical lines are drawn at intervals of 50 cm, labeled from 0 cm to 3 meters.

Center the ball on the horizontal line at 50cm and place your robot so that the front of it is centered on the horizontal line at 0cm. Make sure the front of the robot is facing the direction of the ball. Run your first Momentum project that has the velocity set to 50% and pay close attention as the robot collides with the ball.

Record the set velocity, the distance driven, and the distance the ball traveled in this Data Table (Google / .pdf). The first row of the table has been started for you based on the Momentum project you worked on in the previous step. Continue to add data to this table as you try setting different velocities. You can then add other teams' data as you discuss your findings as a class.

A table with three columns labeled 'Distance Driven by Speedbot,' 'Set Velocity of Speedbot,' and 'Distance Traveled by the Ball.' The first three rows under 'Distance Driven by Speedbot' are filled with '500mm,' the first row under 'Set Velocity of Speedbot' is filled with '50%,' and the 'Distance Traveled by the Ball' column is blank.

Think about and respond to the questions below in your engineering notebook as you collect your data:

  1. How can you tell that the momentum of the robot transferred energy to the ball during the collision? Explain with details.
  2. Repeat the test at least twice more. Try a velocity less than 50%. Reset the ball in its position and record in the table how far the ball travels. Also, try a velocity more than 50%. Reset the ball in its position and record in the table how far the ball travels.
  3. When all groups have completed their three tests, discuss the velocities that the other groups chose and how far the ball traveled in their tests. As teams share their data, add their findings to your table.
  4. Look for pattern(s) in the data. Does the distance traveled by the ball increase or decrease as the set velocity increases?