This motor driver is only ideal for low power applications(Motors that draws less that 1.5A). This library is made to simplify the use of MX1508. This Arduino Libary ...
Connect the Encoder to the D2 and D3 pins of the motherboard.You can use other pins if you want. 1.git clone this resp to your Arduino IDE'S libraries directory. 2 ...