Adjusting the V5 Vision Sensor in VEXcode V5

A Vision Sensor can be used to see objects and allow your robot to interact with the world around it. Occasionally, the robot may have difficulty detecting known objects. Known objects are objects that have been previously configured to be recognized by the Vision Sensor. Often times an object is configured to be recognized by the Vision Sensor in one environment, for example, in a classroom. When the Vision Sensor is then taken into a different environment such as a competition setting, the object may not be recognized by the Vision Sensor. This is often due to a change in lighting after the Vision Sensor has already been configured. To solve this problem, you may have to tune your Vision Sensor. 

In this article, we will be using the Detecting Objects (Vision) example project.


Diagram showing the robot configuration for V5 category, illustrating various components and their connections for optimal performance in robotics applications.

In VEXcode V5, open the configuration window.

Diagram illustrating the configuration of a V5 robot, showcasing various components and their arrangement for optimal performance in robotics applications.

Choose the Vision Sensor from the Devices list and select “Configure” to launch the Vision Utility.

Diagram illustrating the configuration of a V5 robot, showcasing various components and their arrangement for optimal performance in robotics applications.

In this project, the Vision Sensor has been configured to detect a blue, red, or green object. Place a known object in front of the Vision Sensor.     

Here, the Vision Sensor should detect that this is a red object. However, since the lighting conditions have changed, the Vision Sensor is having trouble detecting the red object.  


Adjusting the Signature Slider

Diagram illustrating the robot configuration for V5 category, showcasing various components and their arrangement for optimal performance.

Select the signature slider of the red object.

Diagram illustrating the robot configuration for V5 category, showcasing various components and their arrangement for optimal performance in robotics applications.

Move the slider to detect more of the red object. The slider determines the width of the color to be detected. Increasing the width means including lighter and darker shades of a color.

Note: It is important to keep in mind that changing the slider too much could hinder the accuracy of the reading.


Adjusting the Brightness

Another way to tune the Vision Sensor is to change the brightness. Changing the brightness increases or decreases the Vision Sensor’s sensitivity to light. This allows the Vision Sensor to be used in different environments. 

Diagram illustrating the configuration options for V5 Robot, showcasing various components and their connections, relevant to the V5 Category Description and Robot Config section.

Select the brightness slider.

Note: Adjusting the brightness affects all colors.    

Diagram illustrating the robot configuration options for V5 category, showcasing various components and their arrangement for optimal performance.

Move the slider to adjust the Vision Sensor’s sensitivity to light for it to be able to detect the color signatures more accurately.

Note: It is important to keep in mind that changing the slider too much could hinder the accuracy of the reading.


Resetting the Signature

Depending on the environment and the color of the signature set, adjusting the brightness or the signature slider may not work. Another option is to clear the color signature and reset the signature.

Diagram illustrating the robot configuration for V5, showcasing various components and their arrangement, relevant to the V5 Category Description.

Clear the set signature.

Diagram illustrating the robot configuration options for V5, showcasing various components and their connections in a labeled format.

Place the object in front of the Vision Sensor and select “Freeze” to still the image.

Diagram of a V5 robot configuration, illustrating various components and their connections, used for understanding the setup in V5 robotics.

Select a colored area on the object that will be used to configure the color. The “Set” icons will turn green when a new signature is being configured.

Diagram illustrating the robot configuration for V5 category, showcasing various components and their arrangement for optimal performance in robotics applications.

Once the colored area has been selected, configure the color by selecting the “Set” button.

Diagram illustrating the configuration options for V5 robots, including various components and their connections, relevant to the V5 Category Description section on Robot Config.

The signature has been reset and the “Set” icons have returned back to blue.

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

Last Updated: