SLOA358 July   2025 DRV2605L

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2DRV2605L Audio-to-Haptic Mode Overview and Advantages
  6. 3Hardware Test Setup and Configuration
  7. 4Waveform Test Results and Analysis (Audio-to-Haptic Mode)
  8. 5Mode Switching Behavior (Audio-to-Haptic vs. Real-Time Playback)
  9. 6Integrating and Switching Modes in DRV2605L: Audio-to-Haptic and Built-in Library Mode
  10. 7Observations and Recommendations on Mode Switching
  11. 8Summary and Future Applications
  12. 9References

Mode Switching Behavior (Audio-to-Haptic vs. Real-Time Playback)

After characterizing the Audio-to-Haptic mode alone, the behavior when switching between Audio-to-Haptic (A-V) mode and manual drive modes was examined. In many applications, the system can normally run in Audio-to-Haptic mode for ambient feedback, but then temporarily switch to a direct haptic mode (like real-time playback or playing a library effect) when a specific event occurs that has a dedicated rumble pattern. The DRV2605L supports on-the-fly mode switching through the Mode register, but this is important to manage the transition to avoid any undesirable artifacts (like a momentary jolt or a pause in vibration).

Several scenarios were tested: switching from A-V mode to Real-Time Playback (RTP) mode, and vice versa, under conditions with and without ongoing audio input. The key observations were:

Understanding the Modes: In Audio-to-Haptic (A-V) mode, the DRV2605L autonomously drives the LRA from the audio input – no explicit I²C commands are needed to generate vibrations, as long as audio is present. In Real-Time Playback (RTP) mode, the DRV2605L instead takes direct commands: the host writes an 8-bit value to the RTP input register (0x02) at any time to specify the desired drive strength (effectively commanding the PWM output on the LRA). RTP mode is useful for generating arbitrary waveforms or playing back effects under host control. There is also a Waveform Sequencer/Library mode where the host can trigger predefined effect sequences (by writing to registers 0x04–0x0B for sequence and setting mode 0x00), but that is conceptually similar to RTP for the purpose of switching (the driver isn’t using the audio input in that case).

  • Switching from A-V to RTP with No Audio Present: If the audio input is silent at the time of switching to A-V mode, then effectively nothing happens (the driver goes into audio mode but since there is no audio, this outputs nothing). When the system switches from A-V to RTP mode, if no manual drive command is given, the vibration remains off. This scenario is trivial as there is no conflict – as soon as audio starts or an RTP value is written, the corresponding output takes effect.
  • Switching from A-V to RTP with Ongoing Audio: This is a more interesting case. Imagine the device is in A-V mode with some continuous background audio, and then the system wants to take over and play a specific haptic effect through RTP or the library. In A-V mode, the DRV2605L is actively driving the LRA based on audio. At the moment of switching to RTP mode, if the driver immediately stops driving (because no RTP value is set yet), the LRA can abruptly halt, potentially causing a discontinuity. To avoid a sudden stop, the transition must be handled carefully.

For example, Figure 5-1 captures a scenario where the device was initially in RTP mode (with no vibration output commanded), and we switched to Audio-to-Haptic mode while a 100Hz audio tone at 50% volume was already playing into the DRV2605L. The top half of the scope trace shows the blue audio waveform continuing through the switch. The bottom (red) trace is the LRA output. You can see that once A-V mode is enabled (around the switch moment), the output starts oscillating and within 1 cycle reaches the expected amplitude for that audio input. This confirms the device smoothly began audio-driven operation (with just a minor initial dip due to the algorithm’s settling).

Scope capture of switching from RTP mode to Audio-to-Haptic mode while a 100Hz audio tone is playing. Time 0 on the horizontal axis is the moment of mode switch. The blue trace (CH2) is the audio input (14.2mV RMS, about 50% volume) which is continuous before and after the switch. The magenta/yellow traces (LRA differential output) were flat during RTP mode (no drive commanded), then begin oscillating once Audio-to-Haptic mode engages. A brief amplitude ramp-up is observed immediately after t=0, as the DRV2605L’s audio algorithm takes over. By about 40–50ms after the switch, the vibration output has reached steady-state, matching the audio’s amplitude. The transition is smooth, with no large spikes or discontinuities.

 Switching From RTP Mode to Audio-to-Haptic
                    Mode While a 100Hz Audio Tone is PlayingFigure 5-1 Switching From RTP Mode to Audio-to-Haptic Mode While a 100Hz Audio Tone is Playing
 Switching From Audio-to-Haptic Mode to RTP
                    Mode, Using the Technique of Zeroing the Drive at Switch-overFigure 5-2 Switching From Audio-to-Haptic Mode to RTP Mode, Using the Technique of Zeroing the Drive at Switch-over

In summary, to achieve glitch-free transitions between automatic audio haptics and manual control, the host needs to manage the RTP register value at switch time (either matching the current level or setting this to zero for an intentional pause) and be mindful of the short mode-switch delay. With these practices, the DRV2605L can seamlessly hand over control without the user feeling any discontinuity in vibration.