-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
moveToPositionInSteps() in constant speed option #32
Comments
Hi Christophe, Kind regards |
Btw you could also just try to set the acceleration values to some realy high numbers which would effectively result in a almost instant speed change. So bedside the software you might also have pure physics boundaries. One thing you can try to increase torque / reduce loss of steps is to disable microstepping in you stepper driver, you will lose precision but only perfoming full steps MIGHT increase torque. Also you need to make sure you provide enough current to match the motor specs. |
Hello Paul, thanks a lot for your reply! I’m using you lib in a really specific use which isn’t the primary use of it I have to admit - sorry 🤩 I do not know if that’s really clear but to be shorter, that’s why I intend to stick to the minimum calculation and get a faster response of the whole. For the moment I was concentrated on the part in charge of the step calculation. Thanks a lot! |
well, it is a bit difficult for me to decide which functions you want to keep from the library in your use case. Of course you could still create your own fork of the library and adapt the processMovement function and DeterminePeriodOfNextStep function to your needs, I think that is all that needs to be modified and where most CPU cycles are spent. e.g. you can throw out all the emergency break stuff if you do not need it, also you can remove the break logic, if you do not need it and you can remove limit switch checks etc. The thing is: I do not know what you need of these features, so I cannot provide a solution. It would be best if you post your code you have so far so we can check |
Hi, @pkerspe I have a similar case scenario, what I want to achieve is to do a trajectory execution for a robotic arm. In that case what I receive on the esp32 end is individual point by point for all the joints, having values (position, velocity, acceleration). The velocity profile and the acceleration are manged by the higher level controller when generating the trajectory, Ideally what I would like to achieve is that I set these values and the motor runs with them and after position is achieved the motor comes to a sudden stop. What this does is as I have a profile build and a next point queued, The execution wont be discontinued. If you can tell me what the necessary changes would be for the same that would be Great! Thank You. |
Hi,
You did a really good job with this library, thanks a lot for that.
I'm looking a way to adapt your lib to add a moveToPositionInSteps() in constant speed skipping the calculation of acceleration en deceleration. Unfortunately, I'm maybe doing something wrong as my change do not work and result in a non moving motor.
Is there a way to get that really quickly? Maybe I missed something somewhere in your code that would allows me to do so.
Thanks in advance!
Cheers,
The text was updated successfully, but these errors were encountered: