2017-12-06 10:11 PM
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 #lsm6ds32017-12-07 05:03 AM
You can inspire yourself in existing example source codes in
or package.2017-12-07 09:22 PM
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.
2018-05-18 08:31 AM
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).