Programming instructions
Reference
Project Lead The Way
©
and Carnegie Mellon Robotics Academy
©
/ For use with VEX
®
Robotics Systems
Shaft Encoders • 3
The Quadrature Shaft Encoder is also fully supported by ROBOTC for IFI (v. 1.40 and
up). Use the following instructions and the wiring conguration on the previous page to
correctly congure them within ROBOTC.
Robot > Motors and Sensors Setup
Open the Motors and Sensors Setup
window.
Sensor Conguration
Select A/D Sensors 1-8.
Type “rightEncoder” next
to in2, set its type as a
Quadrature Encoder, and
its second port as in5.
Type “leftEncoder” next
to in3, set its type as a
Quadrature Encoder, and
set its second port as in6.
Press “OK” to complete
the conguration.
Shaft Encoders ROBOTC Setup
Note: The Quadrature Encoders can be
plugged into any of the Analog / Digital
Ports (in1 through in16) and Interrupt
Ports int3 through int6. However, if your
robot is being congured with analog
sensors (Potentiometer, Reection, Light)
as well, the Encoders must be plugged
into higher port numbers for them to
Go to Reference Links