完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
问候
我正在使用LIS2MDL为教育市场构建磁场传感器。当测量的磁场超过最大允许值时,我注意到LIS2MDL返回不可预测的数据而不是0x7fff(32767)或0x8000(-32768)。 有没有办法可以检测磁场测量溢出,以便我们的可视化软件可以让用户知道测量数据无效? 谢谢 Scott Wild 以上来自于谷歌翻译 以下为原文 Greetings I am using the LIS2MDL to build a magnetic field sensor for the education market. When the magnetic field being measured exceeds the maximum allowed value, I notice that the LIS2MDL returns unpredictable data rather than 0x7fff (32767) or 0x8000 (-32768). Is there a way I can detect a magnetic field measurement overflow so that our visualization software can let the user know the measurement data is invalid? Thank you Scott Wild |
|
相关推荐
2个回答
|
|
嗨,
您可以检查INT_SOURCE_REG中的MROI位。如果发生测量范围溢出,该标志会发出警报。确保中断发生器有效(IEN位= 1)。通过读取INT_SOURCE_REG复位锁存的MROI位。 问候 马切伊 以上来自于谷歌翻译 以下为原文 Hi, You can check the MROI bit in INT_SOURCE_REG. This flag alerts if a measurement range overflow has occured. Make sure that the interrupt generator is active (IEN bit = 1). Latched MROI bit is reset by reading INT_SOURCE_REG. Greetings Maciej |
|
|
|
嗨,我对LIS2MDL和LIS3MDL都有相同的行为。
我的应用是检测磁铁的接近程度。在大约1厘米的范围内,措施出乎意料。 我已经用其他一些传感器进行了一些实验,但只有一个轴,行为与预期的一样:磁铁越近,测量值越高,直到饱和度保持饱和状态...... 我已经尝试过Maciej的命题,但这个过程来得太晚了,措施已经错了。 斯科特你是否设法得到正确的操作? 谢谢 彼得 以上来自于谷歌翻译 以下为原文 Hi, I have the same behaviour with LIS2MDL and also with a LIS3MDL. My application is to detect the proximity of a magnet. Under about 1cm the measures are unexpected. I have done some experiments with some other sensors but with only one axe and the behaviour is as expected : the closer the magnet, the higher the measurement until saturation, which stays saturation... I have tried the Maciej's proposition but this process comes too late, the measures are already false. Scott did you manage to get a correct operation ? Thanks Peter |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2900 浏览 1 评论
3285 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1866 浏览 1 评论
3718 浏览 6 评论
6131 浏览 21 评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
415浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
515浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
342浏览 2评论
使用STM32F407VET6的USB2.0功能,发现ctl后芯片无数据返回,是什么原因可能导致的呢?
248浏览 2评论
用STM32G431开发工程,1.50版本的Package包文件无法输出项目工程
357浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-3-6 17:12 , Processed in 1.122237 second(s), Total 79, Slave 63 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191