Hope this feed will be of some help.
I am using Mitsumi (M28N-1) DC Encoder motor with PID Servo Controller motor Driver RKI-1576.
http://robokits.co.in/motors/encoder-dc-servo/high-precision-quad-encoder-geared-dc-motor-24v-60rpm.
- Connect the motor to RKI-1576 (GND, VCC, EN A, EN B, M-, M+) . Connector 2 per the datasheet
- Connect 12V Power supply to the adjacent power port.
- On the Connector 1 side, connect the TX0 to Arduino Pin 1, RX0 to Pin 0, VDD to 5V powerpin, GND to GND of powerpin of Arduino.
You may want to changed the Arduino USB Driver's baud rate to 38400 (from 9600).
Key in the following code into your Arduino IDE.
void setup() {
Serial.begin(38400); // Setting the serial Baud Rate to 38400.
}
void loop()
{
Serial.print("N1 19840 1000"); // N1 Command ( N1 Position_Count Speed) // Set the position count and speed according to the motor and encoder used.
//Serial.print("P 10");
Serial.print("\r"); // Carriage Return
delay(5000); // delay to reach the mentioned postion.
Serial.print("N1 0 5000");
Serial.print("\r");
delay(5000);
}
Click on the Serial Monitor and Change the bottom right drop box to show this : "Carriage Return" and "38400 baud".
Switch on the 12V power supply and Connect your Arduino to Computer. Upload the above code. Open the Serial Monitor and Type P 1000, P 19840, P 9820 ... and you should see your motor moving.
njoy.

