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

Did you find this page helpful?