Patent attributes
Rotary encoders suitable for inclusion within small form factor devices (e.g., as input devices to small form factor electronic devices) are disclosed. In one aspect, a light source can illuminate a pattern on a rotatable shaft in order to reflect the pattern onto an array of optical sensors. Each optical sensor from the array of optical sensors can be polled at the same time to yield a snapshot vector. The snapshot vector can be projected onto a subspace spanned by two vectors selected in part on the pattern of the rotatable shaft and the distance separating the shaft and array. The resulting projection can be used to determine error and phase of the reflected pattern across the array of optical sensors. The phase of the reflected pattern can correlate to rotation of the shaft.