Encoders use a medium with a consistent pattern which passes by a sensor, producing an output that can be used by a control device to determine speed, acceleration, and/or position of some part of a mechanical system. Some technologies often used are optical, magnetic, and capacitive.