Hi, i am making a project to control stepper motor Nema34 with M556c driver.
I have driven motor with following code. but i want to stop motor exact after 120 turns. Because i am using void loop, so it continuously rotating. I also want to add two buttons, + & -, to give input to Arduino and stop motor after specific turns. also want to connect display to show no of turns, and reset after given turns. here is the code::::
@red_car
Yes dear it is a school project to run some tester. I have used above mentioned code to run motor, but not able to stop it after specific turns
The Stepper library is the wrong library for step/dir type of stepper drivers like the M556c driver. The Stepper library is written for drivers like the ULN3003 (unipolar) or the L29x drivers (bipolar). The M556c driver will not work with the Stepper library.
Here is the manual for the M556c stepper driver. See page 3 for how to wire to a microcontroller. I would wire all of the - terminals to ground and the step, dir and enable terminals to outputs of the mystery Arduino board.