2 and 5 also have a double function. Maybe better to use green pins that aren't already used by the processor.
Leo..
How well It works depends on the wave form you need:
Since it takes 4 accelstepper steps to make one step pulse on the DM556, you might need to quadruple your speeds.
Maybe you are running into a pulseWidth issue with the AccelStepper default 1us pulse width versus the DM556's 2.5us minimum pulse width.
Maybe try a stepper.setMinPulseWidth(3);
per:
Cheers brother this actually helped I used stepper.setMinPulseWidth(3);
in my setup and was able to use in the appropriate driver mode.
On an Uno, the speed of the otehr processing is slow enough that the AccelStepper minimumStepWidth=1us default doesn't apply. On faster processors the overhead costs less time, and step signal widths decrease until they become too fast for the DM556.
Makes sense and thanks for explaining why, you are a legend
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.