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

Battery-Powered Vibration Motor Control with ESP32 and DRV2605L

View and Edit Project In Cirkit DesignerImage of Battery-Powered Vibration Motor Control with ESP32 and DRV2605L

Circuit Documentation

Summary

This circuit is designed to control two vibration motors using an Adafruit DRV2605L haptic driver, which is managed by an Adafruit HUZZAH32 ESP32 Feather microcontroller. The circuit is powered by a 2000mAh battery. Additionally, a 2.2 inch Basic Flex Resistor and a 10k Ohm resistor are used in the circuit.

Component List

  1. 2000mAh Battery

    • Pins: VCC, GND
    • Description: Provides power to the circuit.
    • Purpose: Supplies power to the microcontroller and other components.
  2. Vibration Motor

    • Pins: POS, NEG
    • Description: Small motor that provides vibration feedback.
    • Purpose: Used to create haptic feedback.
  3. Adafruit DRV2605L

    • Pins: VIN, GND, SCL, SDA, IN/TRIG, OUT+, OUT-
    • Description: Haptic driver for controlling vibration motors.
    • Purpose: Drives the vibration motors based on commands from the microcontroller.
  4. Resistor

    • Pins: pin1, pin2
    • Description: 10k Ohm resistor.
    • Purpose: Used for current limiting or voltage division.
  5. Terminal PCB 2 Pin

    • Pins: Pin A, Pin B
    • Description: Terminal block for connecting wires.
    • Purpose: Provides a convenient way to connect and disconnect wires.
  6. 2.2 inch Basic Flex Resistor

    • Pins: Pin 2, pin 1
    • Description: Flexible resistor.
    • Purpose: Used for sensing flex or bend.
  7. Adafruit HUZZAH32 ESP32 Feather

    • Pins: IO21, IO17, IO16, MISO, MOSI, SCK, A5_IO4, A4_IO36, A3_I39, A2_I34, A1_DAC1, A0_DAC2, GND, N/C, 3.3V, RESET, VBAT, EN, VBUS, IO13_A12, IO12_A11, IO27_A10, IO33_A9, IO15_A8, IO32_A7, IO14_A6, SCL, SDA
    • Description: ESP32-based microcontroller.
    • Purpose: Controls the haptic driver and processes input from the flex resistor.

Wiring Details

2000mAh Battery

Vibration Motor 1

Vibration Motor 2

Adafruit DRV2605L

Resistor

Terminal PCB 2 Pin

2.2 inch Basic Flex Resistor

Adafruit HUZZAH32 ESP32 Feather

Documented Code

sketch.ino

void setup() {
  // put your setup code here, to run once:

}

void loop() {
  // put your main code here, to run repeatedly:

}

documentation.txt