DRV8825 & NEMA 17 Causing massive vibrations & inconsistant spin

Hello, i've recently begun to try to configure the NEMA 17 stepper (17HE19-2004S) alongside the DRV8825 & Arduino Mega. But i'm having massive issue getting the motor to spin properly.

Currently it vibrates back and fourth with random distance and speed.
Video below: Watch Stepper Error | Streamable

Currently i'm using a 12V50A power supply. Hooked up to the DRV8825 Stepper driver controlled by an Arduino.

Currently i have the DRV wired up following this schematic. Only difference is i havent connected the DIR pin for simplicity and i'm not using a capacitor.

Although i have tried an "Extension Shield Board For A4988 DRV8825", with same issues.
I've tried other DRV8825 still same issue
I've tried other NEMA 17 steppers (17HE19-2004S), with same issue.
I've tried rearranging the 4 stepper cables. All that does is make the motor not spin

The code i'm using is a simple rotate at at 50 RPM

#include <AccelStepper.h>

const int stepPin = 7;
const int directionPin = 8;

AccelStepper stepper(AccelStepper::DRIVER, stepPin, directionPin);

void setup()
{
  Serial.begin(9600);
  stepper.setMaxSpeed(200);
  stepper.setSpeed(50);
}

void loop()
{
  stepper.runSpeed();
}

I've contemplated purchasing a TB6600 to test if the driver is the issue.

Any help appreciated :slight_smile:

Very bad idea. Add the suggested capacitor, and connect the DIR pin appropriately.

With the DRV8825, be sure to set the current limit to less than 1.5A per winding. Start with a very low step rate, say 1 to 10 per second. At higher rates, use AccelStepper and microstepping to reduce resonant vibrations.

Looking at your schematic and not knowing the part I will take a SWAG and say the open circuit on ENABLE\ is probably the cause of your problem.

The code you posted doesn't even compile. Please post a complete skech.

And follow the advices of @jremington , that's important.

Leaving enable\ open is ok. there is an internal pulldown.

Hi, @jechto
Welcome to the forum.

Your stepper connections;


Your stepper specs;

Have you got the current limit on the 8825 set to 2A?
The 8825 is capable of 2.2A peak, but 1.5A continuous.

Tom... :smiley: :+1: :coffee: :australia:

1 Like

Thank you for the replies, wasn't expecting this quick of a response, so i havent gotten around to testing much :slight_smile:

@MicroBahner I updated the code in the desc to match what i'm using on the Arduino.
i'm also using the capacitor as outlined by @jremington now.

@TomGeorge Aditionally i also adjusted the potentiometer on the DRV to 0.44V (0.88 A). Which is a bit below rated but should work i think.

Trying now my stepper motor is just stuck in place, unable to move. i'm reading 11-12V on the 4 stepper pins so power is going through it.
Based on my shallow research this error likely stems from incorrect stepping or something, not sure though.

Ontop of this a ordered a TB6600 to compare and contrast. :thinking:

Hi, if you are following the thread, I tried the TB6600 and it worked flawlessly out of the box and pretty much solves the issue i had.

It is expensive but it is a good for testing since you can adjust the current limitation & microstepping via switches for easy debugging. rather than a potentiometer.

In case someone in the future stumbles upon this thread, here are some troubleshooting steps i would follow on the DRV8825.

  • Try to run the motor with microstepping, my motor had some issues running with no microstepping which is the default if you follow most tutorials! Power the M0,M1,M2 pins, try with 4x microstepping it worked smoothly for me

  • Triple check the the cables, vibrations like mine were likely caused by different coloring on the cables. Check on the website where you bought it, NOT GOOGLE. what the pin colors are, (sometimes they are different)

Hope it helps.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.