cancel
Showing results for 
Search instead for 
Did you mean: 

LSM6DS3 implementation

sreehari nair
Associate
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
3 REPLIES 3
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.

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).