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.

編譯器/ DRV2605L:DRV2605 LRA Initialization & Auto-calibration on LRA motor

Part Number: DRV2605L
Other Parts Discussed in Thread: DRV2605,

Tool/software: TI C/C++ Compiler

Dear sir, 

Our SW key LRA Initialization Example and LRA Auto-Calibration Example base on the DRV2605 Setup Guide, but the LRA motor still can not work.
We use the DRV2605 & LRA motor on the public version. Is there sample code available or detailed setup SOP?

B.R,

Ken

  • Hi, Ken,

    I attached another code to perform an auto-calibration with the DRV2605. It should work correctly with your LRA motor. Otherwise, I would recommend to replace your DRV2605 or LRA units.

    Exported at :5/13/2019 10:37:21 AM
    	========Register Dump Start========
    		Reg:[0x0]	=	0xe0		Status
    		Reg:[0x1]	=	0x7		Mode
    		Reg:[0x2]	=	0x0		Real-Time Playback Input
    		Reg:[0x3]	=	0x6		Library Selection
    		Reg:[0x4]	=	0x4		Waveform Sequencer 1
    		Reg:[0x5]	=	0x0		Waveform Sequencer 2
    		Reg:[0x6]	=	0x0		Waveform Sequencer 3
    		Reg:[0x7]	=	0x0		Waveform Sequencer 4
    		Reg:[0x8]	=	0x0		Waveform Sequencer 5
    		Reg:[0x9]	=	0x0		Waveform Sequencer 6
    		Reg:[0xa]	=	0x0		Waveform Sequencer 7
    		Reg:[0xb]	=	0x0		Waveform Sequencer 8
    		Reg:[0xc]	=	0x01		GO
    		Reg:[0xd]	=	0x0		OverDrive Time Offset
    		Reg:[0xe]	=	0x0		Sustain Time Offset, Positive
    		Reg:[0xf]	=	0x0		Sustain Time Offset, Negative
    		Reg:[0x10]	=	0x0		Break Time Offset
    		Reg:[0x11]	=	0x5		Audio-to-Vibe Control
    		Reg:[0x12]	=	0x19		Audio-to-Vibe Minimum Input Level
    		Reg:[0x13]	=	0x64		Audio-to-Vibe Maximum Input Level
    		Reg:[0x14]	=	0x19		Audio-to-Vibe Minimum Output Drive
    		Reg:[0x15]	=	0xff		Audio-to-Vibe Maximum Output Drive
    		Reg:[0x16]	=	0x3d		Rated Voltage
    		Reg:[0x17]	=	0xaa		Overdrive Clamp Voltage
    		Reg:[0x18]	=	0x6		Auto Calibration Compensation Result
    		Reg:[0x19]	=	0xc6		Auto Calibration Back-EMF Result
    		Reg:[0x1a]	=	0xa6		Feedback Control
    		Reg:[0x1b]	=	0x93		Control1
    		Reg:[0x1c]	=	0xf5		Control2
    		Reg:[0x1d]	=	0x80		Control3
    		Reg:[0x1e]	=	0x20		Control4
    		Reg:[0x1f]	=	0x40		Control5
    		Reg:[0x20]	=	0x30		LRA Open Loop Period
    		Reg:[0x21]	=	0xce		VBAT Voltage Monitor
    		Reg:[0x22]	=	0x3c		LRA Resonance Period
    	========Register Dump End========
    

    Best regards,
    Luis Fernando Rodríguez S.

  • Hi Luis,

    Does it need any initial sequence for DRV2605?

    My procedure as below:

    1.initialized it as "DRV2605 Setup guide" page.6 

    2.set 0x0c to 1

    I suppose LRA should work after the procedure above.

    But, I can not feel LRA vibrated but ERM.

    If there anything wrong with my procedure?


  • Hi Luis,

    Does it need any initial sequence for DRV2605?
    My procedure as below:
    1.initialized it as "DRV2605 Setup guide" page.6 
    2.set 0x0c to 1
    I suppose LRA should work after the procedure above.
    But, I can not feel LRA vibrated but ERM.

    If there anything wrong with my procedure?

    BR

    Ken

  • Hi, Ken,

    Is the LRA mode been selected (register 0x1A) before performing the auto-calibration procedure? If so, could you provide details about the schematic and LRA unit? Have you also tried with different units (LRA and DRV2605L) just to confirm that they are not damaged.

    Best regards,
    Luis Fernando Rodríguez S.

  • Hi Luis,

    Yes, register 0x1A set to 0xB6 before performing the auto-calibration procedure,

    please help confirm the procedure, which one is correct
    1. LRA Initialization("DRV2605 Setup guide" page 6)==>set 0x0c to 1
    2. LRA Initialization("DRV2605 Setup guide"page 6)==> auto-calibration(your txt file)==>set 0x0c to 1
    3. only auto-calibration(your txt file)==>set 0x0c to 1

    PS:If we want to change the Vibration waveforms embedded, How to se?

    We use our MCU to connect DRV2605 EVM without MSP430 MCU, so no LRA motor spec.
    I attached the new vibrator, please help confirm how to set.
    Thanks.


    BR
    KenFZ-F003(LRA-0825 )SPEC_1.0~20.03.pdf

  • Hi, Ken,

    I would recommend to just try with my config file. This is just to ensure that the actuator works correctly. I mean, you should just get a vibration on your actuator load and this will confirm the actuator is not the problem.

    Regarding the vibrations waveforms, which EVM options are you using? Are you using the internal ROM memory? The waveforms of the ROM memory cannot be modified. However, if you refer to the MSP430 waveforms, you can just remove jumper JP1 and connect the PWM signal to the PWM test point as shown in the figure 18 of the datasheet:

    http://www.ti.com/lit/ug/slou348b/slou348b.pdf#page=17

    Best regards,
    Luis Fernando Rodríguez S.

  • Hi Luis, 

     After replace the DRV2605, the actuator works correctly with your config file.

    When we get a new LRA motor, what should be the correct procedure?

    First step is Auto-Calibration or Initialization.

    How to access the relevant parameters of the motor?

    Please share us the setup information. 

    thanks.

     

    Best regards,

    Ken

  • Hi, Ken,

    I would recommend to start with the parameters definition:

    - Determine which mode will be used (ERM, LRA) and if open loop or closed loop will be used.
    - Set the parameters (rated voltage, overdrive voltage clamp, calibration time, etc.).
    - If closed loop is used, perform an auto calibration.
    - Select the mode to use (internal or external trigger, PWM input, audio-to-vibe, RTP, etc.).

    For more details, please consult 9.3 Initialization Setup section of the datasheet ( https://www.ti.com/lit/ds/symlink/drv2605l.pdf#page=59 )

    I also suggest to take a look at this configuration guide for more details on how to configure the device:

    https://www.ti.com/lit/zip/slor114

    Best regards,
    Luis Fernando Rodríguez S.