gin66 / FastAccelStepper

A high speed stepper library for Atmega 168/328p (nano), Atmega32u4, Atmega 2560, ESP32, ESP32S2, ESP32S3, ESP32C3 and Atmel SAM Due
MIT License
286 stars 67 forks source link

per-stepper auto enable/disable #155

Closed barbiani closed 1 year ago

barbiani commented 1 year ago

Hello everybody,

I noticed that when running two steppers, the auto enable does not disable the 1st stepper after the run.

The code looks like it supports one enable pin per stepper. Am I right?

In case of multiple steppers with different enable pin and the second stepper is moved to a distant position like 10 million, the first stepper that moved to a close position reaches its destination and never disables the enable pin, while the second stepper steps indefinitely.

gin66 commented 1 year ago

Yes, one enable pin per stepper is the normal case. Which uC do you use and could you please share the code?