DRV8871 Brushed DC Motor Driver Breakout Datasheet by Adafruit Industries LLC

View All Related Products | Download PDF Datasheet
-',- adafruit learning system
Adafruit DRV8871 Brushed DC Motor Driver Breakout
Created by lady ada
Last updated on 2018-08-22 03:54:40 PM UTC
2
3
7
7
8
8
10
11
11
16
19
19
19
19
Guide Contents
Guide Contents
Overview
Pinouts
Motor power pins
Motor Input Pins
Motor Output
Assembly
Prepare the header strip and Add the breakout board:
Solder!
Usage
Download
Datasheets & Files
Schematic
Fabrication Print
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 2 of 20
Overview
Crank up your robotics with powerful Adafruit DRV8871 motor driver breakout board. This motor driver has a lot of
great specs that make it useful for a wide variety of mechatronics. In particular, the simple resistor-set current limiting
and auto-magic PWM support make it super easy to use with almost any brushed DC motor.
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 3 of 20
Check out the specs for the DRV8871:
6.5V to 45V motor power voltage
Up to 5.5V logic level on IN pins
565mΩ Typical RDS(on) (high + low)
3.6A peak current
PWM control
Current limiting/regulation without an inline sense resistor
Undervoltage lockout
Overcurrent protection
Thermal shutdown
Using it is super simple. Connect your motor to the OUT terminal block. Power the board with 6.5-45VDC power on
VMotor and provide the H-bridge input control on IN1 and IN2. You can even PWM the inputs and the driver chip will
do the right thing.
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 4 of 20
' nn’ueen' 0 O O 0 DC Hotor H-Bridqe Uflmon 6.5-43U pun Uloqic: 3-5U ' O ”£33675: 0 o - w—DIW—O , 3.63 pnk u/auj919nn Se! Rlin=64i
You can set the current limiting with an external resistor Rlim. We solder in a 30K resistor by default for a ~2A current
limit, however you can remove this resistor and/or solder a resistor over it to change the resistance and change the
limit.
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 5 of 20
Each order comes with one My assembled and tested motor driver breakout, two 27pm termina‘ blocks and a smaH
Each order comes with one fully assembled and tested motor driver breakout, two 2-pin terminal blocks and a small
strip of header. Some light soldering is required to attach the header and terminal blocks but its a simple task that can
be done with basic soldering equipment.
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 6 of 20
Pinouts
Motor power pins
These two sets of pads are connected internally so you can use breadboard or terminal blocks to provide motor
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 7 of 20
power. Use 6.5V-45VDC to power the motor and the chip. This isn't the same as the logic level of the chip. which is up
power. Use 6.5V-45VDC to power the motor and the chip. This isn't the same as the logic level of the chip, which is up
to 5.5 VDC. You do not have to provide a logic level power supply to the chip, how nice is that?
Motor Input Pins
These are the inputs to the motor control. IN2 goes to OUT2, IN1 goes to IN1. Use up to 5.5V DC logic on these pins.
You can PWM the inputs up to 200KHz, but lower frequencies will be more efficient.
Motor Output
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 8 of 20
Pretty simple - this is where your motor goes! Works with any DC brushed motor. Use thick wires to avoid dropping
voltage across the wire resistance
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 9 of 20
W a :: :g:
Assembly
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 10 of 20
Prepare the header strip and Add the
breakout board:
Cut the strip to length if necessary. It will be easier to
solder if you insert it into a breadboard - long pins down
Place the breakout board over the pins so that the short
pins poke through the breakout pads
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
(https://adafru.it/aTk)
).
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 11 of 20
:- at :- a. =- :- :- SI 3- :1 u- :- a! BI
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 12 of 20
Next we will solder in the two 3.5mm terminal blocks
used to connect power & the motor to the breakout
board.
Make sure the open parts of the terminals face
outwards so you can easily connect wires
To make it easier to keep these in place, you can use
some tape to hold down the two header pieces. Tacky
clay also works, whatever you've got handy!
Solder in both pins of each terminal block. You can
remove the tape when done.
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 13 of 20
DRU8871 '> ‘I '-> H "P fioxor fi-Br“ (mm. . : Ln rail: w.“ 3.. an a: DRU8871 n 1' c A. "" 1otor H—B'
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 14 of 20
DRU8871
OK You're done! Now you can get your motors spinnin'
!
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 15 of 20
Usage
Using the motor driver is really easy. Wire up the two input pins to your microcontroller's PWM outputs. We'll be using
an Arduino but any microcontroller or microcomputer can be used. If you don't have PWM outputs you can also just use
straight logic high and low but you wont get speed control
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 16 of 20
// Basic sketch for trying out the Adafruit DRV8871 Breakout
#define MOTOR_IN1 9
#define MOTOR_IN2 10
void setup() {
Serial.begin(9600);
Serial.println("DRV8871 test");
pinMode(MOTOR_IN1, OUTPUT);
pinMode(MOTOR_IN2, OUTPUT);
}
void loop() {
// ramp up forward
digitalWrite(MOTOR_IN1, LOW);
for (int i=0; i<255; i++) {
analogWrite(MOTOR_IN2, i);
delay(10);
}
// forward full speed for one second
delay(1000);
// ramp down forward
for (int i=255; i>=0; i--) {
analogWrite(MOTOR_IN2, i);
delay(10);
}
// ramp up backward
digitalWrite(MOTOR_IN2, LOW);
for (int i=0; i<255; i++) {
analogWrite(MOTOR_IN1, i);
delay(10);
}
// backward full speed for one second
delay(1000);
// ramp down backward
for (int i=255; i>=0; i--) {
analogWrite(MOTOR_IN1, i);
delay(10);
}
}
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 17 of 20
~". 85:23: fritzing
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 18 of 20
m; :1“ I,... um um.» In my .. w w. m... h." .. “m n. w [v.4 nu awn" mmarlm: mu mm“ was: an
Download
Datasheets & Files
DRV8871 Datasheet (https://adafru.it/oES)
EagleCAD PCB Files on GitHub (https://adafru.it/oET)
Fritzing object in our library (https://adafru.it/aP3)
Schematic
Fabrication Print
Dimensions in Inches
© Adafruit Industries https://learn.adafruit.com/adafruit-drv8871-brushed-dc-motor-driver-breakout Page 19 of 20
© Adafruit Industries Last Updated: 2018-08-22 03:54:34 PM UTC Page 20 of 20

Products related to this Datasheet

DRV8871 DC MOTOR DRIVER BREAKOUT