Search found 1274 matches

by Basicmicro Support
Tue Nov 12, 2019 10:01 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 9
Views: 33

Re: R and L setting by serial

1. Please email support. We will setup a test.

2. What firmware version are you using?

3. Have you gotten other read commands to function correctly?
by Basicmicro Support
Tue Nov 12, 2019 10:00 am
Forum: General Discussion
Topic: Position control by serial
Replies: 7
Views: 33

Re: Position control by serial

You shouldn't set an error limit unless you read the functionality. Error Limit should default to off(0). The Position Error Limit sets how much error there can be between the instantaneous target position and the actual encoder position. To use it you MUST use accel/decel settings. Otherwise the in...
by Basicmicro Support
Fri Nov 08, 2019 10:38 am
Forum: General Discussion
Topic: Motor Encoder Reading Issue
Replies: 1
Views: 14

Re: Motor Encoder Reading Issue

1. If you have a scope, check the encoder signal lines. They should be clean square waves when running the motor at a constant velocity. If you dont have a scope you can manually check the encoder signal states with a multimeter. Just move the motor a little till you see 0v and then 5v 2. Assuming t...
by Basicmicro Support
Fri Nov 08, 2019 10:34 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 9
Views: 33

Re: R and L setting by serial

I got a copy of the pre-release for the next update of the python library. These are the defined functions for reading the L and R values. def GetM1LR(self,address): date = self._read_n(address,self.Cmd.GETM1LR,2) if data[0]: return (1,data[1]/0x1000000,data[2]/0x1000000) return (0,0,0) def GetM2LR(...
by Basicmicro Support
Thu Nov 07, 2019 10:00 am
Forum: General Discussion
Topic: Position control by serial
Replies: 7
Views: 33

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: 9
Views: 33

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: 33

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: 9
Views: 33

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: 33

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: 9
Views: 33

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