Vex Robotics Optical Shaft Encoder
The VEX Encoder is designed for the 1/8” square shaft and connection to the VEX controller. The connector needs to be attached to one of the interrupt ports.
Make sure that the encoder has no binding when mounted and the shaft is free moving. The shafts should have Derlin Bearings near the mount point of the encoder to keep the square shaft from bouncing off of the square metal frame hole.
To code in Intelitek easyC:
(Master code version 7 or greater must be downloaded to the controller before this will work)
Under the Inputs, there is an Optical Shaft Encoder function.
The options for the function are:
Start – Start the interrupt recording of the pulses from the sensor
Preset – Sets the initial value of the sensor’s register, if desired
Get – Gets the current sensor’s register for use
Stop – Stops the handling of the interrupt recording
* Note that you cannot handle the interrupt under this function. You will have to ‘Get’ the values and check on the current register value for handling.
Additional VEX resource and information:
VEX Robotics Optical Shaft Encoder Kit
Inventors Guide - Optical Shaft Encoder
We occasionally carry an encoder kit for sale, you can give use a call or stop by to check if one is available.