For fun, and because optical encoders cost an arm and a leg. Initial BOM for 10 pieces places this thing around the price of a mechanical encoder. None of this is tested yet.
Optical encoders are electromechanical motion sensor and feedback devices comprising of a photodetector, LED light source, along with a disc with slot apertures. The benefits of optical encoders ...