Skip to main content
Visitor II
May 17, 2018
Question

LIS3DH Step count calculation

  • May 17, 2018
  • 1 reply
  • 1026 views
Posted on May 17, 2018 at 11:50

Dear sir,

Please tell me how to calculate the step count, distance,speed,calories. On the basis of X,Y,Z Values..

Regards,

Manoj Hiwarkar

    This topic has been closed for replies.

    1 reply

    ST Employee
    May 22, 2018
    Posted on May 22, 2018 at 21:11

    It is not so easy, but as start you should use our Pedometer (MotionPM) or Pedometer for wrist devices (MotionPW) libraries which are available in

    http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-mems1.html

    package.

    These libraries are able to count steps based on accleration data, then you can multiply the step count by average step lenght and get disctance, similarly the speed.