Datasheet
Board 0: Address = 0x60 Offset = binary 0000 (no jumpers required)
Board 1: Address = 0x61 Offset = binary 0001 (bridge A0 as in the photo above)
Board 2: Address = 0x62 Offset = binary 0010 (bridge A1, to the left of A0)
Board 3: Address = 0x63 Offset = binary 0011 (bridge A0 & A1, two rightmost jumpers)
Board 4: Address = 0x64 Offset = binary 0100 (bridge A2, middle jumper)
etc.
Writing Code for Multiple Shields
The Adafruit_MotorShield library has the ability to control multiple shields, unlike the older AF_Motor library. First we
must create a Motor Shield Controller for each shield, with the assigned address.
Adafruit_MotorShield AFMSbot(0x61); // Rightmost jumper closed
Adafruit_MotorShield AFMStop(0x60); // Default address, no jumpers
One motor shield is going to be called AFMSbot (bottom shield, so we remember) and one is AFMStop (top shield) so
we can keep them apart. When you create the shield object, specify the address you set for it above.
Then we can request the motors connected to each one
Note that address 0x70 is the "all call" address for the controller chip on the shield. All boards will respond to
address 0x70 - regardless of the address jumper settings.
© Adafruit Industries https://learn.adafruit.com/adafruit-motor-shield-v2-for-arduino Page 41 of 43