Library Install

This tutorial is for the now ancient V1 Motor shield. Chances are you have a V2, check out the tutorial This tutorial is for historical reference and previous customers only!

First Install the Arduino Library

Before you can use the Motor shield, you must install the AF_Motor Arduino library - this will instruct the Arduino how to talk to the Adafruit Motor shield, and it isn't optional!
  1. First, grab the library from github
  2. Uncompress the ZIP file onto your desktop
  3. Rename the uncompressed folder AFMotor
  4. Check that inside AFMotor is AFMotor.cpp and AFMotor.h files. If not, check the steps above
  5. Place the AFMotor folder into your arduinosketchfolder/libraries folder. For Windows, this will probably be something like MY Documents/Arduino/libraries for Mac it will be something likeDocuments/arduino/libraries. If this is the first time you are installing a library, you'll need to create the libraries folder. Make sure to call it libraries exactly, no caps, no other name.
  6. Check that inside the libraries folder there is the AFMotor folder, and inside AFMotor isAFMotor.cpp AFMotor.h and some other files
  7. Quit and restart the IDE. You should now have a submenu called File->Examples->AFMotor->MotorParty
This guide was first published on Aug 27, 2012. It was last updated on Aug 27, 2012. This page (Library Install) was last updated on Sep 18, 2019.