Coding with the VEX GO LED Bumper

The VEX GO LED Bumper is used to detect physical contact and display colors.

GO_Brain-Bumper.png

Note: In this article, the example projects use the Code Base - LED Bumper Top GO Build.


How the LED Bumper is Used

The LED Bumper is used to detect physical contact and display colors. When the LED Bumper is pressed, it can be used to trigger a behavior. For example, the LED Bumper can be used to start or stop the Drivetrain when pressed.

CodeBase_Lab_3_-_PushToStart.png

The <Pressing bumper> block is used to determine if the LED Bumper is pressed.

_Pressing_bumper__block.png

Or, to display a certain color. The colors the LED Bumper can display are: off, green, and red.

GO_Bumper-Colors.png

The [Set bumper color] block is used to set the LED Bumper to a certain color.

_Set_bumper_color__block.png


LED Bumper Color Example Project

The code below will set the LED Bumper color to green if pressed, and red otherwise.

LED_Bumper_Color_project.png


Detect Object Example Project

The code below will drive the Code Base away from an object once the LED Bumper is pressed.

Detect_Object_example.png

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: