Can someone help on connecting stepper motor to spark core.
I have this motor (bipolar) https://www.sparkfun.com/products/13656
I have connected to Gree/Blue to D0 / D1
And Red to 3.3 and ground black.
installed the Stepper Library Here is my code (simple) i tried different parameters the motor seems to be working
But actually do not do nothing.:
//Includes
#include "Stepper.h"
#include "math.h"
//Defines
#define STEPS 200
#define ADCwidth 12
#define ADCsteps pow(2, ADCwidth)
#define maxSpeed 256 //RPM (for test, using max LED value 255)
Stepper stepper1(STEPS, D0, D1, D2, D3);
void setup() {
//Serial.begin(9600);
stepper1.setSpeed(1);
}
void loop() {
stepper1.step(STEPS);
}