ST意法半导体
直播中

李晓欢

7年用户 351经验值
私信 关注
[问答]

怎么使用LSM6DS3惯性模块来实现6D方向检测

嗨,我正在使用LSM6DS3惯性模块来实现6D方向检测,单击和放大活动/不活动检测。

我还需要模块在没有活动时进入睡眠模式。
您能分享上述要求的实施流程吗?
如果可用,请分享示例代码或现成的示例代码。
#accelerometer#lsm6ds3

以上来自于谷歌翻译


以下为原文




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)

周芳卿

2019-5-10 16:23:33
您可以在现有的示例源代码中激发自己的灵感
http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-mems1.html
 或http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-mems-xt1.html
 包。

以上来自于谷歌翻译


以下为原文




You can inspire yourself in existing example source codes 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
or http://www.st.com/content/st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-packages/x-cube-mems-xt1.html
package.
举报

李晓欢

2019-5-10 16:28:45
谢谢 @
Sterba.Petr
我已经浏览了所提供的链接,但无法清楚地了解实施流程。如果您能为我提供不同加速度计功能实现的C代码,将会很有帮助。
 
 
 
 注意:原始帖子包含大量线程对话,只能迁移到第9级

以上来自于谷歌翻译


以下为原文




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.   


   

Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level
举报

周芳卿

2019-5-10 16:39:56
我没有任何其他代码而不是链接中的代码。
6D方向检测,单/双击和其他传感器功能在一个LSM6DS3_MultiEvent示例中一起实现。在没有传感器活动时将应用程序处理器置于睡眠模式在另一个LSM6DS3_FIFOLowPower示例中实现。查看这些示例的main.c,您将看到BSP层中的哪些函数被调用,然后查看这些BSP函数将引导您进入HL(高级)驱动程序函数,这些函数主要执行传感器操作(使用LL(低级别) )驱动程序,但您不必详细阅读LLD)。

以上来自于谷歌翻译


以下为原文




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

更多回帖

发帖
×
20
完善资料,
赚取积分