Datasheet

Once you have verified the motor is connected properly and you have the power LED lit up brightly, we can upload our
code.
In the IDE, load File->Examples->Adafruit_MotorShield->DCMotorTest
You should see and hear the DC motor turn on and move back and forth, attaching a slip of paper or tape as a 'flag'
can help you visualize the movement if you have trouble seeing the movement
Stepper Motor Test
You can also test a stepper motor connection with the shield. The shield can run unipolar (5-wire and 6-wire) and
bipolar (4-wire) steppers. It cannot run steppers with any other # of wires! The code is the same for unipolar or bipolar
motors, the wiring is just slightly different.
Plug the shield into the Arduino and connect a stepper motor to motor port 2 - unlike DC motors, the wire order does
'matter'. Connect to the top two terminal ports (coil #1) and the bottom two terminal ports (coil #2).
If you have a bipolar motor, do not connect to the middle pin (GND).
If you are using a unipolar motor with 5 wires, connect the common wire to GND.
If you are using a unipolar motor with 6 wires, you can connect the two 'center coil wires' together to GND
© Adafruit Industries https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino Page 24 of 43