This is another of my attempts to control a dc motor, the first one was successful but this time I'm modifying some ...
A quadrature encoder uses two output channels offset in phase to detect both direction and position with greater precision.