Jump to content

Recommended Posts

Posted (edited)

Hi, this question could be most probably answered by David Lechner.

In my EV3 project, I was trying to increase the speed of the robot gripper movements. It is controlled by a medium EV3 motor and set as follows:
motorGrip = Motor(Port.B, positive_direction=Direction.COUNTERCLOCKWISE, gears=[1,24])

Increasing the speed value in the statement
motor[m].run_target(speed,...)
does not help when a certain speed level is reached. From the documentation I understand that this threshold level is set by the statement
motor.control.limits())

So I tried this:

print (motor['Grip'].control.limits())   
motorTestRunTarget ('Grip', doReset=False, waitTime=1000, safetyFactor=1)
motor['Grip'].control.limits (35, 67, 100)
motorTestRunTarget ('Grip', doReset=False, waitTime=1000, safetyFactor=1)
sys.exit ()

The first line prints these values: (33, 67, 100). The second line is executed well, but the third one where I try to increase (only slightly) the speed limit, rises Error:
File "/home/robot/Client/main.py", line 111, in <module>
OSError: [Errno 1] EPERM:

Is there anything wrong in the way I try to use the control settings? And another question: how the internal speed limit is set? Does it depend on the used motor (medium, large) or on the specified gear rates, is it based on a safety factor?
When I tried to calculate the physical speed limit from the known revolution/s (260 for medium motor), I got a value which is larger than that read in the above piece of program.

Edited by Jonas

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...