I am trying to set the DRV2605L to LRA open loop and set the resonant frequency for an LRA with a resonant frequency outside of the auto calibrate range. Per pg. 14 of the datasheet:
" For the LRA, the DRV2605 device automatically tracks the resonance frequency unless the LRA_OPEN_LOOP
bit in register 0x1D is set."
It's not clear how to set the bit as 0x1D also contains other functions such as ERM_OPEN_LOOP, SUPPLY_COMP_DIS, etc. The programming section on pg. 26 of the datasheet advises:
"To configure the DRV2605 device in LRA open-loop operation, the LRA must be selected by writing the
N_ERM_LRA bit to 1 in register 0x1A, and the LRA_OPEN_LOOP bit to 1 in register 0x1D."
What code would write the N-ERM_LRA bit to 0 and the LRA_OPEN_LOOP bit to 1?
Trying to understand and get a solution from from similar code, I found this in the audio example sketch:
Code: Select all
// ac coupled input, puts in 0.9V bias
drv.writeRegister8(DRV2605_REG_CONTROL1, 0x20);
// analog input
drv.writeRegister8(DRV2605_REG_CONTROL3, 0xA3);
Thank you.