Check out these quadrature encoders corresponding to this schematic.