ST意法半导体
直播中

孙原元

7年用户 196经验值
私信 关注
[问答]

LSM303AGR自检总是失败

您好,我正在通过I2C使用LSM303AGR,经过一番挣扎之后,每一件事看起来都很好。我可以使用看起来正确的值来读取6个轴中的任何一个,并且当我对我的电路板进行测量时,读取值会正确反应。
那么,为什么我在执行数据表中给出的自检程序时总会出现故障?我注意到这种故障取决于PCB的倾斜:我有时会使用磁力计失败,有时我会使用加速度计失败:读取值不符合预期范围......
任何想法,任何人?
谢谢!

#fail #self-test#lsm303agr

以上来自于谷歌翻译


以下为原文




Hello, I'm using an LSM303AGR thru I2C, and after a little struggling, everythings looks fine. I can read any of the 6 axes with what seems to be the right values, and the read values react correctly when I tild my board.
So, why am I always getting a failure when executing the self-test procedure given in the datasheet ? I notice that the kind of failure depends on the tilt of the PCB: I sometimes gets a fail with the magnetometer, and other times I gets a fail with the accelerometer: the read values doesn't comply with the expected range...
Any idea, anyone ?
Thanks!

#fail #self-test #lsm303agr

回帖(4)

盛越熊

2019-3-19 06:13:12
你好Christophe,
得到了同样的问题并解决了它。
规范中提到的MIN-MAX不是读数中的MIN(MAX)(这是误导性的),而是来自表[表3.传感器特性]。
它应该适用于此。

以上来自于谷歌翻译


以下为原文




Hi Christophe,
Got the same issue and solved it.
The MIN - MAX referred in the specs are not the ones from the readings (this is misleading) but rather from the table [Table 3. Sensor characteristics].
It should ok applying this.
举报

曾玲娟

2019-3-19 06:30:20
你真的尊重自我测试程序(平均,延迟)吗?
你得到了哪些价值观?

以上来自于谷歌翻译


以下为原文




Do you really respect the self-test procedure (averaging, delays) ?
Which values did you get?
举报

孙原元

2019-3-19 06:43:34
你是对的,非常感谢你的暗示。

以上来自于谷歌翻译


以下为原文




You were right, thanks a lot for your hint.
举报

孙原元

2019-3-19 06:55:59
我没有正确理解数据表,现在一切正常,谢谢!

以上来自于谷歌翻译


以下为原文




I did not understand properly the datasheet, now everything works fine, thanks!
举报

更多回帖

发帖
×
20
完善资料,
赚取积分