Skip to main content
Visitor II
October 6, 2017
Question

Trying to play with the falldetection lib on a sensortile

  • October 6, 2017
  • 1 reply
  • 1611 views
Posted on October 06, 2017 at 02:43

HAL is initialized.  clock is initialized.  I can make HAL calls but MotionFD_Initialize hangs.  No docs, no info.  Anyone have *any* info about this?  The init code is just looping happily...

    This topic has been closed for replies.

    1 reply

    ST Employee
    October 6, 2017
    Posted on October 06, 2017 at 09:35

    Hello Larry,

    please enable clock for CRC unit in the microcontroller, it is needed for the algorithm initialization.

    Visitor II
    October 10, 2017
    Posted on October 10, 2017 at 00:43

    Well, I switched HW to the board that the falldetection app was designed for (x-nucleo-iks01$2).  Everything built and downloaded and runs.  The unicleo gui connects happily.  I can see lots of user messages streaming by - pressure, temp, hum, accel, gyro, magnetometer.  My question is: How do I make it detect a fall?  I have tried dropping it 2-4 feet, onto my lap, in a towel, etc.  I never see the app detect a fall.  Any guidance on this lib would be helpful...

    Thx - Larry

    ST Employee
    October 10, 2017
    Posted on October 10, 2017 at 09:32

    Indeed, to simulate the fall can by quite tricky.

    I will explain a method which work for us:

    - Wrap the board into some foam to avoid a damage when the board hit the ground

    - Hold the board in vertical position (USB connector down) 

    - Drop the board

    - Let the board still on the ground for a while

    To evaluate the impact as man fall the altitude must change about ~80cm, the impact should be higher than 3-4g and the board must remain still after the impact.

    Here is one example of fall detection:

    0690X00000608OWQAY.png