Device Setup: Sensors#

Add a Sensor#

Open the Devices Tab#

Select the Devices tab.

Screenshot of VEXcode's tab bar, with the Devices tab highlighted.

If the Devices tab is not visible, see Add a Tab in the Navigating VEXcode tutorial.

Select Add a Device#

Select Add a Device in the Devices tab.

Screenshot of the Devices tab, with the Add a Device button highlighted.

Select a Sensor#

Select which sensor you’d like to add to the robot. Sensors that connect to a Smart Port are shown directly in this list.

Screenshot of the Select a device screen, showing the available Smart Port sensors, along with a 3-Wire option.

Smart Ports#

Select which Smart Port (1-21) the sensor is connected to.

Screenshot of the Select a port screen for an Optical Sensor, showing ports 1 through 21 to choose from.

3-Wire Devices#

Devices that connect to a 3-Wire Port instead of a Smart Port, like the Bumper Switch or Limit Switch, are grouped under their own 3-Wire option.

Select 3-Wire#

From the Select a device screen, select 3-Wire.

Screenshot of the Select a device screen, with the 3-Wire option highlighted.

Select a 3-Wire Device#

Select which 3-Wire device you’d like to add to the robot.

Screenshot of the Select a device screen, showing the available 3-Wire devices, including Limit Switch, Bumper, Encoder, Range Finder, Line Tracker, Light Sensor, Potentiometer, LED, Gyro, Motor393, Servo, Accelerometer, and Digital In/Out.

Select the 3-Wire Port#

Select which 3-Wire Port (A-H) the device is connected to.

Screenshot of the Select a port screen for a Bumper Switch, showing ports A through H to choose from.

Configure Additional Settings#

Some more complex sensors, like the AI Vision Sensor, will have additional settings to configure. For example, the AI Vision Sensor lets you configure Color Signatures and Codes it can detect.

Screenshot of the AI Vision Sensor Settings screen, showing the Configure button, Detection Modes, Configured Colors, and Configured Codes.

Select Done#

Once your sensor is configured, select Done to add it to your robot.

Screenshot of the Select a port screen for an Optical Sensor, with a port selected and the Done button highlighted.

View the Sensor in Your Devices List#

The sensor will now appear in your list of devices, and its blocks will be added to your toolbox.

Screenshot of the Devices tab, showing Optical1 in the list of devices.