ConfigurableFirmata
ConfigurableFirmata copied to clipboard
Bug Report: AccelStepper Stop 0x05 results in abrupt stop
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)