Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use DRV8874: Examples, Pinouts, and Specs

Image of DRV8874Design with DRV8874 in Cirkit Designer

Introduction

The DRV8874 from Texas Instruments is a high-performance brushed DC motor driver designed for a wide range of applications requiring precise control of motor speed and direction. It is commonly used in robotics, industrial automation, and consumer electronics. The DRV8874 simplifies the process of driving a DC motor by integrating most of the components required for motor control into a single IC, thus reducing the complexity and footprint of the motor control circuitry.

Explore Projects Built with DRV8874

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of ESP32-Based Data Display and RF Communication System: A project utilizing DRV8874 in a practical application
ESP32-Based Data Display and RF Communication System

This circuit features an ESP32 microcontroller connected to an ili9341 TFT display, an SD card module, and an E07-M1101D RF transceiver module. The ESP32 controls the display via GPIO pins and communicates with both the SD card and the RF module using SPI communication. The circuit is likely designed for applications requiring a user interface, data storage, and wireless communication capabilities.

Open Project in Cirkit Designer

Technical Specifications

Key Features

Pin Configuration and Descriptions

Pin Number Name Description
1 VM Motor power supply voltage (6.5 V to 45 V)
2 GND Ground
3 OUT1 Motor output 1
4 OUT2 Motor output 2
5 VPROPI Proportional current regulation voltage input
6 ISENSE Current sense output
7 nFAULT Fault condition indicator
8 EN/IN1 Enable/motor direction input 1
9 PH/IN2 Phase/motor direction input 2
10 VREF Reference voltage for current regulation
11 GND Ground
12 VCP Charge pump output
13 VCC 3.3 V to 5 V logic supply voltage
14 SLEEP Low-power sleep mode

Usage Instructions

Connecting the DRV8874 to a Circuit

  1. Connect the motor to the OUT1 and OUT2 pins.
  2. Apply the motor power supply voltage (VM) to the VM pin and connect the ground (GND) pins to the system ground.
  3. Connect the logic supply voltage (VCC) to the VCC pin.
  4. Use the EN/IN1 and PH/IN2 pins to control the motor's direction and enable state.
  5. Optionally, connect a reference voltage to the VREF pin to set the current regulation threshold.
  6. Monitor the ISENSE pin for real-time current feedback.
  7. Connect the nFAULT pin to a microcontroller to detect fault conditions.

Control via Arduino UNO

// Define the control pins for the DRV8874
#define EN_IN1 2
#define PH_IN2 3

void setup() {
  // Set the control pins as outputs
  pinMode(EN_IN1, OUTPUT);
  pinMode(PH_IN2, OUTPUT);
}

void loop() {
  // Set the motor direction to clockwise
  digitalWrite(EN_IN1, HIGH);
  digitalWrite(PH_IN2, LOW);
  delay(1000); // Run the motor for 1 second

  // Set the motor direction to counter-clockwise
  digitalWrite(EN_IN1, HIGH);
  digitalWrite(PH_IN2, HIGH);
  delay(1000); // Run the motor for 1 second

  // Stop the motor
  digitalWrite(EN_IN1, LOW);
  delay(1000); // Stop the motor for 1 second
}

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues

FAQs

Q: Can the DRV8874 be used to drive two motors? A: No, the DRV8874 is designed to drive a single brushed DC motor.

Q: What is the function of the VREF pin? A: The VREF pin sets the reference voltage for the current regulation feature, allowing control over the maximum current supplied to the motor.

Q: How do I put the DRV8874 into sleep mode? A: Drive the SLEEP pin low to put the DRV8874 into a low-power sleep mode.

Q: How can I reverse the motor direction? A: Change the logic levels on the PH/IN2 and EN/IN1 pins to reverse the motor direction.

For further assistance or technical support, please contact Texas Instruments customer support or refer to the DRV8874 datasheet for more detailed information.