你好,
如果你想分别检测运动(加速度)和倾斜,其中一个
http://www.st.com/en/mems-and-sensors/inemo-inertial-modules.html?querycriteria=productId=SC1448
可能是更好的解决方案。例如,LSM6DS3的功耗为:组合正常模式下为0.9 mA,组合高性能模式下为1.25 mA,最高为1.6 kHz。
但是,也可以仅使用加速度计测量倾斜度,请参阅此内容
http://www.st.com/content/ccc/resource/technical/document/application_note/d2/d6/22/4f/b9/8f/45/59/DM00119046.pdf/files/DM00119046.pdf/jcr:内容/翻译/ en.DM00119046.pdf
。这完全取决于您的要求,然后是设备设置。可以为任何范围生成中断,但也有一个时间变量,该值高于加速/倾斜阈值多长时间。 (例如,如果你设置4克1秒,可能很难做到,除非你是在战斗机中。)
在你的情况下,我会建议一步一步的方法。将设备设置为连续测量模式并尝试移动设备,估算一些对您的应用有意义的加速度阈值。然后尝试为此阈值设置中断(具有适当的持续时间)。如果您遇到任何困难,请粘贴所有设置代码并描述具体行为,以便我们可以看到可能出现的问题。
大卫
以上来自于谷歌翻译
以下为原文
Hello,
If you want to separately detect movement (acceleration) and tilt, one of
http://www.st.com/en/mems-and-sensors/inemo-inertial-modules.html?querycriteria=productId=SC1448
might be a better solution.LSM6DS3, for example, features power consumption: 0.9 mA in combo normal mode and 1.25 mA in combo high-performance mode up to 1.6 kHz.
However, it is also possible to measure tilt using just an accelerometer, see this
http://www.st.com/content/ccc/resource/technical/document/application_note/d2/d6/22/4f/b9/8f/45/59/DM00119046.pdf/files/DM00119046.pdf/jcr:content/translations/en.DM00119046.pdf
.It all depends on your requirements and then the device setup. The interrupt can be generated for any range, but there is also a time variable, for how long the value is above the acceleration / tilt threshold. (For example if you set 4 g for 1 second, it might be difficult to do, unless you are in a fighter jet.)
In your situation, I would suggest a step by step approach. Set the device into continuous measurement mode and try moving the device, estimate some acceleration threshold that is meaningful for your application. Then try to set an interrupt (with proper time duration) for this threshold. If you have any difficulties, paste all your setup code and describe the specific behaviour, so we can see what might be wrong.
David
你好,
如果你想分别检测运动(加速度)和倾斜,其中一个
http://www.st.com/en/mems-and-sensors/inemo-inertial-modules.html?querycriteria=productId=SC1448
可能是更好的解决方案。例如,LSM6DS3的功耗为:组合正常模式下为0.9 mA,组合高性能模式下为1.25 mA,最高为1.6 kHz。
但是,也可以仅使用加速度计测量倾斜度,请参阅此内容
http://www.st.com/content/ccc/resource/technical/document/application_note/d2/d6/22/4f/b9/8f/45/59/DM00119046.pdf/files/DM00119046.pdf/jcr:内容/翻译/ en.DM00119046.pdf
。这完全取决于您的要求,然后是设备设置。可以为任何范围生成中断,但也有一个时间变量,该值高于加速/倾斜阈值多长时间。 (例如,如果你设置4克1秒,可能很难做到,除非你是在战斗机中。)
在你的情况下,我会建议一步一步的方法。将设备设置为连续测量模式并尝试移动设备,估算一些对您的应用有意义的加速度阈值。然后尝试为此阈值设置中断(具有适当的持续时间)。如果您遇到任何困难,请粘贴所有设置代码并描述具体行为,以便我们可以看到可能出现的问题。
大卫
以上来自于谷歌翻译
以下为原文
Hello,
If you want to separately detect movement (acceleration) and tilt, one of
http://www.st.com/en/mems-and-sensors/inemo-inertial-modules.html?querycriteria=productId=SC1448
might be a better solution.LSM6DS3, for example, features power consumption: 0.9 mA in combo normal mode and 1.25 mA in combo high-performance mode up to 1.6 kHz.
However, it is also possible to measure tilt using just an accelerometer, see this
http://www.st.com/content/ccc/resource/technical/document/application_note/d2/d6/22/4f/b9/8f/45/59/DM00119046.pdf/files/DM00119046.pdf/jcr:content/translations/en.DM00119046.pdf
.It all depends on your requirements and then the device setup. The interrupt can be generated for any range, but there is also a time variable, for how long the value is above the acceleration / tilt threshold. (For example if you set 4 g for 1 second, it might be difficult to do, unless you are in a fighter jet.)
In your situation, I would suggest a step by step approach. Set the device into continuous measurement mode and try moving the device, estimate some acceleration threshold that is meaningful for your application. Then try to set an interrupt (with proper time duration) for this threshold. If you have any difficulties, paste all your setup code and describe the specific behaviour, so we can see what might be wrong.
David
举报