Search found 21 matches

by fausto.tromba
Tue Feb 25, 2020 2:39 am
Forum: General Discussion
Topic: E-Stop Reset by Python
Replies: 1
Views: 1236

E-Stop Reset by Python

How to stop the motor by python? is it possible to receive a code example?
I was reading E-Stop Reset Method, but there is not so much description and the Python library doesn't include the methods.

Thamks

Fausto
by fausto.tromba
Thu Nov 14, 2019 12:01 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 15
Views: 1832

Re: R and L setting by serial

I will send you all. The firmware is 1.1.7 of MCP236. I cand set and get many parameters from the driver in the same python file (version, PIDs, set current and speed, etc). I will send you not all project but a test-file with few lines code: import time from roboclaw_3 import Roboclaw #Windows comp...
by fausto.tromba
Wed Nov 13, 2019 12:36 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 15
Views: 1832

Re: R and L setting by serial

Firmware Version 1.1.7 I can read and set many parameters and work fine by python library. Probably there just is an issue or bug. Reading the PID position by Python library, I receive the same value of PID speed I will send you an email with the library modified and the few code lines to read the R...
by fausto.tromba
Tue Nov 12, 2019 7:45 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 15
Views: 1832

Re: R and L setting by serial

Dear I modified what you said without any result. My model is MCP236. Can you try on your laboratory with the same model? What I receive is (1,0,0). So the data[0] is 1 (the command executed properly). I treid to attached here the sources, but it is not possible. Can I send you it by mail in support...
by fausto.tromba
Fri Nov 08, 2019 12:30 am
Forum: General Discussion
Topic: Position control by serial
Replies: 7
Views: 1048

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

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

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 to me what are?
by fausto.tromba
Wed Nov 06, 2019 11:35 pm
Forum: General Discussion
Topic: R and L setting by serial
Replies: 15
Views: 1832

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("Motor 2 RL=",M2_RL) M2MaxCurrent ...
by fausto.tromba
Tue Nov 05, 2019 11:50 am
Forum: General Discussion
Topic: R and L setting by serial
Replies: 15
Views: 1832

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

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