AccelStepper icon indicating copy to clipboard operation
AccelStepper copied to clipboard

Does AccelStepper support all stepper motor drivers?

Open joaomamede opened this issue 3 years ago • 1 comments

I would like to use it with DRV8825 or with an A4988.

Thanks so much for the software

joaomamede avatar May 27 '22 03:05 joaomamede

It supports many STEP/DIR drivers like DRV8825 and A4988 with:

https://github.com/waspinator/AccelStepper/blob/1255ab56820746137aba3d5d788f5d0b9baf6d4a/src/AccelStepper.h#L347

It is a bit wierd, but the plain old non-acceleration Arduino stepper.h library can also support STEP/DIR drivers as a 2-wire motor. The catch is that you need to use one of the pins as "clock" = "DIR" and the the other pin as "data"=STEP and send 4 stepper.h steps per each 1 motor step to get STEP to toggle. See https://forum.arduino.cc/t/stepper-driver-with-quadrature-from-stepper-h-or-encoder/1121041

drf5n avatar Nov 28 '23 23:11 drf5n