Search found 5 matches

Go to advanced search

by chanakaf
Mon Apr 24, 2017 1:29 pm
Forum: Velocity and Position Control
Topic: Motor Position based on Serial Command
Replies: 7
Views: 1039

Re: Motor Position based on Serial Command

Excellent. Thank you for your help.
by chanakaf
Fri Apr 21, 2017 2:02 pm
Forum: Velocity and Position Control
Topic: Motor Position based on Serial Command
Replies: 7
Views: 1039

Re: Motor Position based on Serial Command

Thank you! Is this the correct context to use position commands? roboclaw.SpeedAccelDeccelPositionM1(address,0,12000,0,V2,1); //V2 is the position Also per the example to I need this timeout/wait after the position command? long last = millis(); while(millis()-last<5000){ delay(50);
by chanakaf
Fri Apr 21, 2017 5:15 am
Forum: Velocity and Position Control
Topic: Motor Position based on Serial Command
Replies: 7
Views: 1039

Re: Motor Position based on Serial Command

To add some details. I am using a Quadrature encoder that has 360 counts per rev. and a 139:1 gear box. so I have set my QPPS to 50004.
by chanakaf
Fri Apr 21, 2017 5:06 am
Forum: Velocity and Position Control
Topic: Motor Position based on Serial Command
Replies: 7
Views: 1039

Re: Motor Position based on Serial Command

Thank You. I am able to do this. I can send a position command and the motor will move to that position. However this only works the first time. For example; if I send my first command "50" the motor will move from "0" to "50" and stop. Then if I send "100", t...
by chanakaf
Sun Apr 16, 2017 3:08 pm
Forum: Velocity and Position Control
Topic: Motor Position based on Serial Command
Replies: 7
Views: 1039

Motor Position based on Serial Command

Hi All, I am new to this forum and also a novice in programming.... I recently got RoboClaw 2X7A controller and have connected it via a Arduino Mega 2560. I have 2 motors and they both have Quadrature encoders. I was able to get everything working correctly, Serial communication between Arduino, Rob...

Go to advanced search