DRV8825 motor driver help


hello all,
i using drv8825 motor driver control 1.7a stepper motor.  beginner of found code on internet able work mine , make motor work (just turn , forward few times) found had poor comments not sure does.  anyways when run code driver gets hot in seconds.  understand have 2 options, use heatsink or change microstepping.  precision not important , hoping explain how mess around amount of microstepping or if had other advice.

thank help!

code: [select]
#define direction 13                      //direction pin - initial state zero
#define step 12                           //step pin - pulse step motor in direction selected direction pin
#define stepsperrev 600                  //how many steps our motor needs full rotation
int directiontoggle = 0;                 //just toggle direction flag
void setup()
{
  pinmode(direction, output);           
  pinmode(step, output);

  serial.begin(9600);                    // not needed - lets see feedback see if code running
}
void loop()
{
  digitalwrite(direction,directiontoggle);
  delay(250);
  (int loopy=0; loopy<4000;loopy++)
  {
    digitalwrite(step,high);
    delay(1);
    digitalwrite(step,low);
    delay(1);
  }
  directiontoggle=!directiontoggle;
  serial.print(f("loop1 - dir flag : "));// not needed - lets see feedback see if code running
  serial.println(directiontoggle);       // not needed - lets see feedback see if code running

}


here of code using reference if helps

stepper drivers naturally run hot - hot enough burn finger. afaik drv8825 has thermal shutdown if gets hot. heatsink might idea 1.7 amps.

make sure have set current limit suit motor. assuming using 12v or 24v drive motor lot more 1.7 amps flow if limit not set. risks damaging motor.

look @ simple stepper code - should make concept clear. @ stepper motor basics.

...r


Arduino Forum > Using Arduino > Motors, Mechanics, and Power (Moderator: fabioc84) > DRV8825 motor driver help


arduino

Comments