I have to program a test setup using a large NEMA 34 stepper motor and a DQ860MA driver with 8A drive current. DQ860MA is powered by a 10A 24VDC power source.
The driver is set up for 400 pulses/rev and I need to drive the motor at 330rpm. I need to drive the motor a number of revolutions in one direction, then stop for maybe a second, then drive the motor in the opposite direction the same number of revolutions. I don't know how many revolutions to each side yet, and I may have to ramp up and ramp down the motor due to the load it will be moving. I will also have to repeat this cycle a number of times, which I believe I could place in a "For" loop.
The system is connected as follows:
Pulse+ and Direction+ are connected to Arduino ground
Pulse- is connected to Arduino pin 9
Direction- is connected to Arduino pin8
I followed the instructions according to this video: Use Arduino to Control a Large Stepper Motor! Part 1 However, I do not have a potentiometer or a push button, so I don't know how to apply the code in this video to my project.
How do I assign CCW or CW rotation? How do I set the speed?
Thank you in advance