Search found 9 matches

by chanakaf
Tue Sep 01, 2020 5:54 pm
Forum: Velocity and Position Control
Topic: Unable to read Encoder via Packet Serial
Replies: 5
Views: 367

Re: Unable to read Encoder via Packet Serial

Issue was resolved by reinstalling the library.

Thanks
by chanakaf
Tue Sep 01, 2020 2:07 pm
Forum: Velocity and Position Control
Topic: Unable to read Encoder via Packet Serial
Replies: 5
Views: 367

Re: Unable to read Encoder via Packet Serial

Hi, I have done further testing and have narrowed down the issue. I can get the ReadVersion to work now. See below debug output; Port closed Uploading to I/O board Opening port Port open VMDPR_ <Arduino is ready - Serial0> RoboClaw Version: USB Roboclaw 2x7a v4.1.34 my program runs until it hits thi...
by chanakaf
Tue Sep 01, 2020 8:26 am
Forum: Velocity and Position Control
Topic: Unable to read Encoder via Packet Serial
Replies: 5
Views: 367

Re: Unable to read Encoder via Packet Serial

I did try this already and also some of the examples, same result. cant read. I can write and also can see the data on the App.

Anything I should do on my code?
by chanakaf
Mon Aug 31, 2020 2:57 pm
Forum: Velocity and Position Control
Topic: Unable to read Encoder via Packet Serial
Replies: 5
Views: 367

Unable to read Encoder via Packet Serial

Hello, I have a 2x7A motor controller connected via serial to a Teensy 3.2. I have now tries 2 controller, V5B and V5C and they are both not giving me encoder counts. both boards are running FW version 4.1.34. The motor does follow the commands given and it moves per the position s given below, but ...
by chanakaf
Mon Apr 24, 2017 1:29 pm
Forum: Velocity and Position Control
Topic: Motor Position based on Serial Command
Replies: 12
Views: 11122

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: 12
Views: 11122

Re: Motor Position based on Serial Command

Thank you!

Is this the correct context to use position commands?

Code: Select all

    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?

Code: Select all

	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: 12
Views: 11122

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: 12
Views: 11122

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", the motor moves forward another 100 so it...
by chanakaf
Sun Apr 16, 2017 3:08 pm
Forum: Velocity and Position Control
Topic: Motor Position based on Serial Command
Replies: 12
Views: 11122

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...