0

DRV2605L connect multiple breakouts thru I2C
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

DRV2605L connect multiple breakouts thru I2C

by newardy01 on Wed May 04, 2016 2:55 pm

Hi folks,
I was wondering if it is possible to put multiple DRV2605L haptic breakouts on the I2C bus simultaneously? What is the addressing scheme for the boards. I have a large number haptic motors to control and would like to run a small number per board. I have not found any info yet on how to set the I2C address for each unique board.

Thanks for any help!!

newardy01
 
Posts: 3
Joined: Wed May 04, 2016 1:43 pm

Re: DRV2605L connect multiple breakouts thru I2C

by adafruit_support_rick on Sat May 07, 2016 3:42 pm

You can't change the address. You'll have to use an I2C multiplexer to run more than one of them:
https://www.adafruit.com/products/2717

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: DRV2605L connect multiple breakouts thru I2C

by spinoza1791 on Thu May 12, 2016 6:29 pm

Love your products! Five stars*****

Similar: Trying to make a haptic device using a receiving controller (Feather 32u4 with RFM69HCW Packet Radio - 433MHz) -> send I2C effects -> via TCA9548A I2C Multiplexer -> to multiple DRV2605L Haptic Motor breakouts (~12).

The TCA9548A sample code seems to "get" input from sensors, but I'm looking to "send" the I2C waveform "effects" to the vibration motors.

Any sample code to send the effect through the multiplexer to multiple DRV2605L motors?

Also, do the DRV2605L waveform effects work the same on Linear Resonant Actuators? And would a motor draw increase from 40mA to 75mA make a difference to the driver?

Thanks so much for any help!
Andrew Craton

spinoza1791
 
Posts: 8
Joined: Thu Apr 28, 2016 2:30 pm

Re: DRV2605L connect multiple breakouts thru I2C

by adafruit_support_rick on Fri May 13, 2016 10:26 am

The 'basic' example sketch writes waveforms to the DRV. You would simply add the code to switch the multiplexer.

The DRV is should work with an LRA, but we've only tested it with an ERM. Current draw shouldn't be a problem.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: DRV2605L connect multiple breakouts thru I2C

by spinoza1791 on Mon May 23, 2016 6:23 pm

Is there a way to rig the Adafruit 16-Channel Servo Driver to control the vibration motors instead?

spinoza1791
 
Posts: 8
Joined: Thu Apr 28, 2016 2:30 pm

Re: DRV2605L connect multiple breakouts thru I2C

by adafruit_support_rick on Tue May 24, 2016 9:51 am

No, I don't think that would work. But you might be able to get away with an I2C expander chip, like the MCP23017.
https://www.adafruit.com/products/732

I don't think the chip has the current capacity to drive multiple motors at once, but you could use transistors to actually power the motors.
https://learn.adafruit.com/adafruit-ard ... -dc-motors

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Re: DRV2605L connect multiple breakouts thru I2C

by newardy01 on Mon Jun 13, 2016 1:49 pm

Hi again folks,
Have been playing around with the I2C multiplexer. Seems to work but is glitchy. It's like it sometimes does not recognize all of the individual addresses ( when using tcaselect(number)), so I have to go through a process of addressing each one to "turn it on" then run my full program. Any ideas why? Also, where can I find a list of the DRV2605 library functions, sort of like software documentation, to see what is the total library content and how to use it, beyond the software examples?

Thanks for any help!!

newardy01
 
Posts: 3
Joined: Wed May 04, 2016 1:43 pm

Re: DRV2605L connect multiple breakouts thru I2C

by newardy01 on Mon Jun 13, 2016 2:01 pm

Hi again,

I forgot to ask another question related to the same project. I am using a bluefruit feather M0. I would like to prototype this using the PWM outputs. The product info says that there are 8 PWM outputs, however, the datasheet only shows 7 PWM's. Pins 5,6,9-13 are listed as PWM, which one is the last one. I can't find it !!!

Thank you!!!

newardy01
 
Posts: 3
Joined: Wed May 04, 2016 1:43 pm

Re: DRV2605L connect multiple breakouts thru I2C

by adafruit_support_rick on Mon Jun 13, 2016 6:36 pm

I believe the RX(0), TX(1), SDA(20), and SCL(21) pins are also PWM outputs.
Plus, A0 doubles as a DAC analog output.

You can refer to the DRV2605 library for the list of functions.

adafruit_support_rick
 
Posts: 35095
Joined: Tue Mar 15, 2011 11:42 am
Location: Buffalo, NY

Please be positive and constructive with your questions and comments.