How to get multiple stepper motors to run faster

REMOVE

Please post a link to the documentation for the MCP3017AccelStepper.h library. It seems to be something that Adafruit have adapted from the AccelStepper library.

The AccelStepper library is not good at high step rates because it uses floating point maths.

...R

Thanks for the link - I'm sure it's all there is but the information in it is totally inadequate for me to help you with your problem. I suggest you ask Adafruit for help.

Their documentation for this is a bit like telling a pilot that a Boeing 737 has a joystick just like a Cessna - figure out the rest yourself.

...R

The MCP23017 is I2C driven, so its not going to do high update rates, and on an 8-bit microcontroller
with no floating point support AccelStepper is limited to about 4000 steps/second in total.

You need much more grunt I think, something like a Teensy 4.1 which has lots of I/O pins
and upto 600MHz clock with full hardware floating point. 25 steppers is a huge amount, that
needs 50 signal to drive all the stepper modules to start with.

There may be other Arduino-compatibles with the combination of fast floating point and lots
of pins.

There is an actual issue with the faster Teensy's with AccelStepper out of the box - its too fast and
the step pulses get to be too short, but this can be fixed.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.