Hi Jon
Thanks for the suggestions
Yes the current is OK.
i have checked the connection and they are proper.
The bounce.bde work, but now i have one information more.
The problem happen only in full step, for all the other settings 1/2 1/4 1/8 i can use all the range of speeds and accelerations
I will work in 1/4 because it work very well.
Anyway i post the code that give problems and the code that work well
Thanks again
LOST STEPS CODE
#include <AccelStepper.h>
//Drive setup FULL step
float motorMaxSpeed = 2000.0;
float motorSpeed = 2000.0; //pulse per second
float motorAccel = 1000.0; //87500; //steps/second/second to accelerate
int motorDirPin = 6; //digital pin 6
int motorStepPin = 3; //digital pin 3
AccelStepper stepper(1, motorStepPin, motorDirPin);
void setup(){
stepper.setMaxSpeed(motorMaxSpeed);
stepper.setSpeed(motorSpeed);
stepper.setAcceleration(motorAccel);
delay(5000);
}
void loop(){
for ( int sr = 0; sr < 2; sr++){
delay(100);
stepper.move(200);
stepper.runToPosition();
}
delay(100);
stepper.move(8000);
stepper.runToPosition();
delay(1000);
}
WORKING CODE
#include <AccelStepper.h>
//Drive setup 1/4 stepfloat motorMaxSpeed = 8000.0;
float motorSpeed = 8000.0; //pulse per second
float motorAccel = 4000.0; //87500; //steps/second/second to accelerate
int motorDirPin = 6; //digital pin 6
int motorStepPin = 3; //digital pin 3
AccelStepper stepper(1, motorStepPin, motorDirPin);
void setup(){
stepper.setMaxSpeed(motorMaxSpeed);
stepper.setSpeed(motorSpeed);
stepper.setAcceleration(motorAccel);
delay(5000);
}
void loop(){
for ( int sr = 0; sr < 2; sr++){
delay(100);
stepper.move(800);
stepper.runToPosition();
}
delay(100);
stepper.move(32000);
stepper.runToPosition();
delay(1000);
}