Adafruit TB A DC/Stepper Motor Driver Breakout Board

Similar documents
Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

Adafruit HMC5883L Breakout - Triple-Axis Magnetometer Compass Sensor

Adafruit SHT31-D Temperature & Humidity Sensor Breakout

Adafruit Terminal Block Breakout FeatherWing

Adafruit Mini TFT " 160x80

Adafruit Metro Mini. Created by lady ada. Last updated on :12:28 PM UTC

TLC5947 and TLC59711 PWM LED Driver Breakouts

Adafruit 1-Wire Thermocouple Amplifier - MAX31850K

Adafruit 1-Wire GPIO Breakout - DS2413

Adafruit HTU21D-F Temperature & Humidity Sensor

Adafruit PowerBoost Charger

Adafruit DS3231 Precision RTC Breakout

Adafruit Powerboost 1000 Basic

Adafruit MAX98357 I2S Class-D Mono Amp

Adafruit Powerboost 1000C

MP6500 Stepper Motor Driver, Digital Current Control

Adafruit 1-Wire Thermocouple Amplifier - MAX31850K

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout

Adafruit INA219 Current Sensor Breakout

Adafruit HUZZAH32 - ESP32 Feather

Adafruit 20W Stereo Audio Amplifier - MAX9744

Adafruit I2S MEMS Microphone Breakout

Adafruit 2.4" Color TFT Touchscreen Breakout

Adafruit PowerBoost Charger

Adafruit 3.5" 320x480 Color TFT Touchscreen Breakout

Adafruit BME680. Created by lady ada. Last updated on :10:23 AM UTC

2.2" TFT Display. Created by lady ada. Last updated on :19:15 PM UTC

Adafruit MAX31865 RTD PT100 or PT1000 Amplifier

Adafruit 20W Stereo Audio Amplifier - MAX9744

Thumb Joystick Retail. Tools and parts you'll need. Things you'll want to know. How does it work? Skill Level: Beginner. by MikeGrusin March 22, 2011

Adafruit BMP280 Barometric Pressure + Temperature Sensor Breakout

Adafruit Ethernet FeatherWing

Adafruit Feather 32u4 Basic Proto

Adafruit BME280 Humidity + Barometric Pressure + Temperature Sensor Breakout

Adafruit PDM Microphone Breakout

Arduino Lesson 15. DC Motor Reversing

A4988 Stepper Motor Driver Carrier, Black Edition

Adafruit DotStar FeatherWing

A4988 Stepper Motor Driver Carrier with Voltage Regulators

LCMM024: DRV8825 Stepper Motor Driver Carrier,

Adafruit USB Power Gauge Mini-Kit

Introducting Itsy Bitsy 32u4

Adafruit INA219 Current Sensor Breakout

A4988 Stepper Motor Driver Carrier

TSL2561 Luminosity Sensor

Adafruit MAX31865 RTD PT100 or PT1000 Amplifier

DS1307 Real Time Clock Breakout Board Kit

4X4 Driver Shield Manual

How-To #7: Assemble an H-bridge Circuit Board

TMP36 Temperature Sensor

IR Breakbeam Sensors. Created by lady ada. Last updated on :32:59 PM UTC

ARDUINO MINI 05 Code: A000087

Adafruit Motor Shield V2 for Arduino

Power Supply, Arduino MEGA 2560, and Stepper Motors Connections

Micro SD Card Breakout Board Tutorial

1.5" & 2.1" Monochrome 128x64 OLED Display Module

Project 16 Using an L293D Motor Driver IC

Adafruit INA219 Current Sensor Breakout

Adafruit 5" and 7" 800x480 TFT HDMI Backpack

2.3" Monochrome 128x32 OLED Display Module

PIC Dev 14 Through hole PCB Assembly and Test Lab 1

Adafruit CAP1188 Breakout

Adafruit Motor Shield V2 for Arduino

Bosch BMP085 Breakout Board

PIC Dev 14 Surface Mount PCB Assembly and Test Lab 1

USB + Serial RGB Backlight Character LCD Backpack

PIC DESIGN (version 1) 2/11/2009

Adafruit Optical Fingerprint Sensor

Adafruit LSM9DS1 Accelerometer + Gyro + Magnetometer 9-DOF Breakout

Introducing Gemma. Created by lady ada. Last updated on :08:07 AM UTC

Lab 2.2 Ohm s Law and Introduction to Arduinos

If I wanted to connect an LED and little light bulb and have them switch on and off with one switch, my schematic would look like the one below.

HUB-ee BMD-S Arduino Proto Shield V1.1

Assembly Instructions (8/14/2014) Your kit should contain the following items. If you find a part missing, please contact NeoLoch for a replacement.

Metro Minimalist Clock

Installation/assembly manual for DCC/Power shield

Getting Started with the nrf8001 Bluefruit LE Breakout

Create moving images in forward and reverse with your Arduino when you connect a motor to an H-bridge and some still images BATTERY POTENTIOMETER

2.3" Monochrome 128x32 OLED Display Module

Adafruit seesaw. Created by Dean Miller. Last updated on :30:23 AM UTC

Device: FDRV-04S. This document version: v1. Matches module version: v2 [2 Oct 2015] Document revision date: 9 November 2015

Adafruit 4-Channel ADC Breakouts

Introducing Gemma. Created by lady ada. Last updated on :03:35 PM UTC

ME 3210: Mechatronics Signal Conditioning Circuit for IR Sensors March 27, 2003

Proper Debugging of ATSAMD21 Processors

SX1509 I/O Expander Breakout Hookup Guide

Introducing Pro Trinket

Introducing Pro Trinket

AUDIO AMPLIFIER PROJECT

How-To: Make an RGB combination door lock (Part 1)

L298N Dual H-Bridge Motor Driver

High Power (15W + 15W) Stereo Amplifier

INTERFACING HARDWARE WITH MICROCONTROLLER

Educato. Assembly Instructions

Stand-alone programming AVRs using CircuitPython

PedalSync. 9 Switches MV-62. Chip. Module. and

UNIT 10: Driving motors

Introducing Pro Trinket

Thursday, September 15, electronic components

How-To #3: Make and Use a Motor Controller Shield

Transcription:

Adafruit TB6612 1.2A DC/Stepper Motor Driver Breakout Board Created by lady ada Last updated on 2016-10-01 06:35:33 PM UTC

Guide Contents Guide Contents Overview Pinouts Power Pins Signal in Pins Motor Out Pins Assembly Prepare the header strip: Add the breakout board: And Solder! Using Stepper Motors Wiring Software Downloads Files Schematic Fabrication print 2 3 7 7 8 8 9 9 10 11 12 12 13 15 15 15 15 Page 2 of 16

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. Page 3 of 16

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. What we like most about this particular driver is that it comes with built in kick-back diodes internally so you dont have to worry about the inductive kick damaging your project or driver! Page 4 of 16

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. Page 5 of 16

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. Page 6 of 16

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. This power supply will get noisy so if you have a system with analog readings or RF other noise-sensitive parts, you may need to keep the power supplies seperate (or filtered!) Vcc - this is the voltage for the logic levels. Set to the voltage logic you'll be using on Page 7 of 16

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. INB1, INB2 - these are the two inputs to the Motor B H-bridges PWMB - this is the PWM input for the Motor B H-bridges, if you dont need PWM control, connect this to logic high. STBY - this is the standby pin for quickly disabling both motors, pulled up to Vcc thru a 10K resistor. Connect to ground to disable. Motor Out Pins These are 'Vmotor level' power outputs Motor A - these are the two outputs for motor A, controlled by INA1, INA2 and PWMA Motor B - these are the two outputs for motor B, controlled by INB1, INB2 and PWMB Page 8 of 16

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 Page 9 of 16

Add the breakout board: Place the breakout board over the pins so that the short pins poke through the breakout pads Page 10 of 16

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)). Page 11 of 16

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 Page 12 of 16

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 Page 13 of 16

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 <Stepper.h> // 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.println("Stepper test!"); // set the speed of the motor to 30 RPMs stepper.setspeed(60); } void loop() { Serial.println("Forward"); stepper.step(steps); Serial.println("Backward"); stepper.step(-steps); } Basically after you make the Stepper object with the 4 control pins, you can set the rotational speed (in RPM) with setspeed(rpm) and then step forward or backwards with.step(steps) where steps is positive for 'forward' and negative for 'backward' For more details, check out the Stepper library (http://adafru.it/erw) Page 14 of 16

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 Page 15 of 16

Dimensions in inches Adafruit Industries Last Updated: 2016-10-01 06:35:32 PM UTC Page 16 of 16