Skip to main content
Visitor II
December 5, 2024
Solved

lsm6ds3trc free fall detect

  • December 5, 2024
  • 1 reply
  • 892 views

Dear,

I'm testing the lsm6ds3tr-c free fall function, but it's hard to tuning the threshold, i attach the current registor settings, I want to dectect the 1m free fall, can you give some guide? thanks a lot.

    This topic has been closed for replies.
    Best answer by Federica Bossi

    Hi @Jali ,

    Have you already tried to implement the simple example on the AN?

    1. Write 60h to CTRL1_XL // Turn on the accelerometer
    // ODR_XL = 416 Hz, FS_XL = ±2 g
    2. Write 81h to TAP_CFG // Enable interrupts and latch interrupt
    3. Write 00h to WAKE_UP_DUR // Set event duration (FF_DUR5 bit)
    4. Write 33h to FREE_FALL // Set FF threshold (FF_THS[2:0] = 011b)
    // Set six samples event duration (FF_DUR[5:0] = 000110b)
    5. Write 10h to MD1_CFG // FF interrupt driven to INT1 pin

     

    The INT1_INACT_STATE is needed for activity/inactivity detection.

     

     

    1 reply

    JaliAuthor
    Visitor II
    December 5, 2024

    if I need enable the INT1_INACT_ STATE of MD1_CFG(5Eh)?

    Technical Moderator
    December 12, 2024

    Hi @Jali ,

    Have you already tried to implement the simple example on the AN?

    1. Write 60h to CTRL1_XL // Turn on the accelerometer
    // ODR_XL = 416 Hz, FS_XL = ±2 g
    2. Write 81h to TAP_CFG // Enable interrupts and latch interrupt
    3. Write 00h to WAKE_UP_DUR // Set event duration (FF_DUR5 bit)
    4. Write 33h to FREE_FALL // Set FF threshold (FF_THS[2:0] = 011b)
    // Set six samples event duration (FF_DUR[5:0] = 000110b)
    5. Write 10h to MD1_CFG // FF interrupt driven to INT1 pin

     

    The INT1_INACT_STATE is needed for activity/inactivity detection.