Become a leader in the IoT community!
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Join our community of embedded and IoT practitioners to contribute experience, learn new skills and collaborate with other developers with complementary skillsets.
Hi ππ»
My friend and I wrote this code to control a Nema34 motor with a DM680E driver for a drilling cycle. We want to dynamically adjust the speed between fast movement (for chip removal and advancing) and slow movement (for drilling into the material), while maintaining smooth acceleration transitions between these speeds.
Weβve mentioned needing two speed parametersβfast and slowβbut weβre unsure about the exact values that would be optimal for this application. If anyone has advice on how to calculate or determine the best speed and acceleration values for this setup, it would be greatly appreciated.
We have tried to implement speed adjustments, but the results were not as expected. Either there were unexpected jerks or no noticeable change in speed. If anyone has experience with this, what might we be missing in terms of smooth acceleration management?
Update your source code with this , i used comments to well explain the code better
0code_fix.txt
I defined two speeds (FAST_SPEED and SLOW_SPEED) to differentiate between fast movements ie chip removal or advancing and slow movements, drilling.
So bfore each movement, setMaxSpeed() is called to dynamically change the speed based on the task. The slow speed is applied for drilling operations, while the fast speed is used for moving between positions
CONTRIBUTE TO THIS THREAD