I want to use Multistepper, but my arduino does not recognize I can do ??

530 views
Skip to first unread message

francisco barcenas

unread,
Oct 23, 2016, 6:09:13 PM10/23/16
to accelstepper
#include <AccelStepper.h>
#include <MultiStepper.h>

AccelStepper stepper1(AccelStepper::FULL4WIRE, 2, 3, 4, 5);
AccelStepper stepper2(AccelStepper::FULL4WIRE, 8, 9, 10, 11);

MultiStepper steppers;
void setup() {
Serial.begin(9600);
// Configure each stepper
stepper1.setMaxSpeed(100);
stepper2.setMaxSpeed(100);
// Then give them to MultiStepper to manage
steppers.addStepper(stepper1);
steppers.addStepper(stepper2);
}
void loop() {
long positions[2];
positions[0] = 1000;
positions[1] = 50;
steppers.moveTo(positions);
steppers.runSpeedToPosition();
delay(1000);
// Move to a different coordinate
positions[0] = -100;
positions[1] = 100;
steppers.moveTo(positions);
steppers.runSpeedToPosition();
delay(1000);
}

gregor

unread,
Oct 23, 2016, 6:12:47 PM10/23/16
to accelstepper
Hi, 

the code compiles on my machine (AccelStepper v1.51). what version of AccelStepper are you using? The AccelStepper.h file contains a full changelog with version numbers.

francisco barcenas

unread,
Oct 23, 2016, 6:15:31 PM10/23/16
to accelstepper
I cant find that library

gregor

unread,
Oct 23, 2016, 6:16:32 PM10/23/16
to accelstepper
have you installed the latest library from http://www.airspayce.com/mikem/arduino/AccelStepper/ ?

francisco barcenas

unread,
Oct 23, 2016, 6:16:35 PM10/23/16
to accelstepper
I have the 1.30 version, where can i find yours ? 

francisco barcenas

unread,
Oct 23, 2016, 7:17:32 PM10/23/16
to accelstepper
yes, i do, my arduino does not recognize multistepper.h 

gregor

unread,
Oct 24, 2016, 2:49:07 PM10/24/16
to accelstepper
are both the MultiStepper.h and MultiStepper.cpp files present in your Documents\Arduino\libraries\AccelStepper directory?
Reply all
Reply to author
Forward
0 new messages