Stepper motor wont do anything?
This is my code and it just doesnt work, the stepper motor driver wont even turn the lights on.
#include <Stepper.h>
int SPR=2048;
int motSpeed=10;
Stepper nakki (SPR,8,10,9,11);
int dt=400;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
nakki.setSpeed(motSpeed);
}
void loop() {
// put your main code here, to run repeatedly:
nakki.step(SPR);
delay(dt);
nakki.step(-SPR);
delay(dt);
}
7 Replies
Then share your wireing
step, delay, step back, delay, repeat?
This is the circuit. So the pins 1,2,3,4 are connected to 8,9,10,11 in order.

Hum you have your grounds tied together.
is it possible that the controller board is fried?
what happens if you unplug the stepper? do the lights come on then?
nope