Problem drive 17HS4401 or 17HS8401 steppermotor with DRV8825 or A4998

Hello!

I am facing the below detailed issue when I try to use my motors with the controllers. A have read lots of forums articles, but did not found the solution jet...

Problem:
I can not drive the motors with A4998 and DRV8825 but with EasyDriver4.4 working properly. (fast, powerfull, silence, dont skip steps, but I have to cool the driver with a fan)

I do not understand why EasyDriver is working well, because based on datasheets and forums EasyDriver current capacity is much smaller, what my motors needed. Everywhere on internet can I read the appropriate driver for my motors are A4998 and DRV8825, but those not working for me, just jumped the axis left-right and give noise....
Has somebody any idea what could be the cause of the problem? Many thanks in advance for the advises.

I have made some measurement, i share the infos too, because I found interesting the current and voltage details.
I checked the cable of the coils, wiring is OK (in theory).I attached the wiring and the code too.

br
szalczim

Details:

EasyDriver working well:
adjusted VREF on 3V it's mean -> 0,06A on coiles, and 0,7 V (17HS4401 and 17HS8401 working properly)

A4998:
adjusted VREF on 0,95 V it's mean -> 1,7 A on coil by google, but in practice 0,9 A. Voltage on coil 0,3V (17HS4401 and 17HS8401 axis left-right and give noise)

DRV8825:
adjusted VREF 0,85 V it's mean -> 1,7 A on coil by pololu, but in practice 0,1 A (17HS4401 and 17HS8401 axis left-right and give noise) During the lots of testing I damaged 3 driver, so I do not have any at this time. shipping is still in progress :slight_smile:

I don't understand why working well the motor with EasyDriver on 0,06A. The advanced current for this motors is around or more then 1A. or am I wrong?

I have 3 stepper motor from 3 different supplyer and many motor drivers. All of them(drivers too) come from china(aliexpress)

Datasheet the motors:
17HS4401 1,7 A;1,8ohm (3ohm in practice) phase resistance;4 wire
17HS8401 1,7 A;1,8ohm (3ohm in practice) phase resistance;4 wire

Datasheet my power supply:
19V 4,7 A (notebook supply), but the voltage stepped down till 12 V.

int dirPin = 9;
int stepperPin = 8;
int led=13;
void setup() {
 pinMode(dirPin, OUTPUT);
 pinMode(stepperPin, OUTPUT);
 pinMode(led, OUTPUT);
}
 void step(boolean dir,int steps){
 digitalWrite(dirPin,dir);
 delay(50);
 for(int i=0;i<steps;i++){
   digitalWrite(stepperPin, HIGH);
   //delay(2000); //for the current and voltage measurement on the coil
   delayMicroseconds(60);
  
   digitalWrite(stepperPin, LOW);

   delayMicroseconds(60);
   //delay(2000)  ;
 }
}
void loop(){
 step(true,15000);
 delay(150);
 step(false,12000);
 delay(50);

}

Why did you use the step down converter in between?
You should drive the DRV8825 or A4988 directly with your 19V power supply.
Maybe the step down converter brings in some problems.

Don't be afraid - the 19V won't kill neither your motor nor your driver as the drivers are current driven - this is adjusted by the Vref method.

And: you cannot measure the motor current with your amp meter! With stepper motors this won't work as compared with DC motors. So you have to rely on the Vref measurement only.

This

for(int i=0;i<steps;i++){
   digitalWrite(stepperPin, HIGH);
   //delay(2000); //for the current and voltage measurement on the coil
   delayMicroseconds(60);
 
   digitalWrite(stepperPin, LOW);

   delayMicroseconds(60);
   //delay(2000)  ;
 }

seems to expect the motor to make a step every 120 microsecs or 8333 per second - is that reasonable.

What happens if you change the second delayMicroseconds(60) to delay(60) - i.e. 60 millisecs?

...R
Stepper Motor Basics
Simple Stepper Code

Hola!Thanks for the advises, but so far unsuccessful..... any another idea? :slight_smile: :slight_smile:
I use a 35V 220uF capacitors, because 100uF was not at home. Could it cause the issue?

@Robin2:
I have tried to change the delay between the steps but nothing changed. It seem to jump the axys left or right and so on. I increased the delay it was be slower and get less noise, but jumping right or left.

@rpt007:
I removed the voltage stepdown modul, nothing changed. I thought that, 12 V is far enough for the motor, and I don't wanted overcharge it. Thanks for the advice, I don't need it in my circuit more, and for the current measurement info too. It was new for me. :slight_smile:

szalczim:
@Robin2:
I have tried to change the delay between the steps but nothing changed. It seem to jump the axys left or right and so on. I increased the delay it was be slower and get less noise, but jumping right or left.

Did you try the code in the link I gave you? How did that work?
It is easier to help with code that I am already familiar with.

Also, you need to post the latest version of your program so we can see how you have made changes.

...R

I use a 35V 220uF capacitors, because 100uF was not at home. Could it cause the issue?

No, not at all; normally the higher the better.

Pls post you latest code and a picture which shows the exact wiring of your devices (Arduino, power supply for motor, stepper driver, stepper motor).