Radio Shack Arduino Motor Sheild


Here’s the Sheild…
And here’s the Stepper motor…
The code I’m using is installed with the basic Arduino package, and I just realized it’s not for use with a sheild! But here it is anyways…

Stepper Motor Control - one revolution

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

The motor should revolve one revolution in one direction, then
one revolution in the other direction.

Created 11 Mar. 2007
Modified 30 Nov. 2009
by Tom Igoe


#include <Stepper.h>

const int stepsPerRevolution = 200; // 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:
// initialize the serial port:

void loop() {
// step one revolution in one direction:

// step one revolution in the other direction:

I have a 9V battery connected to the sheild and have a USB cable connected to the computer. It loaded the sketch, but at best all I can get is the motor to hum. I’ve tried making a chart and connecting the motor in several different ways.
I cannot find any references on how to use this sheild.

Any ideas?


Check the motor spec (link not opening for me), it may have too high of a stall current for the 9V battery to supply.
Little square 9V batteries are only good for a couple hundred mA.
You're better off using AAs in series.

I can't seem to load a picture, but the stepper has 4 wires A,B,C,D, AC is a coil and BD is a coil, no other internal connections. The specs are Step angle 1.8, Rate Voltage is 5, Rate Current is 1. There is more, but I don't think it's pertinent.

I did try connecting a power supply to the Mega, and a 9V battery to the Sheild, but same effect. I'm looking for some AA's and a holder...
The wires are currently connected up as A to the first -, C to the first +, B to the second -, and D to the second +. I did try swapping B and D, but no effect.

Motor link

You can click Reply, then Additional Options, and browse to your locally stored picture and attach it.
Please scale it to ~800 wide, 3000 x 2000 bit pictures show up here as waaaay too big.