完善资料让更多小伙伴认识你,还能领取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. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2741 浏览 1 评论
3244 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1813 浏览 1 评论
3653 浏览 6 评论
6043 浏览 21 评论
1342浏览 4评论
203浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
356浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
444浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
275浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-26 02:13 , Processed in 1.718125 second(s), Total 78, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号