发 帖  
原厂入驻New
[问答] L3GD20H错误的I2C地址
306 I2C 传感器
分享
我有一块带陀螺仪(L3GD20H)和Accel / Mag(LSM303D)的电路板。我正在使用I2C与传感器连接。我可以毫无问题地与Accel / Mag沟通。然而,陀螺仪出现在(7位)地址0x68处,它应该是0x6A(因为SA0为低)。我能够转储寄存器,其中一些是正确的(WHO_AM_I),但数据不正确。我已划定了线条,它们看起来很好,它只是在错误的地址回应。我附上了示波器读数和原理图。


有没有人见过这个?我已经探测过所有引脚,看起来是正确的。


谢谢。

以上来自于谷歌翻译


以下为原文




I've got a board with a Gyro (L3GD20H) and Accel/Mag (LSM303D).  I'm inteRFacing with the sensors using I2C.  I can communicate with the Accel/Mag without issues.  However, the Gyro is showing up at (7bit) address 0x68 and it should be 0x6A (since SA0 is low).  I'm able to dump the registers and some of them are correct (WHO_AM_I), however, the data isn't correct.  I've scoped the lines and they look OK, it's just responding at the wrong address.  I've attached the scope readings and the schematic.


Has anyone seen this before?  I've probed all the pins and they look correct.


Thanks.
0
2019-6-10 16:36:23   评论 分享淘帖 邀请回答

相关问题

2个回答
你好安德鲁,
如果SA0为高电平,则L3GD20H的7位地址为0x6B而不是0x68。但是,如果您能够读取一些具有正确值的寄存器,则问题将不在I2C地址中。您是否只将这两个传感器连接到I2C或同一个I2C上是否有另一个传感器?如果有两个传感器具有相同的I2C地址连接到同一总线,则可以观察到某些值正确且某些值不正确的行为。
 
 
 最好的祝福,
 玛丽安

以上来自于谷歌翻译


以下为原文





Hello Andrew,
the 7bit address for L3GD20H if SA0 is high is 0x6B and not 0x68. But if you are able to read some registers with correct values the problem will not be in I2C address. Do you have only those two sensors connected to I2C or is there another sensor on the same I2C? The behavior that some values are correct and some not can be observed if there are two sensors with the same I2C address connected to the same bus.


Best Regards,
Marian
2019-6-10 16:41:50 评论

举报

你好安德鲁,
 
 
 您附加的图片上的I2C通信是错误的。我通过正确的沟通附上图片。我的配置几乎与你的配置相同,只是我的SA0连接到1.8 V.我担心你的程序中有一些错误。
 
 最好的祝福,
 玛丽安

以上来自于谷歌翻译


以下为原文





Hello Andrew,


the I2C communication on picture you attached is wrong. I attached picture with correct communication. My configuration is almost the same as yours, just my SA0 is connected to 1.8 V. I am afraid that you have some mistake in your program.

Best Regards,
Marian
2019-6-10 17:01:34 评论

举报

只有小组成员才能发言,加入小组>>

191个成员聚集在这个小组

加入小组

热门话题

创建小组步骤

关闭

站长推荐 上一条 /8 下一条

快速回复 返回顶部 返回列表