This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRV2605 Waveform Library

Other Parts Discussed in Thread: DRV2605

We recently purchased Adafruit DRV2605 Haptic Controller Breakout  that includes Arduino Uno and 11.2 Waveform Library Effects.  We would like to include in the 11.2 Waveform Library, the Heartbeat Waveform which is in the DRV2605VM-BT from TI.  Is this possible?

Best Regards,

Ron Chase

  • Ron,

    The Heartbeat waveform is made with a DoubleClick Waveform (Effect 10). To get the bpm analagous to a hearbeat, adjust the duration between the effect using the trigger pin or the I2C Go bit.

    Regards,

    Gautham Ramachandran

    Apps. Engineer- Haptics.

  • Gautham,
    Thank you for your reply. I am not familiar with how to manipulate time duration between the effects using the trigger pin or the 12C bit. Is there a tutorial available? I have no programming skills so just following the instructions supplied with the Arduino package for uploading the waveforms and driving an ERM.
    Thanks,
    Ron
  • Ron,

    I would start with the Programming Section on the Datasheet  (8.5.8.2.5 Waveform Sequencer: proddms.itg.ti.com/.../slos854c.pdf)

    There is a setup guide that talks about the overall setup of the DRV2605.  Refer to section 3.2 --> www.ti.com/.../sloa189.pdf

    For your application, Load the Double Click waveform onto the waveform sequencer (0x04 with waveform) register over I2C --> Send a GO command every so often(0x0C, 0x01) and that should get you the heartbeat. 

    Note that the DRV will fire off the contents in the sequencer when you hit the Go bit. You don't have to reload the sequencer till you wish to change the content of the sequencer.

    If you want to use the Trigger function: Load the sequencer with the waveform and setup to external trigger according to 8.5.8.2.6 Waveform Triggers from the datasheet.

    Thereafter you can just toggle the GPIO and that will play the effect as well. :)

    Regards,

    Gautham Ramachandran

    Apps. Engineer - Haptics