Adafruit DRV2605 Haptic Controller Breakout

Similar documents
Adafruit DRV2605 Haptic Controller Breakout

Adafruit I2C FRAM Breakout

Adafruit Si5351 Clock Generator Breakout

Adafruit Si7021 Temperature + Humidity Sensor

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Adafruit MMA8451 Accelerometer Breakout

Adafruit APDS9960 breakout

Adafruit MMA8451 Accelerometer Breakout

Adafruit 8x16 LED Matrix FeatherWing

Adafruit VL53L0X Time of Flight Micro-LIDAR Distance Sensor Breakout

Adafruit AM2320 Sensor

Monochrome OLED Breakouts

Adafruit MPRLS Ported Pressure Sensor Breakout

MCP Bit DAC Tutorial

Adafruit CCS811 Air Quality Sensor

i2c/spi LCD Backpack Created by lady ada Last updated on :11:04 PM UTC

Adafruit 1.27" and 1.5" Color OLED Breakout Board

Adafruit MMA8451 Accelerometer Breakout

Adafruit AMG8833 8x8 Thermal Camera Sensor

Adafruit AS channel Visible Light Sensor

Adafruit SGP30 TVOC/eCO2 Gas Sensor

Joy Featherwing. Created by Dean Miller. Last updated on :03:07 PM UTC

Adafruit Mini TFT " 160x80

IS31FL x9 Charlieplexed PWM LED Driver

Adafruit ATWINC1500 WiFi Breakout

Adafruit DS3231 Precision RTC Breakout

MCP Bit DAC Tutorial

Adafruit LIS3DH Triple-Axis Accelerometer Breakout

Introducing Adafruit Trellis

Adafruit ATWINC1500 WiFi Breakout

Adafruit ATWINC1500 WiFi Breakout

Adafruit 8x16 LED Matrix FeatherWing

0.96" mini Color OLED

1.8" TFT Display Breakout and Shield

Adafruit TPL5110 Power Timer Breakout

Adafruit Color Sensors

Adafruit 7-Segment LED FeatherWings

Adafruit PCF8523 Real Time Clock

Adafruit MAX31865 RTD PT100 or PT1000 Amplifier

Adafruit Capacitive Touch Sensor Breakouts

TSL2561 Luminosity Sensor

Adafruit PowerBoost 500 Shield

Flora Wearable GPS. Created by Becky Stern. Last updated on :32:36 PM UTC

Adafruit TPL5111 Reset Enable Timer Breakout

14-Segment Alpha-numeric LED FeatherWing

RGB LCD Shield. Created by lady ada. Last updated on :48:40 PM UTC

Adafruit Mini TFT with Joystick Featherwing

Introducing Circuit Playground

Introducing Circuit Playground

Adafruit HUZZAH32 - ESP32 Feather

Adafruit LED Backpacks

Adafruit 9-DOF IMU Breakout

Adafruit LED Backpacks

MLX90393 Wide-Range 3-Axis Magnetometer

Adafruit GPIO Expander Bonnet for Raspberry Pi Created by Kattni Rembor. Last updated on :12:47 PM UTC

FeatherWing Proto, Doubler and Tripler

Neon LED Signs. Created by John Park. Last updated on :11:09 PM UTC

Adafruit WINC1500 WiFi Shield for Arduino

FeatherWing Proto and Doubler

Adafruit 10-DOF IMU Breakout

Adafruit 3.5" 480x320 TFT FeatherWing

Adafruit 2.4" TFT FeatherWing

Adafruit TSL2591 High Dynamic Range Digital Light Sensor

Adafruit Pi Cobbler Kit

Adafruit eink Display Breakouts

Sino:bit with Arduino

Trellis 3D Printed Enclosure

Adafruit Feather 32u4 Basic Proto

Adafruit 3.5" 480x320 TFT FeatherWing

NeoMatrix 8x8 Word Clock

Adafruit Stepper + DC Motor FeatherWing

FLORA TV-B-Gone. Created by Becky Stern. Last updated on :32:57 PM UTC

MiniPOV4 - DIY Full-Color Persistence of Vision & Light-Painting Kit

Adafruit Flora Bluefruit LE

Naughty or Nice Machine

Adafruit IO Basics: ESP Arduino

Adafruit GPS Hat in Windows IoT Core

Bike Wheel POV Display

BLE Light Switch with Feather nrf52840 and Crickit

Circuit Playground Digital Input

DC & USB Boarduino Kits

Arduino Lesson 6. Digital Inputs

Adafruit LED Sequins. Created by Becky Stern. Last updated on :02:00 AM UTC

Adafruit Prototyping Pi Plate. Created by Ladyada

Audio Prank Gift Box. Created by Becky Stern. Last updated on :46:15 PM UTC

Toy Car Speed Timer. Created by Kirby Griese. Last updated on :13:49 PM UTC

Micro:bit with Arduino

Snake Charmer Box. Created by Dano Wall. Last updated on :07:25 PM UTC

Getting Started with FLORA

FLORA and GEMMA ICSP. Created by Becky Stern. Last updated on :42:16 PM UTC

Prophet 600 GliGli mod

Adafruit IO Basics: Servo

Fiddy - the FTDI Clip

Feather Weather Lamp. Created by Ruiz Brothers. Last updated on :54:26 PM UTC

Adafruit Feather 32u4 Adalogger

PyPortal NeoPixel Color Picker Created by Kattni Rembor. Last updated on :42:41 PM UTC

Interactive Gift Box. Created by codingpro. Last updated on :47:40 AM UTC

NeoPixel Ring Bangle Bracelet

Sewable NeoPixels. Created by Becky Stern. Last updated on :50:14 PM EDT

FLORA and GEMMA ICSP. Created by Becky Stern. Last updated on :30:55 PM EST

Transcription:

Adafruit DRV2605 Haptic Controller Breakout Created by lady ada Last updated on 2016-10-03 09:48:16 PM UTC

Guide Contents Guide Contents Overview Pinouts Power Pins I2C Pins Other! Assembly Prepare the header strip: Add the breakout board: And Solder! Attach Motor Wiring & Test Wiring for Arduino Download Adafruit_DRV2605 Load Demo Sketch Multiple Waveforms Audio Downloads Datasheets Schematic Fabrication print 2 3 6 6 7 7 8 8 9 10 11 13 13 14 14 17 17 19 19 19 19 Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 2 of 20

Overview The DRV2605 from TI is a fancy little motor driver. Rather than controlling a stepper motor or DC motor, its designed specifically for controlling haptic motors - buzzers and vibration motors. Normally one would just turn those kinds of motors on and off, but this driver has the ability to have various effects when driving a vibe motor. For example, ramping the vibration level up and down, 'click' effects, different buzzer levels, or even having the vibration follow a musical/audio input. Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 3 of 20

This chip is controlled over I2C - after initialization, a 'string' of multiple effects can be strung together in the chips memory and then triggered to actuate in a row. The built in effects are much much nicer than just 'on' and 'off' and will make your haptic project way nicer feeling. Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 4 of 20

According to the product page, it can be used with both LRA (Linear Resonance Actuator) and ERM (Eccentric Rotating Mass) type motors but we have only used it with our little vibration pancake ERM. (http://adafru.it/ddc) We put this nice chip onto a breakout board. it works with both 3V and 5V power/logic, we have code specifically for Arduino but porting it to any I2C-capable processor should be quite simple. Check it out and get buzzing! Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 5 of 20

Pinouts Power Pins The motor driver/controller on the breakout requires 3-5V power. You can use either, whichever logic level you use on your embedded processor Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 6 of 20

Vin - To power the board, give it the same power as the logic level of your microcontroller - e.g. for a 5V micro like Arduino, use 5V GND - common ground for power and logic I2C Pins Other! SCL - I2C clock pin, connect to your microcontrollers I2C clock line. This pin can be used with 3V or 5V logic, and there's a 10K pullup on this pin. SDA - I2C data pin, connect to your microcontrollers I2C data line. This pin can be used with 3V or 5V logic, and there's a 10K pullup on this pin. IN/TRIG - This is a general purpose pin that can be used for a couple different uses. One use is to read analog audio in to control the audio-to-haptic code. Another use is to 'trigger' the effects to go rather than sending a I2C command. Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 7 of 20

Assembly Prepare the header strip: Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 8 of 20

Cut the strip to length if necessary. It will be easier to solder if you insert it into a breadboard - long pins down Add the breakout board: Place the breakout board over the pins so that the short pins poke through the breakout pads Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 9 of 20

And Solder! Be sure to solder all pins for reliable electrical contact. Solder the longer power/data strip first (For tips on soldering, be sure to check out our Guide to Excellent Soldering (http://adafru.it/atk)). Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 10 of 20

You're done! Check your solder joints visually and continue onto the next steps Attach Motor We prefer to attach the little vibration motor directly to the Motor+ and Motor- pads Solder in place Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 11 of 20

Check your work and continue! Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 12 of 20

Wiring & Test Wiring for Arduino You can easily wire this breakout to any microcontroller, we'll be using an Arduino. For another kind of microcontroller, just make sure it has I2C capability, then port the code - its pretty simple stuff! Connect Vin to the power supply, 3-5V is fine. Use the same voltage that the microcontroller logic is based off of. For most Arduinos, that is 5V Connect GND to common power/data ground Connect the SCL pin to the I2C clock SCL pin on your Arduino. On an UNO & '328 based Arduino, this is also known as A5, on a Mega it is also known as digital 21 and on a Leonardo/Micro, digital 3 Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 13 of 20

Connect the SDA pin to the I2C data SDA pin on your Arduino. On an UNO & '328 based Arduino, this is also known as A4, on a Mega it is also known as digital 20 and on a Leonardo/Micro, digital 2 Download Adafruit_DRV2605 To begin controling the motor chip, you will need to download the Adafruit_DRV2605 Library from our github repository (http://adafru.it/eh0). You can do that by visiting the github repo and manually downloading or, easier, just click this button to download the zip Download Adafruit_DRV2605 Library http://adafru.it/eh1 Rename the uncompressed folder Adafruit_DRV2605 and check that the Adafruit_DRV2605 folder contains Adafruit_DRV2605.cpp and Adafruit_DRV2605.h Place the Adafruit_DRV2605 library folder your arduinosketchfolder/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. We also have a great tutorial on Arduino library installation at: http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use (http://adafru.it/aym) Load Demo Sketch Now you can open up File->Examples->Adafruit_DRV2605->basic and upload to your Arduino wired up to the breakout Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 14 of 20

Open up the serial console and hold the vibration motor between your fingers. Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 15 of 20

The sketch will play all 117 built in vibration effects in order. The full list with names is available in the DRV2605 datasheet (http://adafru.it/eh2) Here's a screenshot for quick reference Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 16 of 20

Multiple Waveforms You can also string together multiple effects in a row, up to 7. Check out the complex example sketch, and setwaveform for each slot. The last slot should be set to 0 to indicate its the end. When you are ready to place the full waveform sequence, send the go() command! Audio Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 17 of 20

You can also turn the DRV2605 into an audio-to-vibration driver. Use a 1uF capacitor in series to line level voltage audio into the IN pin, then load up the audio example sketch. If you don't feel anything, try boosting up the source audio volume, it has to be pretty loud! Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 18 of 20

Downloads EagleCAD PCB files on GitHub (http://adafru.it/oet) Fritzing object in the Adafruit Fritzing Library (http://adafru.it/ap3) Datasheets DRV2605 Datasheet (http://adafru.it/eh2) Schematic Click to embiggen Fabrication print Adafruit Industries https://learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout Page 19 of 20

Dimensions in Inches Adafruit Industries Last Updated: 2016-10-03 09:48:15 PM UTC Page 20 of 20