完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我正在使用LIS3DH加速度计,我想检测空间中的设备方向。根据规格,我可以通过6D方向检测功能来做到这一点,但我没有得到任何结果。谁能告诉我哪个是LIS3DH寄存器的正确设置才能使用6D方向检测功能? 感谢所有可以提供帮助的人。 #lis3dh 以上来自于谷歌翻译 以下为原文 Hi all, I'm using a LIS3DH accelerometer and I would like to detect the device orientation in the space. According to the specifications I could do this by means of the 6D orientation detection function, but I'm not getting any result. Can anyone tell me which is the correct setting of the registers of the LIS3DH in order to use the 6D orientation detection function? Thanks to everybody who can help. #lis3dh |
|
相关推荐
9个回答
|
|
请阅读申请说明
https://my.st.com/resource/en/application_note/cd00290365.pdf 。您可以在下图中看到6D方向设置示例: 以上来自于谷歌翻译 以下为原文 Please read - in application note https://my.st.com/resource/en/application_note/cd00290365.pdf .You can see example of 6D orientation settings in following picture: |
|
|
|
谢谢你的回答,米罗斯拉夫。
实际上,我要做的是检测滑动门沿直线路径的移动。 这可能是通过使用LIS3DH还是超出了加速度计的范围? 我担心,在处理重力加速度时,线性移动不会在三个轴上产生任何变化,所以我无法检测到任何东西。我错了吗? 以上来自于谷歌翻译 以下为原文 Thank you for your answer, Miroslav. Actually, what I'm trying to do is to detect the movement of a sliding door along a linear path. Is this possible by using the LIS3DH or is this beyond the scope of the accelerometer? I'm afraid that, dealing with gravitational acceleration, a linear move doesn't generate any change on the three axes, so I can't detect anything. Am I wrong? |
|
|
|
你好,
原则上,可以检测滑动门的运动。重力加速度将与门运动垂直,因此不是问题。 我在办公室做了自动门的快速测试(滑动门上的棒加速度计记录了加速度),在这里你可以看到结果: 我还在excel中进行了分析并添加了移动平均线: 我可以想象这可以用来举例来打开门。 我不知道你的目标到底是什么,无论如何你都会测量你的门的加速度,因为每扇门都会产生不同的模式。 以上来自于谷歌翻译 以下为原文 Hello, in principle it is possible to detect movement of sliding doors. The gravitation acceleration will be in perpendicular axis to the door movement, so it is not a problem. I did quick test with automatic doors in our office (stick accelerometer on sliding door record the acceleration), here you can see the results: I also did an analysis in excel and added moving average: I can imagine that this could be used for example to make counter of door opening. I don't know what exactly is your target, in any case you will have measure acceleration of your doors, because each door can generate different pattern. |
|
|
|
你好Miroslav,
我的目标主要是手动操作的门,不仅是滑动门,还有旋转门。目标是在打开检测时打开灯。 我通过监视z轴得到了结果,正如你的建议(假设LIS3DH平面与门的平面平行),但问题是我必须保持检测阈值非常低(INT1_THS低至0x03)为了检测运动。然而,在这种情况下,设备对声学噪声非常敏感,如手拍和音乐。 你有没有遇到过屏蔽加速度计噪音的问题? 以上来自于谷歌翻译 以下为原文 Hello Miroslav, my target are mainly manually operated doors, not only sliding doors but also swing doors. The goal is to swicth lights on upon opening detection. I got results by monitoring the z axis, as you suggest (assuming that the LIS3DH plane is parallel to the plane of the door), but the problem is that I have to keep the detection threshold very low (INT1_THS as low as 0x03) in order to detect movement. However, in this condition the device becomes very sensitive to acoustic noise, like hand claps and also music. Did you ever face the problem of shielding the accelerometer against acoustic noise? |
|
|
|
我建议您监控加速度计的所有轴,并尝试找到最佳轴(或轴的组合)进行检测。
在旋转门的情况下,将存在两种力,即离心力和切向力。也许您需要在微控制器中进行一些数据处理,因为LIS3DH的嵌入式功能将不适合您的需要。 关于声学噪声,我没有解决这个问题的经验。但我想门会产生相当大的区域,捕获声波并将它们转移到加速度计。所以我会试着用一些泡沫或可锻材料将加速器与门隔离开来。 以上来自于谷歌翻译 以下为原文 I would recommend you to monitor all axis from the accelerometer and try to find the best axis (or combination of axis) for the detection. In case of swing doors there will be two forces, centrifugal force and tangential force. Maybe you will need to do some data processing in a microcontroler, because embedded feature of the LIS3DH won't be suitable for your needs. Concerning the acoustic noise, I don't have any experience with solving this problem. But I suppose the door creates quite big area which capture the acoustic waves and transfer them to accelerometer. So I would try to isolate the acceleromter from the door with some foam or malleable material. |
|
|
|
嗨吉安,你能提供传感器设置吗?我要求相同类型的应用程序,我也尝试了我的自我也在门移动时得到了中断,但门完全打开/关闭决定是不明白的。那么,我们必须在哪个基础上决定门是全开,半开还是全开?
以上来自于谷歌翻译 以下为原文 Hi Gian, could you provide sensor settings? I have requirement same type of application and I have tried with my self also and got the interrupt also when door is moving but door is completely open/close decision is not understand. So, on which basis we have to decide that door is full open,half open or fully close? |
|
|
|
Batek.Miroslav
嗨Miroslav,你能分享一下你是如何分析加速度计读数的吗?您是如何将门的运动识别为“打开”或“关闭”的,如图所示。 请帮助我理解这个...... 谢谢。 注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 Batek.Miroslav ‌ Hi Miroslav,Can you please share how did you analyze the accelerometer readings & how did you identified the movement of the door as 'open' or 'close' as you have shown in your graphs. Kindly help me out to understand this... Thank you. Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
滑动门打开或关闭的决定是由机芯开始时的加速度的标志决定的。
根据传感器方向,标志在打开时为正,在关闭时为负,反之亦然。 我建议您进行试用,记录加速度数据并使分析脱机。 以上来自于谷歌翻译 以下为原文 The decision if the sliding doors are opening or closing was made by the sign of the acceleration at the beginning of the movement. According to sensor orientation the sign will be positive when opening and negative when closing or vice versa. I recommend you to make a trial, record the acceleration data and make the analysis offline. |
|
|
|
感谢您回复Miroslav!
观察LIS2DE12加速度计的情况,当门关闭时标志为负,&门打开时往往是积极的。 请查看在启用6D的设备的不同位置观察到的加速度计读数。 谢谢。 以上来自于谷歌翻译 以下为原文 Thank you for your reply Miroslav! Observed the scenario with LIS2DE12 accelerometer that the sign is negative when the door is closed, & it tends to be positive when the door is opened. Please find the accelerometer readings observed with the different position of the device with 6D enabled. Thank you. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2827 浏览 1 评论
3267 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1844 浏览 1 评论
3693 浏览 6 评论
6098 浏览 21 评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
395浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
486浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
316浏览 2评论
使用STM32F407VET6的USB2.0功能,发现ctl后芯片无数据返回,是什么原因可能导致的呢?
232浏览 2评论
用STM32G431开发工程,1.50版本的Package包文件无法输出项目工程
339浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-2 19:46 , Processed in 0.972531 second(s), Total 57, Slave 52 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号