Hi, am using the DM420A driver for my stepper motor. I have the power supply and stepper motor hooked up correctly. Now the power options from the driver to arduino are as follows:
PUL: connected this to pin 8 in arduino - uno
DIR: connected this to pin 9 in arduino
+5V: connected this to 5v pin in arduino
ENBL: no connection
Now i tried to run the example code for "onerevolution" under stepper, the example uses 4 pins (pins 8 to 11) but i only have 2 pins available coming from my driver to arduino which are the PUL and DIR, whats the equivalent code! I tried changing the line to Stepper myStepper(stepsPerRevolution, 8, 9); that doest work. Any help is appreciated.
removed because you didnt like it, didnt want others to get rubbed the wrong way with it, wouldnt do that to someone who's teaching me. Here is the driver:
I found the manufacturer's site: stepper motor driver-DM420A - China Changzhou Longs Motor It's not very clear - the lists of terminals talk about terminals that don't exist on the box. But the way you have it looks correct. Leave "enable" unconnected and it should work.
....................
Motor doesn't run, but maintains holding torque (which in my case is true, its stiff wont turn if i tried with my hand but does run)
Reasons: without input pulse signal (whatever that means)
Measures: adjust PMW & signal level
......................
nice_servo:
Ok, i tried it with different example codes and also tried "Simple Stepper Code". It doesnt move.
If that means the code from my link then stick with that until you get it working. If it won't work with that simple code it won't work with anything more complex. Just make sure there is a long interval between steps - at least 250 millisecs - so the motor is moving very slowly.
I presume you have made sure that the step and direction pins in the code match your physical connections.
Are you sure you have identified which pairs of motor wires belong to the different coils in the motor?
Be VERY CAREFUL never to disconnect the wires between the motor and the stepper driver while the driver is powered up. The driver will be instantly destroyed,
Have you set the current limit correctly to match your motor?
What micro-stepping setting have you set? For testing I recommend full steps.