VEX Sensors Overview
| Line 11: | Line 11: | ||
|- | |- | ||
|''For ROBOTC PIC Sensor ''functions'', check out the [[VEX:_Functions_-_Sensors|PIC Sensor Functions]] page!''<br /> | |''For ROBOTC PIC Sensor ''functions'', check out the [[VEX:_Functions_-_Sensors|PIC Sensor Functions]] page!''<br /> | ||
| + | <br /> | ||
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.<br /> | 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.<br /> | ||
Revision as of 09:09, 8 March 2012
|
Main >> PIC >> 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:
|
|
Analog Sensors
|
Digital Sensors
| There are 5 main types of Analog Sensors for the VEX PIC: |
|