完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,
我正在测试一块使用LIS3MDL作为磁性参考传感器与3线SPI通信的电路板。我正在使用我制造的亥姆霍兹线圈测试传感器(顺便说一下,已经过测试并正确生成了磁场)。 当从LIS3MDL读取磁数据时,我看到磁数据正确地跟踪产生的磁场以获得正磁场。然而,负磁场未被正确测量并且在Breal对B测量的图中显示出不同的斜率。测量中的这个误差远远高于该器件预期的+ -0.12%非线性。 我测试了三个原型板,所有这些都有这个问题。我研究了来自传感器的原始二进制数据,我已经放弃了从二进制到高斯错误的任何转换。 最后,我的问题是:这种表现是否正常?三个传感器是否以同样的方式损坏?有没有人有同样的问题?我应该放弃并使用它吗? 谢谢! #spi 以上来自于谷歌翻译 以下为原文 Hi all, I am testing a board that uses a LIS3MDL as a magnetic reference sensor communicating with a 3-wire SPI. I am testing the sensor using a Helmholtz coil that I built (that, by the way, has been tested and generates correctly the magnetic field). When reading the magnetic data from the LIS3MDL I see that magnetic data tracks correctly the generated magnetic field for positive fields. However, negative magnetic fields are not correctly measured and show a different slope in a Breal vs B measured plot. This error in the measurement is far higher than the +-0.12% nonlinearity expected from this device. I have tested three prototype boards and all of them have this issue. I have studied the raw binary data coming from the sensor and I have discarded any conversion from binary to Gauss error. So finally, my question is: Is this performance normal? Are the three sensors damaged in the same way? Has anybody had the same problem? Should I give up and work with it? Thanks! #spi |
|
相关推荐
1个回答
|
|
小心使用此设备和ST上的其他几个SPI。如果您正在共享SPI总线,则芯片选择(CS)的概念无法正常工作。未选择时,此设备和其他设备实际上处于I2C模式。如果这些设备中的任何一个在共享SPI总线上看到它们各自的I2C从设备地址,它们可以并且将驱动SDI线路损坏与实际选择的设备之间的数据。我发现这很难。
以上来自于谷歌翻译 以下为原文 Be careful using this device and several others from ST over SPI. If you are sharing the SPI bus, the notion of Chip Select (CS) doesn't work right. This device and others, when NOT selected are actually in I2C mode. If any of these devices see their respective I2C slave addresses on the shared SPI bus, they can and will drive the SDI line corrupting data to/from the device that is actually selected. I found this the hard way. |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2635 浏览 1 评论
3208 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1783 浏览 1 评论
3610 浏览 6 评论
5988 浏览 21 评论
939浏览 4评论
1316浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
584浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
1303浏览 3评论
1359浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-23 22:37 , Processed in 1.119611 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号