Search found 37 matches

by fausto.tromba
Fri Nov 08, 2019 12:30 am
Forum: General Discussion
Topic: Position control by serial
Replies: 7
Views: 7869

Re: Position control by serial

I have used the command SpeedAccelDeccelPositionM1(). Now all is fine. Sometimes the motor driver went in error: M1 Position Error Limit. In the manual, I don't' find any explanation about it. The same for Error Limit. I just noticed that increasing Error Limit, the Position Error Limit Error decrea...
by fausto.tromba
Fri Nov 08, 2019 12:20 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 15
Views: 21377

Re: R and L setting by serial

Hi I have set the Resistance and the Inductance by BasicMicroStudio (see the picture) RL.PNG surly is in the memory of the MCP because even if I switch on all system and i restart the PC+ motor driver etc, I could read those values. I would like to read those values and write them by a serial comman...
by fausto.tromba
Wed Nov 06, 2019 11:49 pm
Forum: General Discussion
Topic: Position control by serial
Replies: 7
Views: 7869

Re: Position control by serial

I have found the error. Sometimes the motor didn't run anymore because the error "M1 Position Error Limit" came up. I didn't find any documentation about it. To avoid this error I increase the "Error Limit". I didn't find any documentation about it, either. Can you please explain...
by fausto.tromba
Wed Nov 06, 2019 11:35 pm
Forum: General Discussion
Topic: R and L setting by serial
Replies: 15
Views: 21377

Re: R and L setting by serial

import time from roboclaw_3 import Roboclaw #Windows comport name #rc = Roboclaw("COM11",115200) #Linux comport name rc = Roboclaw("/dev/ttyS0",38400) rc.Open() #Get R and L M1_RL = rc.GetM1IndRes(0x80) print("Motor 1 RL=",M1_RL) M2_RL = rc.GetM1IndRes(0x80) print(&quo...
by fausto.tromba
Tue Nov 05, 2019 11:50 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 15
Views: 21377

Re: R and L setting by serial

I did as you can see in my previous post. I added this in the python library, but I don't receive the right information. For example for GETM1LR

def ReadM1IndRes(self,address):
data = self._read_n(address,130,2)
return data
by fausto.tromba
Tue Nov 05, 2019 11:46 am
Forum: General Discussion
Topic: Position control by serial
Replies: 7
Views: 7869

Re: Position control by serial

Can you please specify the subject of "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.". Where? About the distance command, I used also M1SpeedAccelDecelPo...
by fausto.tromba
Tue Nov 05, 2019 6:24 am
Forum: General Discussion
Topic: Position control by serial
Replies: 7
Views: 7869

Position control by serial

I configured the PID position control by BasicMicro. Moving the Control in the software all works, and the Motor moves in the position wished. speed_P = 5.73 speed_I = 0.697 speed_D = 0 QPPS = 5960 (3350 rpm) pos_P = 20 pos_P = 0.1 pos_P = 0 Deadzone = 50 Using the serial commands in the library (Sp...
by fausto.tromba
Mon Nov 04, 2019 11:37 pm
Forum: General Discussion
Topic: R and L setting by serial
Replies: 15
Views: 21377

R and L setting by serial

Hi On my project, I should move different model motors in current mode. So I have to set both L and R. In the Python library, there is not. As I said i tried with the following code without any success. def ReadM1IndRes(self,address): data = self._read_n(address,130,2) return data Given that it is p...
by fausto.tromba
Mon Nov 04, 2019 1:55 am
Forum: General Discussion
Topic: set L and R by serial - not in the Python library
Replies: 1
Views: 2424

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

Hi In my project I have to control a motor in current mode, therefore I should set the resistance and the inductance of the motor and after move it by the serial command in PWM (address 6?). Unfortunately, I cannot see on the Python library the command to set the resistance and inductance. In the li...
by fausto.tromba
Tue Sep 24, 2019 12:47 am
Forum: General Discussion
Topic: STOP all by sotware
Replies: 6
Views: 5049

Re: STOP all by sotware

Sorry but I don't get how to configure it.
I have selected "Hardware" in "E-Stop Reset Method".
In the mode of a Digital input I can select only "Analog" or "Pulse". Where should I select "Latching"?