Coding with the VEX GO LED Bumper

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

GO Brain Bumper graphic illustrating a coding concept, featured in the Coding Tutorials section of the GO category on VEX Knowledge Base.

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.

Screenshot of the CodeBase Lab 3 tutorial, illustrating the 'Push to Start' coding process, featuring code snippets and instructions for users in the 'GO' category under Coding Tutorials.

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

Illustration of a game controller bumper button being pressed, demonstrating coding tutorial concepts related to game development in the 'GO' category.

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

Image showing various bumper color options for the GO product, illustrating the different available colors for customization in coding tutorials.

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

Image showing the process of setting bumper color in a coding tutorial for the GO category, featuring a color selection interface with various color options displayed.


LED Bumper Color Example Project

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

Image showing a diagram of LED bumper color coding for VEX robotics, illustrating various color options and their corresponding codes, used in coding tutorials for the GO category.


Detect Object Example Project

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

Example of object detection output showing labeled objects in an image, used in coding tutorials for the 'GO' category.

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

Last Updated: