I have written a program that moves a stepper motor. I have used the accelstepper library. I have now found out I have the hardware upside down and when properly installed the motor moves the wrong way. My programming is all good but I just need the motor to go CW instead of CCW and vice versa. Is there a quick code or pin change I can do to save me going all through my code?
I think just using negative speed, something like:
stepper.setSpeed(-motorSpeed);
The -'ve sign works here with the the accelstepper library ...
What stepper and stepper driver are you using?
For the A4988, DRV8825 drivers, disconnect the motor 4 pin connector at the driver output, flip it 180 degrees and re-connect. That will reverse the motor response.
Make sure that the driver is not powered when disconnecting or connecting the motor from the driver.
It is a stepper online 34IP65-85
It is a DM860T driver
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.