I am currently using an Adafruit motor shield on my arduino uno for the first time. The idea is turning the stepper motor with basicly 1RPM. But i just cant do it.
This is the first time working with this setup, and i dont know what to do. Can you people help me?
i'm using the Arduino Uno with ADAFRUIT motorshield. The steppermotor is 48steps / rev DATASHEET
The code i have at the moment:
#include <AFMotor.h>
AF_Stepper motor(48, 1);
void setup() {
Serial.begin(9600);
motor.setSpeed(1);
motor.step(48, FORWARD, DOUBLE);
motor.release();
delay(10);
}
void loop () {
motor.step(48, FORWARD, DOUBLE);
}
Greetings from Holland.
But i just cant do it.
- can't do what? I don't understand what you are asking. What is your question? How is it wired? What happens when you run the code? I'm going to close this question. Feel free to edit it with new information. Thanks for your understanding and cooperation! – Nick Gammon♦ Jan 30 '16 at 5:33