Problem with stepper motor and AccelStepper Library

To achieve maximum security, yes. For this project, not the cause of the trouble.