Problems with pins for interruption and motor DC - Arduino UNO

Hello fellows,

I am working in a project which requires me to read the velocity a motor DC with a quadrature encoder. I am using the Arduino UNO board and for some weird reason the motor just works if it is connected to the pins 2 and 3. However this pins are reserved for the interruption (where I intended to connect the encoder). How could I solve this problem?

Thank you!

If you are using PWM to control the speed of the motor it will also work on pins 5,6,9,10 and 11. Pin 2 is not a PWM pin so any other pin should substitute for it.

If that does not help then you need to post your program and also give details of the motor driver you are using.

...R