完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好;
我有STM32f103c8t6 mcu和LSM330 6DOF imu传感器。我尝试从LSM330TR imu传感器读取。我有个问题。 当我从imu读取陀螺仪数据时,一切都还可以。我可以阅读它们,但是当我尝试从imu读取acc数据时,我无法阅读它们。我认为问题在于传感器,或者有些东西看不见。你能帮我解决这个问题吗?问题的原因是什么? 以上来自于谷歌翻译 以下为原文 Hi; I have stm32f103c8t6 mcu and LSM330 6DOF imu sensor. I try to read from LSM330TR imu sensor. I have a problem. When I read gyro datas from imu, everything is OK. I can read them, but when I tried to read acc datas from imu, I can't read them. I think problem is in sensor or there is something out of sight. Could you help me solve this problem? What could the cause of the problem? |
|
相关推荐
9个回答
|
|
使用I2C或SPI 3或4线模式?
在数据表中,每个函数都有不同的I2C从地址: 如果使用I2C,请检查您是否可以读取通常位于@ 0x0F周围的每个功能WHO_AM_I寄存器 以上来自于谷歌翻译 以下为原文 Using I2C or SPI 3 or 4 wire mode? In the datasheet, each function has different I2C slave address: If using I2C, check if you can read each function WHO_AM_I register usually located around @0x0F |
|
|
|
我正在使用I2C intarface。在电路中,SDO_A引脚连接到VDD。所以我使用0x1D作为地址。当我阅读WHO_AM_I注册时,没有任何改变。再说一遍,我什么都看不懂。我为注册设置编写了BW,Scale,ODR,axis和BDU。
我在寄存器设置中丢失某些内容的概率是多少? 以上来自于谷歌翻译 以下为原文 I'm using I2C intarface. In the circuit, SDO_A pin connect to VDD. So I use the 0x1D as address. When I read WHO_AM_I register, there is nothing changed. Again, I can't read anything. I wrote BW, Scale, ODR, axis and BDU for register settings. What is the probability that I am missing something in the register settings? |
|
|
|
通常唯一可能的缺陷是子地址位7应设置为1以使用自动增量,然后读取多于一个字节。如果WHO_AM_I读数不起作用,则不知道。
以上来自于谷歌翻译 以下为原文 Usually the only typical possible pitfall is that the sub address bit 7 should be set to 1 to use autoincrement and then read more than a single byte. If the WHO_AM_I reading is not working, then don't know. |
|
|
|
有谁知道如何解决这个问题?还是有人可以提供帮助?
以上来自于谷歌翻译 以下为原文 Does anyone know how to solve this problem? Or someone who can help? |
|
|
|
你有CS_A和CS_G都连接到'1'(Vdd_IO)?你能分享一下原理图吗?
如果您甚至无法读取WHO_AM_I寄存器,则问题可能出在I2C配置或HW连接中。从逻辑分析仪捕获I2C通信也很有帮助。 以上来自于谷歌翻译 以下为原文 Do you have CS_A and CS_G both connected to '1' (Vdd_IO)? Can you share you schematic? If you are not able to read even WHO_AM_I register the problem would be probably in I2C configuration or in the HW connection. Also capture of I2C communication from a logic analyzer would be helpful. |
|
|
|
是的,我有,我可以分享我的原理图。如果问题来自i2c配置,我认为我不能读取陀螺仪数据,或者问题是来自HW conncetion,它应该在LSM330中。在这种状态下,我该怎么办?我该如何解决这个问题?
。 以上来自于谷歌翻译 以下为原文 Yes,I have and I could share my schematic. If the problem was from the i2c configuration, I do not think I could read gyroscope data or if the problem was from the HW conncetion, it should be in LSM330. In this status, what should I do ? How can i solve this issue ? . |
|
|
|
我打算用逻辑分析仪看一下。我检查了两个地址,软件正在返回一个确认失败错误。关于这个传感器,有源代码还是有不同的数据表文件?你能和我分享一下吗?问题可能出在我的加速度计软件中。
以上来自于谷歌翻译 以下为原文 I'm going to look with logic analyzer. I checked both of the addresses and the software is returning an Acknowledge Failure Error. Well about this sensor, are there a source code or are there different document from datasheet ? Can you share with me ? The problem might be in my software of accelerometer. |
|
|
|
我分享了从逻辑分析仪观察i2c通信时获得的结果图像。它总是给我NAK。
以上来自于谷歌翻译 以下为原文 I share the image of the result I obtained when I observed the i2c communication from the logic analyzer. It's always giving me NAK. |
|
|
|
此外,scl和sda连接用4.7k电阻上拉至3.3V。
注意:原始帖子包含大量线程对话,只能迁移到第9级 以上来自于谷歌翻译 以下为原文 In addition, the scl and sda connections were pulled up with a 4.7k resistor to 3.3V. Note: the original post contained a large number of threaded conversations and was only able to be migrated to the 9th level |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
2725 浏览 1 评论
3237 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1807 浏览 1 评论
3646 浏览 6 评论
6034 浏览 21 评论
1336浏览 4评论
197浏览 3评论
对H747I-DISCO写程序时将CN2的st-link复用为usart1,再次烧录时无法检测到stlink怎么解决?
350浏览 2评论
STM32G474RE芯片只是串口发个数据就发烫严重是怎么回事?
442浏览 2评论
STM32处理增量式编码器Z信号如何判断中断是正转的还是反向转的?
268浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-22 13:13 , Processed in 1.273495 second(s), Total 95, Slave 77 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号