Im sorry, I'm a newbie at this and have had the shield for only a week. How would i implement the speed when using the one.step? I have scoured the internet and cannot find any examples on setting the speed for a one step. Please help.
As it stands now, this is the only code i have.
// AFMotor_MultiStepper.pde
// -*- mode: C++ -*-
//
// Control both Stepper motors at the same time with different speeds
// and accelerations.
// Requires the AFMotor library (
https://github.com/adafruit/Adafruit-Mo ... ld-library)
#include <AccelStepper.h>
#include <AFMotor.h>
The one step seems to be a possible answer to my question but i am unsure where you are supposed to put in the time increment between steps. I thought this should be a fairly basic problem but it seems there is no supporting documentation for it anywhere on the web.
AF_Stepper stepper1(200, 2);
// you can change these to DOUBLE or INTERLEAVE or MICROSTEP!
// wrappers for the first motor!
void forwardstep1() {
stepper1.onestep(FORWARD, SINGLE);
}
void setup()
{
stepper1.setMaxSpeed(200.0);
stepper1.setAcceleration(100.0);
stepper1.moveTo(24);