Main Content

Adafruit Motor Shield V2

Control motors connected to add-on shields on Arduino® hardware

Adafruit® Motor Shield V2 is an add-on shield that you can plug into Arduino Uno, Mega, or Due hardware to control motors. The Adafruit Motor Shield v2 can drive up to 4 bi-directional DC motors, 2 stepper motors, or 2 servo motors. The Adafruit Motor Shield comes with a TB6612 MOSFET driver and 4 H-Bridges capable of delivering 1.2A per channel with a 3A peak capability and also has internal kick-back protection diodes. You can also stack multiple motor shields to control additional motors, if you are using Arduino Uno or Due boards. Create an Arduino object using arduino before you use Adafruit Motor Shield V2 functions. See Connect to Arduino Hardware for more information.

Functions

expand all

addonConnection to add-on device for Arduino hardware
dcmotorConnection to DC motor on Adafruit Motor Shield V2 for Arduino
startStart DC motor connected to Adafruit Motor Shield
stopStop DC motor connected to Adafruit Motor Shield
stepperConnection to stepper motor on Adafruit Motor Shield V2 for Arduino
moveRotate stepper motor connected to Adafruit Motor Shield
releaseRelease stepper motor connected to Adafruit Motor Shield
servoConnection to servo motor on Adafruit Motor Shield V2 for Arduino
readPositionRead position from servo motor connected to Adafruit Motor Shield
writePositionWrite position to servo motor connected to Adafruit Motor Shield

Topics

Troubleshooting

Adafruit Motor Shields and Servo Issues

If you are facing issues using Adafruit motor shields and servo motors, try these tips.