Stepper.h with motor shield R5

Hi,
I've got a motor shield R3 with a uno R3 and was wondering if I can use the Stepper.h library with this board ?

I was trying to use some code like below but not sure if it will work with the motor shield

#include

const int stepsPerRevolution = 64; // change this to fit the number of steps per revolution
// for your motor

// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);

void setup() {
// set the speed at 60 rpm:
myStepper.setSpeed(60);
// initialize the serial port:
Serial.begin(9600);
}

void loop() {
// step one revolution in one direction:
Serial.println("clockwise");
myStepper.step(stepsPerRevolution);
delay(500);

// step one revolution in the other direction:
Serial.println("counterclockwise");
myStepper.step(-stepsPerRevolution);
delay(500);
}

I've got a motor shield R3

A link, please.

In general, a motor controller for regular DC motors is not suited for controlling stepper motors.

daithik81:
I was trying to use some code like below but not sure if it will work with the motor shield

The Arduino system is great for learning by doing.

There are thousands of different stepper motors. Post a link to the datasheet for the one you have.

AFAIK the motor shield is primarily intended for DC motors and would not be suitable for a high-current low-resistance stepper motor.

These links may help
Stepper Motor Basics
Simple Stepper Code

...R