完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,大家好,
我正在使用LIS331DLH加速度计,我能够读取产品ID,但是当我要设置配置寄存器1时,我没有得到确认,可能是什么原因? #LIS331DLH 以上来自于谷歌翻译 以下为原文 hi guys, i am working with the LIS331DLH accelerometer, i was able to read the product ID but when i am going to set the config register 1 i am not getting acknowledgement, what may be the cause? #lis331dlh |
|
相关推荐
4个回答
|
|
你好,
为了更好地回答您的问题,您是否能够提供您的寄存器配置以及您正在实施此加速度计的电路板原理图? 谢谢, 蒂亚戈雷斯 以上来自于谷歌翻译 以下为原文 Hello, In order to better answer your question, would you be able to provide your registers configuration and also the schematic of the board that you are implementing this accelerometer? Thank you, Thiago Reis |
|
|
|
现在,我得到输出,我能够正确设置控制寄存器,我使用小端格式,我收到OUT寄存器的一些数据,我有点混乱如何解释这些数据,我知道数据是2的补码形式 - 这是我在x轴面向地球0x0350和x轴面向天空0xff60时收到的数据,我的问题是因为当x轴面向地球时我们必须收到负数据,这里我正在接收+ ve值,如何分析和利用这些数据?在我的情况下即使没有移动数据我只看到LSB部分的传感器输出的变化,原因是什么以及如何最小化它?在应用笔记中,您为250mg阈值指定了0x10h,如果我想使用不同的阈值如何计算该值
以上来自于谷歌翻译 以下为原文 now, i am getting the output, i am able to set the control register properly, i am using Little endian format and i am recieving some data from the OUT registers, i am in a slight confusion how to interpret that data, i know the data is in 2's complement form -- this is the data i recieved when i placed x-axis facing earth 0x0350 and x-axis facing sky 0xff60, my problem is as we have to recieved negative data when x-axis is facing earth, here i am recieving +ve value, how to analyze and utilise that data? in my case even without moving the data i am seeing change in the sensor output only in LSB part, what is the cause and how to minimize it? In application note you specified 0x10h for 250mg threshold, if i want to use different threshold how to calculate that value |
|
|
|
你好,
为了正确进行加速度测量,您必须考虑两种类型的配置: - 使用高通滤波器 - 这消除了传感器的重力测量,仅显示倾斜和线性加速度 - 没有高通滤波器 - 在这种情况下,您将始终看到重力加速度分布在3轴上,具体取决于您的设备定位。 另一个重要的一点是,如果您发现加速度值与您最初期望的相反,您可以将正向转换为负向,反之亦然,或者将传感器置于正确的方向,所附数据表的第1.2节显示此传感器的轴方向。 您还可以发布您引用的应用程序说明吗? 谢谢, 蒂亚戈雷斯 以上来自于谷歌翻译 以下为原文 Hello, In order to have the acceleration measurements correctly there are two types of configuration that you have to consider: - With High Pass Filter - This eliminates the gravity measurement from the sensor and only tilting and linear acceleration will be displayed - Without the High Pass Filter - In this case you will always see the gravity acceleration distributed through the 3 axis depending on your devices positioning. One other important point is that if you are finding acceleration values opposite than what you were initially expecting, you can either transform what is positive into negative and vice versa, or to place the sensor in the correct orientation, section 1.2 of the attached datasheet shows the axis orientation for this sensor. Could you also please post the application note that you are referencing? Thank you, Thiago Reis |
|
|
|
感谢您的回复,
检查附件,我正在使用此应用笔记, 现在我将使用中断和HP过滤器,在这种情况下我仍然困惑如何设置阈值,如在您的应用笔记中设置0x10h为250mg,如何将G值转换为十六进制反之亦然,以设定门槛? 你能告诉我如何从获得的数据中找出G值吗? 我对这个问题仍感到困惑! 以上来自于谷歌翻译 以下为原文 thanks for your reply, check the attachment, i am using this application note, now i am going to work with the interrupts and with the HP filter, in this case i am still in confusion how to set the threshold value, as in your application note you are setting 0x10h for 250mg, how to convert G value to the hex and vice versa in order to set threshold? could you tell me how to find out the G value from the obtained data? i am in still confusion regarding that one! |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2265 浏览 1 评论
3042 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1617 浏览 1 评论
3431 浏览 6 评论
5772 浏览 21 评论
780浏览 4评论
1149浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
419浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1133浏览 3评论
1181浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-19 08:19 , Processed in 1.078495 second(s), Total 74, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191