tom_hsh 发表于 2014-5-4 08:41:22

求助:用IIC来同时读取两bmp085的气压

请各位大神指点,我想用arduino的IIC同时连接了两个bmp085,如何读取它们的数据呢?
我尝试了把其中一个bmp085上的xclr至低电平,来读取另外一个bmp085的数据,但是读不出来
因该怎么才能同时使用两个bmp085呢?

weijinhe 发表于 2014-5-4 09:11:14

为什么要读两个?我这倒是有一个的程序。

tom_hsh 发表于 2014-5-4 09:30:11

我用于教学的
同时测量两个地方的气压给学生对比
比喻两个瓶子的气压

4463424 发表于 2014-5-4 09:54:37

读取不同的IICF地址

tom_hsh 发表于 2014-5-4 09:58:58

好像同一种传感器IIC地址一样的

数字 发表于 2014-5-4 10:15:45

用D口控制供电。

tom_hsh 发表于 2014-5-4 12:22:46

数字 发表于 2014-5-4 10:15 static/image/common/back.gif
用D口控制供电。

用了D口还是不行,arduino不会向串口发数据

i7456 发表于 2014-5-4 12:37:43

用2个arduino

tom_hsh 发表于 2014-5-4 12:39:49

i7456 发表于 2014-5-4 12:37 static/image/common/back.gif
用2个arduino

:L
不想这样做,想一个arduino搞定
研究嘛

4463424 发表于 2014-5-4 13:45:51

http://www.geek-workshop.com/forum.php?mod=viewthread&tid=2697

i7456 发表于 2014-5-4 15:01:29

tom_hsh 发表于 2014-5-4 12:39 static/image/common/back.gif
不想这样做,想一个arduino搞定
研究嘛

There is an easy way to connect two BMP085 to the same I2C bus: You can use the XCLR
input of BMP085 to set one BMP085 part silent while you communicate with the other BMP085
part via I2C and vice versa. The signals can be provided by two digital outputs of the microcontroller,
or one digital output and one inverter.

https://www.sparkfun.com/datasheets/Components/General/BST-BMP085-DS000-05.pdf
页: [1]
查看完整版本: 求助:用IIC来同时读取两bmp085的气压