Search found 1280 matches

by Basicmicro Support
Thu Nov 07, 2019 10:00 am
Forum: General Discussion
Topic: Position control by serial
Replies: 7
Views: 117

Re: Position control by serial

I see the confusion. Ignore my previous posts. I misunderstood your problem. The problem is the commands you are using(Distance commands) use Velocity PID only. You need to use Position commands which will use the position PID settings. Switch to one of the three position commands(m1, m2 or mixed) a...
by Basicmicro Support
Thu Nov 07, 2019 9:50 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 12
Views: 199

Re: R and L setting by serial

L and R are 0 by default. Did you set them in some other code or in Motion Studio. Reading the L and R is NOT measuring the L and R of the motor. It just returns the previously set values. If you dont know your motors L and R you need to contact the manufacturer or measure them using appropriate too...
by Basicmicro Support
Wed Nov 06, 2019 8:18 am
Forum: General Discussion
Topic: Position control by serial
Replies: 7
Views: 117

Re: Position control by serial

Actually, I must correct myself. If you are using the Arduino or Python library you do provide floating point values and the library converts the values to fixed point. See the underlying code for the conversion. I'll need to see your code to determine why you are getting different results from sett...
by Basicmicro Support
Wed Nov 06, 2019 8:14 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 12
Views: 199

Re: R and L setting by serial

You have given me code(both times) with no results or errors. What is the result? Without that information your code doesnt help me help you.
by Basicmicro Support
Tue Nov 05, 2019 10:02 am
Forum: General Discussion
Topic: Position control by serial
Replies: 7
Views: 117

Re: Position control by serial

You need to convert the decimal values into fixed point numbers as defined in the user manual. Note that the velocity and position PID settings use different fixed point multipliers. Also the Distance commands do no use the Position PID at all. Distance commands only use the velocity PID and you mus...
by Basicmicro Support
Tue Nov 05, 2019 9:57 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 12
Views: 199

Re: R and L setting by serial

The python library(as well as the arduino library) are written for Roboclaw. MCP uses a superset of Roboclaws commands so some MCP commands are not in the python library. However you can add them fairly easily as long as you know the syntax: Commands: SETM1LR 128 SETM2LR 129 GETM1LR 130 GETM2LR 131 ...
by Basicmicro Support
Tue Nov 05, 2019 9:46 am
Forum: User Projects
Topic: 150 lb Self-Balancing Robot
Replies: 2
Views: 1064

Re: 150 lb Self-Balancing Robot

That is awesome. So how many trick or treaters wet themselves Halloween night?
by Basicmicro Support
Mon Nov 04, 2019 9:58 am
Forum: General Discussion
Topic: set L and R by serial - not in the Python library
Replies: 1
Views: 109

Re: set L and R by serial - not in the Python library

You've posted in the Roboclaw forums. Roboclaw does not support current control mode. Only MCP support current control mode. Assuming you are using an MCP, you will need to add the functions yourself to set the L and R values from Python. We have not added those functions to the python library yet. ...
by Basicmicro Support
Mon Nov 04, 2019 9:53 am
Forum: Velocity and Position Control
Topic: the position control on roboclaw 2X30A
Replies: 12
Views: 198

Re: the position control on roboclaw 2X30A

You will need to be more specific about your application. What do you mean by one circle range?

As for Lab View, check the variable ranges allowed. For the position commands it appears the position variable is being limited to a byte. This need to be changed to a long.
by Basicmicro Support
Mon Oct 28, 2019 10:01 am
Forum: General Discussion
Topic: Current Reading
Replies: 1
Views: 540

Re: Current Reading

It is a running average with a 64 sample window. Sampled 10000 times a second per motor.