Most of that you'll have to hammer out yourself. Take ownership.
This sketch should start you down the "Road of Discovery".
The motor runs slowly for 4 seconds or so, takes a break, runs quickly for 4 seconds, takes a another break, and starts the process over again.
/*
easy driver
demo sketch
Step pin connects to
Arduino pin D2
*/
byte step_pin = 2; // pin alias
void setup()
{
pinMode (step_pin, OUTPUT);
}
void loop ()
{
// speed 1
for (int spin = 0; spin < 40; spin ++)
{
digitalWrite(step_pin, HIGH);
delay (2); // try different values
digitalWrite(step_pin, LOW);
delay (100); // try different values
}
delay (1000); // pause 1 sec
// speed 2
for (int spin = 0; spin < 80; spin ++)
{
digitalWrite(step_pin, HIGH);
delay (2); // try different values
digitalWrite(step_pin, LOW);
delay (50); // try different values
}
delay (1000); // pause 1 sec
}
changed values of "spin"