ST意法半导体
直播中

李伟

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

LSM303AGR传感器数据卡住如何重置

我已经多次遇到加速计传感器不再提供数据的问题了。它通过SPI连接,像who_am_i这样的命令工作,但XYZ数据全部为零或只是一些冻结值。有时只有一个或两个轴,大多数都是三个。
重新初始化所有内容并不能解决问题,只有电源断开才能修复它。
如何完成重置,哪些命令?

#lsm303agr

以上来自于谷歌翻译


以下为原文






I had already multiple times the problem that the accelerometer sensor is not providing data anymore. It is connected via SPI, commands like the who_am_i works, however the XYZ data is all zero or just some frozen values. Sometimes only one or two axis, mostly all three.

Re-initializing everything does not fix it, only a power disconnect fixes it.

How can I do a complete reset, which commands?
  
#lsm303agr

回帖(5)

曾玲娟

2018-9-19 17:24:44
绝对不是标准行为。
 
您可以尝试重新加载加速度计存储器内容,将1写入CTRL_REG5_A(24h)寄存器中的BOOT位,并将1写入CFG_REG_A_M(60h)寄存器中的SOFT_RST位。
 
最好的祝福
米罗斯拉夫

以上来自于谷歌翻译


以下为原文





Definitely it is not a standard behavior.

You can try to reload accelerometer memory content writing 1 to bit BOOT in CTRL_REG5_A (24h) register and writing 1 to SOFT_RST bit in CFG_REG_A_M (60h) register.

Best regards
Miroslav
举报

李伟

2018-9-19 17:39:59
问题已经解决,我的中断响应很长时间,这就杀死了传感器。现在我通过按时读取数据来处理中断,传感器不会卡住。它对我有用。
但是我觉得传感器可以永远卡住并不好。
 
谢谢。

以上来自于谷歌翻译


以下为原文







The problem has been resolved, my interrupt response took way to long, this killed the sensor. Now I am servicing the interrupt by reading the data on time and the sensor does not get stuck. It works how me.

However I feel that the sensor can gets forever stuck is not good.



Thank you.
举报

李伟

2018-9-19 17:49:39
我发现CTRL_REG5_A BOOT命令再次使它活着。谢谢。

以上来自于谷歌翻译


以下为原文





I figured out that the CTRL_REG5_A  BOOT command brings it alive again. Thank you.
举报

刁文洁

2018-9-19 17:58:35
LIS3DH是否有类似的序列? (LIS3DH未定义寄存器60h)
 
 
谢谢

以上来自于谷歌翻译


以下为原文





Is there a similar sequence for LIS3DH ? (Register 60h is not defined for the LIS3DH)


Thanks
举报

更多回帖

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