VEX Sensors Overview
|For ROBOTC PIC Sensor functions, check out the PIC Sensor Functions page!|
The VEX is equipped with 16 sensor ports. These can be either analog (e.g. voltage level from a photocell detecting light intensity) or digital (e.g. a touch or switch sensor). Analog sensors should be connected to lower numbers ports and digital sensors connected to higher numbered ports. This is restriction in the VEX hardware where analog sensors are assigned ports 1 to N where N is the total number of ports.
There are a variety of functions and variables used for configuring these ports and accessing their values.
Configuring sensors can be complicated. ROBOTC has a built-in wizard that can be used to configure the VEX sensors. The wizard contains a number of PC windows that allow you to set the following fields for the sensor:
|There are 5 main types of Analog Sensors for the VEX PIC:|