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 usingarduinobefore you use Adafruit Motor Shield V2 functions. SeeConnect to Arduino Hardwarefor more information.

Functions

expand all

addon Connection to add-on device forArduinohardware
dcmotor Connection to DC motor onAdafruitMotor Shield V2 forArduino
start Start DC motor connected toAdafruitMotor Shield
stop Stop DC motor connected toAdafruitMotor Shield
stepper Connection to stepper motor onAdafruitMotor Shield V2 forArduino
move Rotate stepper motor connected toAdafruitMotor Shield
释放 Release stepper motor connected toAdafruitMotor Shield
servo Connection to servo motor onAdafruitMotor Shield V2 forArduino
readPosition Read position from servo motor connected toAdafruitMotor Shield
writePosition Write position to servo motor connected toAdafruitMotor Shield

Topics

Troubleshooting

Adafruit Motor Shields and Servo Issues

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