I took the interrupt like you said. but the results that the encoder is giving me is too high for just a little bit of movement. here is what I get on the serial monitor
Coder value: 964[Left Wheel] 0[Right Wheel]
Coder value: 885[Left Wheel] 0[Right Wheel]
Coder value: 842[Left Wheel] 0[Right Wheel]
Coder value: 810[Left Wheel] 0[Right Wheel]
Coder value: 2167[Left Wheel] 0[Right Wheel]
Coder value: 2432[Left Wheel] 0[Right Wheel]
Coder value: 2437[Left Wheel] 0[Right Wheel]
Coder value: 2372[Left Wheel] 0[Right Wheel]
Coder value: 214[Left Wheel] 0[Right Wheel]
and the values are not even consistent...
Do you think there is something wrong with the code or is it the hardware?