not a programmer but looking for help

I want to code the arduino and Easy Driver stepper to turn the stepper 1RPM. I was looking at this code but not sure how to intergrate the Easy Driver into it. I would appreciate any help.

Bob

/*
Stepper Motor Controller
language: Wiring/Arduino

This program drives a unipolar or bipolar stepper motor.
The motor is attached to digital pins 8 and 9 of the Arduino.

The motor moves 100 steps in one direction, then 100 in the other.

Created 11 Mar. 2007
Modified 7 Apr. 2007
by Tom Igoe

*/

// define the pins that the motor is attached to. You can use
// any digital I/O pins.

#include <Stepper.h>

#define motorSteps 200 // change this depending on the number of steps
// per revolution of your motor
#define motorPin1 8
#define motorPin2 9
#define ledPin 13

// initialize of the Stepper library:
Stepper myStepper(motorSteps, motorPin1,motorPin2);

void setup() {
// set the motor speed at 60 RPMS:
myStepper.setSpeed(60);

// Initialize the Serial port:
Serial.begin(9600);

// set up the LED pin:
pinMode(ledPin, OUTPUT);
// blink the LED:
blink(3);
}

void loop() {
// Re-setup the motor RPM :
myStepper.setSpeed(0.590551181);

// Step forward 1474 steps:
Serial.println("Forward");
myStepper.step(1474);
blink(10);
}

// Blink the reset LED:
void blink(int howManyTimes) {
int i;
for (i=0; i< howManyTimes; i++) {
digitalWrite(ledPin, HIGH);
delay(200);
digitalWrite(ledPin, LOW);
delay(200);
}
}

Hi !

I've not used that board specifically, but have you seen this page with the code samples and (different, custom) Arduino library for the Easy Driver board?

It even has an explanation there of how to get to a specific RPM without using a library, and just that simple top code snippet.

Cheers ! Geoff

If you're using the EasyDriver, then don't use the Stepper library.
(Anyway, myStepper.setSpeed() takes a long integer number of RPM, not a float.)

The EasyDriver is just that - easy;
( tutorial page: http://www.schmalzhaus.com/EasyDriver/Examples/EasyDriverExamples.html )
If your motor is the same as theirs, it will run at 500/1600 or 0.312 rev/sec, which is 18.75 RPM.
If you want 1 RPM, increase the delays by a factor of 18.75 (using delayMicroseconds to get the precision)
Does this help?

void setup() {                
  pinMode(8, OUTPUT);     
  pinMode(9, OUTPUT);
  digitalWrite(8, LOW);
  digitalWrite(9, LOW);
}

void loop() {
  digitalWrite(9, HIGH);
  delay(18);
  delayMicroseconds(750);         //  18.75 milliseconds 
  digitalWrite(9, LOW); 
  delay(18);
  delayMicroseconds(750);         //  18.75 milliseconds 
}