Skip to main content
Visitor II
December 7, 2017
Question

LSM6DS3 implementation

  • December 7, 2017
  • 1 reply
  • 1482 views
Posted on December 07, 2017 at 07:11

Hi, I'm using the LSM6DS3 inertial module to implement 6D orientation detection, single tap & activity/inactivity detection.

I also need the module to go into sleep mode when no activity occurs.

Can you share the implementation flow of the above requirements?

If available, please share a sample code or readily available example code.

#accelerometer #lsm6ds3
    This topic has been closed for replies.

    1 reply

    Visitor II
    December 8, 2017
    Posted on December 08, 2017 at 05:22

    Thank you @

    Sterba.Petr

    I have gone through the links provided but am unable to get a clear understanding of the implementation flow. It will be helpful if you could provide me with a C code for the different accelerometer function implementations.

    ST Employee
    May 18, 2018
    Posted on May 18, 2018 at 15:31

    I don't have any other code than the one in the link.

    6D orientation detection, single/double tap and other sensor functions are implemented together in one LSM6DS3_MultiEvent example. Putting the application processor into sleep mode when there is no sensor activity is implemented in another LSM6DS3_FIFOLowPower example. Looking into main.c of these examples you'll see which functions from BSP layer are called, then looking into these BSP functions will route you to the HL (high level) driver functions which mostly perform the sensor action (using LL (low level) driver but you don't have to read LLD in details).