Hi!!,
I've been having problems with setAcceleration. I haven't been able to change de acceleration of the motor.
It always goes as fast as it can to the speed thats was set. I would like for it to start slowly until it reaches de desired speed.
But its seems that setAcceleration doesn't change the acceleration of the stepper. So how can i do it??
I tried this code but it doesn't seem to work...
#include <AccelStepper.h>
// Define a stepper and the pins it will use
AccelStepper stepper(AccelStepper::FULL4WIRE,8,9,10,11); // Defaults to AccelStepper::FULL4WIRE (4 pins) on 2, 3, 4, 5
int spd=1000;
void setup()
{
stepper.setMaxSpeed(3500);
stepper.setAcceleration(1);
}
void loop()
{
while (spd != 3500){
spd=spd+10;
stepper.setSpeed(spd);
stepper.runSpeed();
}
}