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

Does AccelStepper support all stepper motor drivers? #14

Open
joaomamede opened this issue May 27, 2022 · 1 comment
Open

Does AccelStepper support all stepper motor drivers? #14

joaomamede opened this issue May 27, 2022 · 1 comment

Comments

@joaomamede
Copy link

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

Thanks so much for the software

@drf5n
Copy link

drf5n commented Nov 28, 2023

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

DRIVER = 1, ///< Stepper Driver, 2 driver pins required

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

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

2 participants