Adafruit Motor Shield V2 Created by lady ada Table of Contents Overview 5 FAQ 7 Install Headers & Terminals 12 Installing Standard Headers 12 Installing Terminal Blocks and more 15 15 Installing with Stacking Headers 19 Install Software 21 Install Adafruit Motor Shield V2 library 21 Running the Example Code 22 22 DC Motor 22 Stepper Motor Test 24 Library Reference 26 class Adafruit MotorShield 27 Adafruit MotorShield(uint8 t addr = 0x60) 27 void begin(uint16 t freq = 1600) 27 Adafruit DCMotor *getMotor(uint8 t n) 27 Adafruit StepperMotor *getStepper(uint16 t steps, uint8 t n) 28 void setPWM(uint8 t pin, uint16 t val) void setPin(uint8 t pin, boolean val) 28 class Adafruit DCMotor 28 Adafruit DCMotor(void) 28 void run(uint8 t) 29 void setSpeed(uint8 t) 29 class Adafruit StepperMotor 30 Adafruit StepperMotor(void) 30 void step(uint16 t steps, uint8 t dir, uint8 t style = SINGLE) 30 void setSpeed(uint16 t) 31 uint8 t onestep(uint8 t dir, uint8 t style) 31 void release(void) 31 Arduino Library Docs 31 Powering Motors 31 Voltage requirements: 31 Current requirements: 32 Setting up your shield for powering Hobby Servos 32 Setting up your shield for powering DC and Stepper Motors 32 If you would like to have a single DC power supply for the Arduino and motors 33 If you would like to have the Arduino powered off of USB and the motors powered off of a DC power supply 34 If you would like to have 2 separate DC power supplies for the Arduino and motors. 34 Using RC Servos 34 Powering Servos 35 Using DC Motors 36 Connecting DC Motors 36 Adafruit Industries Page 2 of 49