This is my first time trying to create a stepper motor driver with my own PCB so apologies if I've missed something super obvious.
Anyways, I'm trying to use a DRV8428 (datasheet) to move a stepper motor with the below schematic. Except when I have connected everything up the motor does not turn and instead I hear it hum and vibrate lightly.
To try and check it is working I have connected the logic pins to an Arduino and I'm using the following code to send step pulses:
void loop() {
digitalWrite(N_SLEEP_PIN, HIGH);
digitalWrite(ENABLE_PIN, HIGH);
digitalWrite(M0_PIN, LOW);
digitalWrite(M1_PIN, LOW);
digitalWrite(DIR_PIN, HIGH);
digitalWrite(STEP_PIN, HIGH);
delayMicroseconds(2000);
digitalWrite(STEP_PIN, LOW);
delayMicroseconds(2000);
}
I made sure to check that the Arduino and driver shared a common ground.
The stepper motor I am using is rated for 12V and 0.35A per per phase.
Using the image below I have tried connecting A and C to AOUT1 and AOUT2 respectively, and B and D to BOUT1 and BOUT2 respectively.
Any help would be much appreciated thanks.
digitalWrite
insetup()
just to make sure that those pins are not manipulated at each iteration ofloop()
\$\endgroup\$