Skip to content
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

Bug Report: AccelStepper Stop 0x05 results in abrupt stop #99

Open
LinuksGuru opened this issue Oct 1, 2020 · 0 comments
Open

Bug Report: AccelStepper Stop 0x05 results in abrupt stop #99

LinuksGuru opened this issue Oct 1, 2020 · 0 comments

Comments

@LinuksGuru
Copy link

Hi !

According to documentation:

Stops a stepper motor. Results in STEPPER_MOVE_COMPLETE being sent to the client with the position of the motor when stop is completed note: If an acceleration is set, stop will not be immediate.

I have acceleration enabled and it works since motor start up is smooth. However, sending STOP command results in abrupt stop which can result mechanical damage due to inertia. How to fix this? Latest configurable firmata on Arduino Due, installed via IDE. Thanks in advance.

ACCELSTEPPER_DATA = 0x62
ACCELSTEPPER_STOP = 0x05

def accStepFmt_Stop(brd, dev_no):
    cmd = bytearray([acc.ACCELSTEPPER_STOP, dev_no])
    brd.send_sysex(acc.ACCELSTEPPER_DATA, cmd)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant