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
DaDev
DaDev4mo ago
Then share your wireing
AnonEngineering
AnonEngineering4mo ago
step, delay, step back, delay, repeat?
TheStudier
TheStudierOP4mo ago
This is the circuit. So the pins 1,2,3,4 are connected to 8,9,10,11 in order.
No description
DaDev
DaDev4mo ago
Hum you have your grounds tied together.
TheStudier
TheStudierOP4mo ago
is it possible that the controller board is fried?
AnonEngineering
AnonEngineering4mo ago
what happens if you unplug the stepper? do the lights come on then?
TheStudier
TheStudierOP4mo ago
nope

Did you find this page helpful?