//********************Arduino code from video***********************
#include <Stepper.h>
const int numberOfSteps = 100; //number of steps you want your stepper motor to take
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(numberOfSteps, 8, 9, 10, 11);
void setup() {
// set the speed at 60 rpm:
myStepper.setSpeed(60);
}
void loop() {
myStepper.step(numberOfSteps);
delay(1000);
}
No comments:
Post a Comment