This document discusses an optical encoder which converts rotational motion into an electrical signal. It consists of a light emitting diode (LED), slotted disk, and phototransistors. As the disk rotates, light pulses from the LED pass through its slots and are detected by the phototransistors, generating a sine wave. This wave is converted into a square wave and measured to determine pulses per revolution and revolutions per minute (RPM) using a LabVIEW program, allowing rotational speed to be monitored.