Adafruit TB6612 1.
Guide Contents Guide Contents Overview Pinouts Power Pins Signal in Pins Motor Out Pins Assembly 2 3 7 7 8 8 9 Prepare the header strip: Add the breakout board: And Solder! 9 10 11 Using Stepper Motors Wiring Software Downloads Files Schematic Fabrication print 12 12 13 15 15 15 15 © Adafruit Industries https://learn.adafruit.
Overview Fire four solenoids, spin two DC motors or step one bi-polar or uni-polar stepper with 1.2A per channel using the TB6612. These are perhaps better known as "the drivers in our assembled Adafruit Motorshield (http://adafru.it/1438) or Motor HAT (http://adafru.it/eRq)" We really like these dual H-bridges, so if you want to control motors without a shield or HAT these are easy to include on any solderless breadboard or perma-proto. © Adafruit Industries https://learn.adafruit.
We solder on TB6612 onto a breakout board for you here, with a polarity protection FET on the motor voltage input and a pullup on the "standby" enable pin. Each breakout chip contains two full H-bridges (four half H-bridges). That means you can drive four solenoids, two DC motors bi-directionally, or one stepper motor. Just make sure they're good for 1.2 Amp or less of current, since that's the limit of this chip. They do handle a peak of 3A but that's just for a short amount of time, about 20 milliseconds.
There's two digital inputs per H-bridge (one for each half of the bridge) as well as a PWM input per driver so you can control motor speed. Runs at 2.7V-5V logic. The motor voltage is separate from the logic voltage. Good for motor voltages from 4.5V up to 13.5V! This wont work well for 3V motors. © Adafruit Industries https://learn.adafruit.
Comes as one assembled and tested breakout plus a small strip of header. You'll need to do some light soldering to attach the header onto the breakout PCB. Arduino, motors, and power supply not included. © Adafruit Industries https://learn.adafruit.
Pinouts This motor driver is a fairly simple breakout of the TB6612 motor chip, so do check out the datasheet for the TB6612 for any details you need about pin voltage limits, capacitance, etc! (http://adafru.it/emK) Power Pins Vmotor - This is the voltage for the motors, not for the logic level. Keep this voltage between 4.5V and 13.5V.
your microcontroller. E.g. for Arduinos, 5V is probably what you want. Can be 2.7V to 5.5V so good for 3V or 5V logic GND - This is the shared logic and motor ground. All grounds are connected Signal in Pins These are all 'Vcc logic level' inputs INA1, INA2 - these are the two inputs to the Motor A H-bridges PWMA - this is the PWM input for the Motor A H-bridges, if you dont need PWM control, connect this to logic high.
Assembly Prepare the header strip: Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard - long pins down © Adafruit Industries https://learn.adafruit.
Add the breakout board: Place the breakout board over the pins so that the short pins poke through the breakout pads © Adafruit Industries https://learn.adafruit.
And Solder! Be sure to solder all pins for reliable electrical contact. (For tips on soldering, be sure to check out our Guide to Excellent Soldering (http://adafru.it/aTk)). © Adafruit Industries https://learn.adafruit.
Using Stepper Motors In this example we'll wire up and use a bi-polar stepper motor with recommended 12V motor voltage, and 200 steps per rotation. Wiring We'll wire it to a Metro, but you can use any microcontroller you like! Connect: Vmotor to 12V (red wire) Vcc to 5V (orange wire) GND to ground © Adafruit Industries https://learn.adafruit.
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.
Software We'll use the built-in Arduino Stepper library (http://adafru.it/eRw), but you can manually toggle the AIN1/AIN2/BIN1/BIN2 pins with your own favorite microcontroller setup #include // change this to the number of steps on your motor #define STEPS 200 // create an instance of the stepper class, specifying // the number of steps of the motor and the pins it's // attached to Stepper stepper(STEPS, 4, 5, 6, 7); void setup() { Serial.begin(9600); Serial.
Downloads Files This motor driver is a fairly simple breakout of the TB6612 motor chip, so do check out the datasheet for the TB6612 for any details you need about pin voltage limits, capacitance, etc! (http://adafru.it/emK) Fritzing object in the Adafruit Fritzing Library (http://adafru.it/aP3) EagleCAD PCB files (http://adafru.it/rF1) Schematic Fabrication print © Adafruit Industries https://learn.adafruit.
Dimensions in inches © Adafruit Industries Last Updated: 2016-10-01 06:35:32 PM UTC Page 16 of 16