Hi, i hope somebody can help me with this
I have a DFRobot 2A Motor shield (Arduino_Motor_Shield__L298N___SKU_DRI0009_-DFRobot)
I want to connect a stepper motor to it (http://www.pieterfloris.nl/shop/product.php?id_product=120)
i connected it to a 12 V 0.38 A power supply
Now when i run this simple sketch
#include <AFMotor.h>
AF_Stepper motor(200, 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);
}
it does nothing but tremble a bit.
it seems to follow the instruction (as there are LEDs blinking and delays) but it doesn't rotate.
I tried a 15 V 0.8 A and a 12 V 2.5 A, but no difference
Anybody has an idea?