Patent attributes
Embodiments of the present disclosure provide an optical encoder for an electronic device. The optical encoder comprises an elongated shaft having an encoding pattern made up of axial markings and radial markings. The encoding pattern may be disposed around a circumference of the elongated shaft. The optical encoder also includes an optical sensor. In embodiments, the optical sensor includes an emitter and a photodiode array. The emitter causes light to shine on the encoding pattern. The encoding pattern reflects the light back to the photodiode array and the photodiode array determines movement of the shaft based on the reflected light.