DRV2605L

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
dreambal
 
Posts: 5
Joined: Fri Jul 15, 2022 3:33 am

DRV2605L

Post by dreambal »

I have some questions about Waveform Sequencer for DRV 2605L.
In this datasheet, it describes that when we set bit 7 (for Wait bit), WAV_FRM_SEQ[6:0] bit will be interpreted as a wait time.

But when I use setWaveform(uint8_t slot, uint8_t w) function and set bit 7, for example setWaveform (128,1) or (128,32), there is no change for wait time and the vibration pattern that is described in the Waveform Library Effects List.

Please let me know the below equation that is described in DRV 2605L .
(1) Delaytime = 10ms * WAV_FRM_SEQ [6:0]

And also, when I set this system like the above situation, why can't I change the vibration effects?

User avatar
adafruit_support_carter
 
Posts: 29153
Joined: Tue Nov 29, 2016 2:45 pm

Re: DRV2605L

Post by adafruit_support_carter »

But when I use setWaveform(uint8_t slot, uint8_t w) function and set bit 7, for example setWaveform (128,1) or (128,32),
The first parameter is the slot, 0-7. The second parameter is the waveform value.

Try something like

Code: Select all

drv.setWaveform(0, 118);  // strong buzz
dev.setWaveform(1, 1<<7 | 50); // 500ms delay
drv.setWaveform(2, 118);  // strong buzz
drv.setWaveform(3, 0);  // end
drv.go();

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”