I'm trying to use a NEMA 34 stepper motor with the current setup and coding attached below, and it won't turn on with a 32V 3.2A DC supply. Any idea what I'm doing wrong? Or is the power not enough, or is the driver not working? The 9 pin is connected to the PUL+ pin and the 6 pin is connected to the DIR+ .
#include <Stepper.h>
const int stepsPerRevolution = 200; // change this to fit the number of steps per revolution
// for your motor
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 6, 9);
void setup() {
// set the speed at 60 rpm:
myStepper.setSpeed(60);
// initialize the serial port:
Serial.begin(9600);
}
void loop() {
// step one revolution in one direction:
Serial.println("clockwise");
myStepper.step(stepsPerRevolution);
delay(500);
// step one revolution in the other direction:
Serial.println("counterclockwise");
myStepper.step(-stepsPerRevolution);
delay(500);
}