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

How to Use DRV8833: Examples, Pinouts, and Specs

Image of DRV8833Design with DRV8833 in Cirkit Designer

Introduction

The DRV8833 is a dual H-bridge motor driver designed to control the direction and speed of DC motors and stepper motors. It is a compact and efficient solution for driving motors in robotics, automation, and other motor control applications. With a supply voltage range of 2.7V to 10.8V and the ability to deliver up to 1.5A per channel, the DRV8833 is ideal for low- to medium-power motor control tasks. Its small size and versatile features make it a popular choice for hobbyists and professionals alike.

Explore Projects Built with DRV8833

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 C3 Controlled Robot with VL6180 Time of Flight Sensor: A project utilizing DRV8833 in a practical application
ESP32 C3 Controlled Robot with VL6180 Time of Flight Sensor

This circuit is designed to control a pair of DC gearmotors using a DRV8833 motor driver, with an ESP32 C3 microcontroller as the control unit. The microcontroller also interfaces with an Adafruit VL6180 Time of Flight sensor for distance measurement. The embedded code on the ESP32 C3 facilitates basic motor control (forward and backward) and reads distance data from the sensor, which is likely used for obstacle detection or range finding in a robotic application.

Open Project in Cirkit Designer
Image of ATmega328P Microcontroller-Driven Stepper Motor with DRV8825: A project utilizing DRV8833 in a practical application
ATmega328P Microcontroller-Driven Stepper Motor with DRV8825

This circuit is designed to control a bipolar stepper motor using a DRV8825 stepper motor driver, which is interfaced with a Nano 3.0 ATmega328P microcontroller. The microcontroller sends step and direction signals to the DRV8825, which in turn drives the stepper motor's coils. Power is supplied to the system through a 5V adapter for the logic and a DC power source for the motor, with an electrolytic capacitor for voltage smoothing on the motor supply.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

The DRV8833 has 16 pins, with the following configuration:

Pin Number Pin Name Description
1 AOUT1 Output 1 for H-bridge A
2 AOUT2 Output 2 for H-bridge A
3 VM Motor power supply (2.7V to 10.8V)
4 GND Ground connection
5 BOUT1 Output 1 for H-bridge B
6 BOUT2 Output 2 for H-bridge B
7 VCC Logic power supply (1.8V to 7V)
8 ENABLEB Enable pin for H-bridge B (active high)
9 PHASEB Controls the direction of H-bridge B
10 ENABLEA Enable pin for H-bridge A (active high)
11 PHASEA Controls the direction of H-bridge A
12 NC No connection
13 NC No connection
14 NC No connection
15 NC No connection
16 NC No connection

Usage Instructions

How to Use the DRV8833 in a Circuit

  1. Power Supply:

    • Connect the motor power supply (VM) to a voltage source between 2.7V and 10.8V.
    • Connect the logic power supply (VCC) to a voltage source between 1.8V and 7V.
    • Ensure that the ground (GND) is common for both the motor and logic power supplies.
  2. Motor Connections:

    • Connect the motor terminals to the output pins (AOUT1, AOUT2 for motor A; BOUT1, BOUT2 for motor B).
  3. Control Signals:

    • Use the ENABLEA and ENABLEB pins to enable or disable the respective H-bridges.
    • Use the PHASEA and PHASEB pins to control the direction of the motors.
    • Apply a PWM signal to the ENABLE pins to control motor speed.
  4. Decoupling Capacitors:

    • Place a decoupling capacitor (e.g., 0.1 µF) close to the VM and VCC pins to reduce noise.

Example: Connecting to an Arduino UNO

Below is an example of how to control a DC motor using the DRV8833 and an Arduino UNO.

Circuit Connections

Arduino Code

// DRV8833 Motor Driver Example
// Controls the speed and direction of a DC motor using Arduino

#define ENABLEA 9  // PWM pin for motor speed control
#define PHASEA 8   // Digital pin for motor direction control

void setup() {
  pinMode(ENABLEA, OUTPUT); // Set ENABLEA as output
  pinMode(PHASEA, OUTPUT);  // Set PHASEA as output
}

void loop() {
  // Rotate motor forward at 50% speed
  digitalWrite(PHASEA, HIGH); // Set direction forward
  analogWrite(ENABLEA, 128);  // Set speed (128/255 = 50%)
  delay(2000);                // Run for 2 seconds

  // Rotate motor backward at 75% speed
  digitalWrite(PHASEA, LOW);  // Set direction backward
  analogWrite(ENABLEA, 192);  // Set speed (192/255 = 75%)
  delay(2000);                // Run for 2 seconds

  // Stop the motor
  analogWrite(ENABLEA, 0);    // Set speed to 0
  delay(2000);                // Wait for 2 seconds
}

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues and Solutions

  1. Motor Not Spinning:

    • Check the power supply connections (VM and VCC).
    • Verify that the ENABLE pins are set high.
    • Ensure the motor is properly connected to the output pins.
  2. Motor Spins in the Wrong Direction:

    • Reverse the logic level on the PHASE pin for the corresponding H-bridge.
  3. Motor Speed is Inconsistent:

    • Check the PWM signal for noise or instability.
    • Ensure the power supply voltage is stable and within the specified range.
  4. Overheating:

    • Reduce the motor load or current draw.
    • Add a heatsink or improve ventilation around the DRV8833.
  5. No Output from the Driver:

    • Verify that the logic voltage (VCC) is within the specified range.
    • Check for any short circuits or incorrect wiring.

FAQs

Q: Can the DRV8833 drive stepper motors?
A: Yes, the DRV8833 can drive stepper motors by controlling both H-bridges. You will need to generate the appropriate step and direction signals.

Q: What is the maximum PWM frequency supported?
A: The DRV8833 supports PWM frequencies up to 250 kHz.

Q: Can I use the DRV8833 with a 3.3V microcontroller?
A: Yes, the DRV8833 is compatible with logic levels as low as 1.8V, making it suitable for 3.3V microcontrollers.

Q: Does the DRV8833 have built-in protection features?
A: Yes, it includes thermal shutdown, overcurrent protection, and undervoltage lockout for safe operation.