Maximum straight-line speed for the Lego Spike Hub, when used with a medium-sized motor, is limited. #1650
Replies: 2 comments 4 replies
-
|
I am also new to Pybricks, I try to explain this. db.ctl_steps_per_app_step = motor.ctl_steps_per_app_step (1000) * ROT_MDEG_OVER_PI (114592) / wheel_diameter (56000) = 2046 drive_speed = speed_max(1000000) / db.ctl_steps_per_app_step (2046) = 488. So if you use wheel_diameter = 56 mm then your speed limit is 488. BTW, if you change to large wheel, wheel_diameter = 87, then you can get higher speed 765. |
Beta Was this translation helpful? Give feedback.
-
|
Coincidentally, the reason that these caps exist was illustrated quite well just now in https://github.com/orgs/pybricks/discussions/1649 Raising the speed limit might seem like a good idea at first, but pushing beyond what the motors can practically do means that there isn't any wiggle room for the motors to correct for errors. Arguably, perhaps the limits should be lower, not higher :-) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using this code to set / get the straight_speed of a drive base. It is possible to set the straight_speed up to 488 correctly, but
any value about that is limited to 488, eg when I set the speed to 800, I still get 488 with this code.
Result: (488, 733, 93, 420)
Beta Was this translation helpful? Give feedback.
All reactions