I have a SERIAL DC ENCODER SERVO DRIVER [RKI-1576], with motor, from "robokits" . I would like to control it with my Duemilanove. I am totally lost. Can anyone please point me in the right direction to at least get a simple Sketch working? Been at this for 4 days now, very frustrated.
Did you read the manual?
At least 20 times. Call me stupid, but I'm not gettin it. Care to walk me through it?
Looks to me like the motor and quadrature encoder connect to one end and a serial port connects to the other end.
What motor and encoder do you have?
Hello "mwcintx",
do you got some results, how this driver works?
When you bought this driver from "robokits", how much does it cost?
Nice greetings, Lars
Have anyone got it working well with all the commands ?
Can someone suggest me how to just start and stop the motor atlest using those commands . Its been almost 5 days i am working with these things but nothing seems going right for me.
In the documentation they have said about Torque control mode under loading . Any idea how this can be done ?
Any help would be great
Thanks in advance
I used the same motor with labview. I was able to control the position and speed with the commands given in datasheet.
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.
hi frnds...@RiyashMH....im using - DC motor with quad encoder and gear box for High torque, High precision, 132840 Counts per Revolution. 10 RPM Movement speed at 12V no load.....http://robokits.co.in/motors/encoder-dc-servo/high-precision-quad-encoder-geared-dc-motor-12v-10rpm.....should i used above program in Arduino- UNO ..?? i have used it ...but in serial monitor it shows only N1 19860 1000...and repeating....what should i do???
plzz reply me fast