Nema17 with a4988 problem

Hello, my step motor configuration : arduino uno + cnc shield v3 + nema17+ a4988 + power suply 12V 10A.
I get a code from (https://www.youtube.com/watch?v=BeVS6NkHXl8&ab_channel=hengshuaiyao):

const int STEP = 2;//for step signal
const int DIR = 5;//for direction

void setup() {
  // put your setup code here, to run once:
  pinMode(STEP, OUTPUT);
  pinMode(DIR, OUTPUT);
}

int x = 5000;
void loop() {
  digitalWrite(DIR, HIGH);
  
  for(int index = 0; index < 3000; index++){
    for(int i =0; i<5; i++){
      digitalWrite(STEP, HIGH);
      delayMicroseconds(x);
      digitalWrite(STEP, LOW);
      if(x>150) x--;  
    }
  }
}

The stepper stops, seizes and starts to feed
Result video in my case (IMG_0481.MOV — Яндекс Диск)
Please, tell what is the problem.

Did you set the A4988 current limit to less that 1 Ampere per winding, as required?

Yes, adjusting vref only changes the stepper noise

Nema17 is the size of the mounting plate, so which stepper motor do you have.
Only low impedance steppers with high supply voltage for the driver can do high step rates.
Why aren't you using proper stepper code with acceleration, like MobaTools.
Leo..

Then something else is seriously wrong. You have not posted any useful details about your setup, so there is no point in guessing.

The problem was solved by using 24 volts power suply . Thanks

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