I'm hoping to get some help setting up the DRV2605 for audio to vibe. I believe I have the wiring correct, but I honestly am not certain. I have wired and tested my unit and motor as instructed for the demo sketch and have had no problems. When adding the audio IN and uploading the code provided in the library for audio-to-vibe, my haptic motor seems to be caught in continuous full strength vibration. The Wiring & Testing instructions on the Learn page reads:
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! learn.adafruit.com/adafruit-drv2605-haptic-controller-breakout/wiring-and-test
I am attempting to turn a live audio feed into vibration. I'm sure the problem is some form of operator error on my end. Please assist. I'm a newbie and trying my best.
DRV2605 audio to vibe
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: DRV2605 audio to vibe
Post a photo of your hardware and connections and we'll see what we can find.
800x600 images usually work best.
800x600 images usually work best.
- bartist
- Posts: 5
- Joined: Wed Apr 15, 2015 12:02 am
Re: DRV2605 audio to vibe
I'm sourcing audio from an MP3 player connected to an amp, then the amp to my board.
I appreciate the help!
<a href="https://www.flickr.com/photos/ ... ew 1"></a>
<a href="https://www.flickr.com/photos/ ... ew 3"></a>
<a href="https://www.flickr.com/photos/ ... ew 2"></a>
I appreciate the help!
<a href="https://www.flickr.com/photos/ ... ew 1"></a>
<a href="https://www.flickr.com/photos/ ... ew 3"></a>
<a href="https://www.flickr.com/photos/ ... ew 2"></a>
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: DRV2605 audio to vibe
Try taking the amp out of the signal path. That may be overdriving the input.
The DRV2605 doesn't pull any DC current on the audio input, and an iPod's output is more than strong enough to push the 1k cap around.
The DRV2605 doesn't pull any DC current on the audio input, and an iPod's output is more than strong enough to push the 1k cap around.
- bartist
- Posts: 5
- Joined: Wed Apr 15, 2015 12:02 am
Re: DRV2605 audio to vibe
Thanks. I have taken the amp out of the signal path and eventually the audio all together after trying various volume settings from my MP3 player. Regardless, once I upload the "audio" code from the built-in library, my haptic motor is set into a continuous max vibe. Perhaps I have a coding problem? Maybe I need to add in some information that is not built-in? Here is the code from the built-in library:
Code: Select all
#include <Wire.h>
#include "Adafruit_DRV2605.h"
Adafruit_DRV2605 drv;
void setup() {
Serial.begin(9600);
Serial.println("DRV2605 Audio responsive test");
drv.begin();
drv.setMode(DRV2605_MODE_AUDIOVIBE);
// ac coupled input, puts in 0.9V bias
drv.writeRegister8(DRV2605_REG_CONTROL1, 0x20);
// analog input
drv.writeRegister8(DRV2605_REG_CONTROL3, 0xA3);
}
void loop() {
}
- adafruit_support_mike
- Posts: 67454
- Joined: Thu Feb 11, 2010 2:51 pm
Re: DRV2605 audio to vibe
I don't have a DRV2605 on hand to test the code right now.. let me check around and see if someone else has suggestions.
- adafruitguy
- Posts: 206
- Joined: Sat Jun 07, 2014 7:52 am
Re: DRV2605 audio to vibe
Was able to get running. MP3 (right channel) out to cap (1uF@50V) to "IN" on DRV2605L, & MP3 shared ground to GND. Maybe you blew "IN" with the power from the amp over driving?
- Attachments
-
- Overhead Wiring Shot
- HapticOverhead.jpeg (343.32 KiB) Viewed 1279 times
-
- Zoom on the DRV2605L
- HapticNear.jpeg (287.6 KiB) Viewed 1279 times
Last edited by adafruitguy on Thu Apr 23, 2015 9:38 am, edited 1 time in total.
- adafruitguy
- Posts: 206
- Joined: Sat Jun 07, 2014 7:52 am
Re: DRV2605 audio to vibe
Added an AMP (MAX98306) too. Pro Tip: "AC⚡️DC Thunderstruck" is more than sufficient for the Motor Disc (1201) to shake itself loose from solder joints if not stuck down with adhesive backing.
- Attachments
-
- Amp In Parallel from MP3 Overhead
- AmpTooOverhead.jpeg (321.51 KiB) Viewed 1278 times
-
- Amp In Parallel from MP3 Close-up
- AmpTooNear.jpeg (296.79 KiB) Viewed 1278 times
- bartist
- Posts: 5
- Joined: Wed Apr 15, 2015 12:02 am
Re: DRV2605 audio to vibe
Thanks, adafruitguy.
I got it working with a new board. I fried the input on the original with the amp feed.
I got it working with a new board. I fried the input on the original with the amp feed.
Please be positive and constructive with your questions and comments.