Datasheet

AIN2 to Digital 4
AIN1 to Digital 5
BIN1 to Digital 6
BIN2 to Digital 7
PWMA and PWMB to Vcc (orange wire)
Then hook one stepper motor coil to Motor A (red and yellow) and the second coil to Motor
B (green and gray/brown). If you have another motor, you'll need to experiment a little to
figure out which wires are which coil. Check any documentation you have! You can use a
multimeter to measure between wires, the ones with a small resistance between them are a
pair to a coil, for example. If the motor is vibrating but not spinning, check all wires are
connected and try flipping around a pair or rechecking the wire pairs.
If you have a unipolar motor, there will be a 5th or 6th wire that is the 'common' wire.
Connect these wires to the GND pins in between the Motor A and B outputs on the
breakout.
Software
© Adafruit Industries
https://learn.adafruit.com/adafruit-tb6612-h-bridge-dc-stepper-motor-
driver-breakout
Page 13 of 16