Vex Robotics Optical Shaft Encoder Kit The optical shaft encoder can be used to track distance traveled, direction of motion, or position of any rotary component, such as a gripper arm.