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.