Pololu Magnetic Encoder 12cpr

Please post a wiring diagram (hand drawn, not a Fritzing mess).

Note: to get the full resolution of the encoder, you have to have an interrupt or poll event for every transition (rising and falling) on both A and B channels.