Spike Prime Programming Resources

HOW TO BUILD THE BASE BUILD

This your base build. It is VERY simple. You do not need to have this base build for your team, but your team WILL need to decide on a base build so that ALL the team's robots have the exact same base build.

Spike Prime - Connect Robot and Download Programs 2023-24 AYusufiJHicks
ConfiguringRobotMovement.pdf
Spike Prime: How To Plan A Pathway 2023-24 ECastro-JLucksanalamai

Measuring distances with Hub Connection

When you are programming your robot's path, you will need to put values into the coding blocks to tell the motors how much to turn.  CLICK HERE to take you to the instructions for using your "Hub Connection" in the Spike Prime app to do just that.

Easy 90 degree turn

This will give you a 90 degree turn to the right.

Additional Programming Blocks

The Spike Prime app opens up with a large number of programming blocks available, however there are ADDITIONAL PROGRAMMING BLOCKS - (click here) or "block extensions" available that you can add to what you already have.

Accurate turns using the gyro sensor and yaw value.

As shown on the left, when the robot turns to the LEFT, the yaw value decreases.

When the robot turns to the RIGHT, the yaw value increases.

For accurate turns, reset your "yaw" angle to zero.

WAIT for a half second to allow the robot time to actually do the reset before taking off.


The stack to the right has the robot turn 90 to the left (yaw value decreases)

Then, it turns right by having the yaw value INCREASE back to zero.


It is possible to reset the yaw value before each turn so that you don't have to keep adding and subtracting values, but you will need to use WAIT blocks to allow the reset to perform.