Just in to this stuff in general. copied a script and pasted the complete thing ans a'm getting errors. Specifacly "no such file or directory in function" <AFMotor.h>,,,,AF_stepper does not name a type
It sounds like you are missing a header file in your sketch. Post the sketch, as your shoulder is blocking my view of your screen.
#include <AFMotor.h>
AF_Stepper motor(48, 2);
void setup() {
Serial.begin(9600); // set up Serial library at 9600 bps
Serial.println("Stepper test!");
motor.setSpeed(10); // 10 rpm
motor.step(100, FORWARD, SINGLE);
motor.release();
delay(1000);
}
void loop() {
motor.step(100, FORWARD, SINGLE);
motor.step(100, BACKWARD, SINGLE);
motor.step(100, FORWARD, DOUBLE);
motor.step(100, BACKWARD, DOUBLE);
motor.step(100, FORWARD, INTERLEAVE);
motor.step(100, BACKWARD, INTERLEAVE);
motor.step(100, FORWARD, MICROSTEP);
motor.step(100, BACKWARD, MICROSTEP);
}
When posting code be sure to use the # button in the message window to attach the proper tags. Be sure to download and install the library into the Library folder.
BTW your are using the AFmotor shield, right?