I'm using a DC motor with Hall Encoder. I bought it from DX.
I have made all the connections to motor driver and arduino and I suppose all are correct. I've connected m1 and m2 pins of motor to that of motor driver, encoder A phase and B phase to arduino pins 3 and 11, and GND of motor to GND of Arduino and 3.3V pin of motor to 3.3V pin of Arduino. Also motor driver is also connected to arduino.
The problem is that I'm unable to run the motor but I can count the rotations made by the motor. Please help me with the working code. Thanks.