完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,
我正在尝试使用LIS2DE12进行设备的位置识别,但我遇到了一些奇怪的问题! 1-我没有找到任何解决方案来纠正X Y Z尺寸的偏移值!即在焊接芯片之后,当我的器件处于X和Y为0且Z = g的平坦表面上时,存在一些偏移(由于器件中芯片或板的机械放置)。即X = 4,Y = -3。现在我想调整X尺寸以在+ - 15度移动后中断,但我面临的问题是,我只能为正负值设置一个值!意味着我无法设置-4阈值和+14 THS! 我只能在THS寄存器中设置为10,因此X将在+10或-10上中断。由于机械偏移误差,器件将在正侧经过6(4到10)步后中断,但在负侧则为-14(4到-10)步; 我该如何解决这个问题? 我希望能够为上限值或下限值设置不同的值... 另一个问题是我没有看到任何方法为每个维度中断设置不同的值! 我觉得很奇怪,不能为不同的尺寸设置不同的阈值!那么如果我想为X设置10 THS,为Y设置20 THS,为Z设置80 TH,我该怎么办?!!! 我认为这些是重要的限制,在芯片设计中实现它们不会有太大问题...... 以上来自于谷歌翻译 以下为原文 Hi, I'm trying to use LIS2DE12 for position recognition of device, but i faced some strange problems ! 1- I didn't find any solution to correct the offset values of X Y Z dimensions ! i.e after soldering the chip, when my device is on a flat surface which X and Y shod be 0 and Z = g, there is some offset (because of mechanical placement of chip or board in device). i.e X = 4, Y = -3 . now i want to adjust X dimension to interrupt after + - 15 degrees movement, but the problem i face is, i can only set one value for both plus and minus values ! means i can't set -4 Threshold and +14 THS ! I only can set i.e 10 in THS register, so X will interrupt on +10 or -10. because of the mechanical offset error, device will interrupt after 6 (4 to 10) steps on positive side but -14 (4 to -10) steps on negative side ! how can i solve this issue ? i like to be able to set different values for upper or lower values ... another problem is i didn't see any way to set different values for each dimension interrupts ! I think it's strange, not to be able to set different thresholds for different dimensions ! so what should i do if i want to set 10 THS for X, 20 THS for Y, and 80 for Z i.e ?!!! I think those are important limitations which couldn't be much problem to enable them in chip design ... |
|
相关推荐
1个回答
|
|
|
要解决偏移问题,可以在CTRL_REG2中为中断阈值启用高通滤波器。然后,对于中断生成,仅评估相对变化,并且将省略任何静态值(偏移,重力)。
在LIS2DE12中,阈值仅为1,它用于所有三个轴X,Y,Z。不能为每个轴设置不同的阈值。 以上来自于谷歌翻译 以下为原文 To solve you issue with the offset you can enable high pass filter for the interrupt threshold in CTRL_REG2. Then for the interrupt generation only relative change will be evaluated and any static value (offset, gravity) will be omitted. In LIS2DE12 the threshold is only one and it is used for all three axis X, Y, Z. Is is not possible to set different threshold for each axis. |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
663浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 07:16 , Processed in 0.775665 second(s), Total 72, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1430