Datasheet
Install Software
Install Adafruit Motor Shield V2 library
To use the shield on an Arduino, you'll need to install the Adafruit Motorshield v2 library. This library is not compatible
with the older AF_Motor library used for v1 shields. However, if you have code for the older shield, adapting the code
to use the new shield isn't difficult. We had to change the interface a little to support shield stacking, & we think its
worth it!
To begin controlling motors, you will need to install the Adafruit_Motor_Shield_V2_Library library (code on our github
repository). It is available from the Arduino library manager so we recommend using that.
From the IDE open up the library manager...
And type in adafruit motor to locate the library. Click Install
If you plan to use AccelStepper for acceleration control or for simultaneous control of multiple stepper motors, you will
also need to download and install the AccelStepper library:
AccelStepper Library
https://adafru.it/dh1
For more details on how to install Arduino libraries, check out our detailed tutorial!
Running the Example Code
© Adafruit Industries https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino Page 22 of 43