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

How to Use DRV2605 Motor Controller: Examples, Pinouts, and Specs

Image of DRV2605 Motor ControllerDesign with DRV2605 Motor Controller in Cirkit Designer

Introduction

The DRV2605 is a haptic motor driver designed to provide precise control of vibration motors, including both Linear Resonant Actuators (LRAs) and Eccentric Rotating Mass (ERM) motors. It features an integrated library of pre-programmed haptic waveforms, making it ideal for creating customizable haptic feedback effects. The device communicates via the I2C interface, enabling seamless integration with microcontrollers and other digital systems.

Explore Projects Built with DRV2605 Motor Controller

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 CNC Machine Control System with Dual tb6600 Stepper Drivers and MAch3 USB Interface: A project utilizing DRV2605 Motor Controller in a practical application
CNC Machine Control System with Dual tb6600 Stepper Drivers and MAch3 USB Interface

This circuit appears to be a control system for a CNC machine or similar automated equipment. It includes two tb6600 Micro Stepping Motor Drivers for controlling stepper motors, a DC power source with a step-down buck converter to provide the necessary voltage levels, and a 4-channel relay module for switching higher power loads. The MAch3 CNC USB interface suggests the system is designed to interface with computer numerical control software, and the RMCS_3001 BLDC Driver indicates the presence of a brushless DC motor control. The Tiva C launchpad microcontroller and various connectors imply that the system is modular and may be programmable for specific automation tasks.

Open Project in Cirkit Designer
Image of STM32F407-Controlled Robotic System with Touch Interface and Motor Actuation: A project utilizing DRV2605 Motor Controller in a practical application
STM32F407-Controlled Robotic System with Touch Interface and Motor Actuation

This circuit is designed to control multiple DC motors using L298N motor drivers, which are interfaced with an STM32F407 Discovery Kit microcontroller. The microcontroller receives input from a rotary encoder, multiple touch sensors, a joystick module, and an IR sensor to determine the motors' behavior. A 12V power supply provides power to the motor drivers, which is regulated for other components by MT3608 step-up converters, and the entire system is powered by an AC supply connected to the 12V power supply unit.

Open Project in Cirkit Designer

Common Applications

Technical Specifications

The DRV2605 is a versatile and feature-rich motor driver. Below are its key technical details:

Key Features

Pin Configuration

The DRV2605 has 10 pins, as described in the table below:

Pin Name Type Description
VDD Power Supply voltage (2.5V to 5.5V).
GND Ground Ground connection.
IN/TRIG Input Trigger input for external waveform playback (optional).
SDA I2C Data Serial data line for I2C communication.
SCL I2C Clock Serial clock line for I2C communication.
EN Input Enable pin. Active high to enable the device.
OUT+ Output Positive output to the motor.
OUT- Output Negative output to the motor.
NC No Connection Not connected internally. Leave floating or connect to GND.
VREG Output Internal regulator output. Connect a 1µF capacitor to GND for stability.

Usage Instructions

The DRV2605 is straightforward to use in a circuit. Below are the steps and considerations for integrating it into your design:

Basic Circuit Setup

  1. Power Supply: Connect the VDD pin to a 2.5V to 5.5V power source and GND to ground.
  2. Motor Connection: Connect the vibration motor to the OUT+ and OUT- pins.
  3. I2C Communication: Connect the SDA and SCL pins to the corresponding I2C lines of your microcontroller. Use pull-up resistors (typically 4.7kΩ) on both lines.
  4. Enable Pin: Pull the EN pin high to enable the device.
  5. Decoupling Capacitor: Place a 1µF capacitor between VREG and GND for stability.

Programming the DRV2605

The DRV2605 is controlled via I2C. Below is an example of how to initialize and play a haptic effect using an Arduino UNO:

#include <Wire.h>

// DRV2605 I2C address
#define DRV2605_ADDR 0x5A

void setup() {
  Wire.begin(); // Initialize I2C communication
  Serial.begin(9600); // Initialize serial communication for debugging

  // Initialize DRV2605
  Wire.beginTransmission(DRV2605_ADDR);
  Wire.write(0x01); // Mode register
  Wire.write(0x00); // Set to internal trigger mode
  Wire.endTransmission();

  Wire.beginTransmission(DRV2605_ADDR);
  Wire.write(0x03); // Library selection register
  Wire.write(0x06); // Use LRA library
  Wire.endTransmission();

  Wire.beginTransmission(DRV2605_ADDR);
  Wire.write(0x04); // Waveform sequence register
  Wire.write(0x01); // Play waveform 1
  Wire.endTransmission();

  Wire.beginTransmission(DRV2605_ADDR);
  Wire.write(0x0C); // Go register
  Wire.write(0x01); // Start playback
  Wire.endTransmission();

  Serial.println("Haptic effect triggered!");
}

void loop() {
  // No continuous actions required in this example
}

Best Practices

Troubleshooting and FAQs

Common Issues

  1. Motor Not Vibrating

    • Cause: Incorrect wiring or motor type mismatch.
    • Solution: Verify motor connections and ensure the motor is compatible (ERM or LRA).
  2. I2C Communication Fails

    • Cause: Incorrect I2C address or missing pull-up resistors.
    • Solution: Check the I2C address (default is 0x5A) and ensure pull-up resistors are present.
  3. Device Not Responding

    • Cause: EN pin not pulled high or insufficient power supply.
    • Solution: Ensure the EN pin is high and the power supply meets the voltage requirements.
  4. Unexpected Behavior

    • Cause: Incorrect register configuration.
    • Solution: Double-check the initialization sequence and register values.

FAQs

Q1: Can the DRV2605 drive multiple motors simultaneously?
A1: No, the DRV2605 is designed to drive a single motor at a time.

Q2: How do I select a specific haptic effect?
A2: Write the desired waveform ID to the waveform sequence register (0x04). Refer to the datasheet for a list of waveform IDs.

Q3: Can I use the DRV2605 with a 3.3V microcontroller?
A3: Yes, the DRV2605 supports a wide operating voltage range (2.5V to 5.5V) and is compatible with 3.3V logic levels.

Q4: What is the difference between ERM and LRA motors?
A4: ERM motors create vibrations by spinning an unbalanced mass, while LRA motors use a spring-mass system for linear motion. The DRV2605 supports both types.

By following this documentation, you can effectively integrate the DRV2605 into your projects and create rich haptic feedback experiences.