Banana Pi Sensor Board




http://www.dx.com/p/cascading-and-overlapping-multi-function-sensor-expansion-board-for-raspberry-pi-b-357254#.VcFQW3UViko




4-in-1 Temperature + Pressure + Altitude + Light Sensor Module for Raspberry Pi

http://www.dx.com/p/4-in-1-temperature-pressure-altitude-light-sensor-module-for-raspberry-pi-arduino-blue-359549#


4-in-1 Temperature + Pressure + Altitude + Light Sensor Module for Raspberry Pi / Arduino - Blue

4-in-1 Temperature + Pressure + Altitude + Light Sensor Module for Raspberry Pi / Arduino - Blue


http://pan.baidu.com/s/1qWjYtqs


Software


Let's see if the B Pro finds the I2C devices:

sudo i2cdetect -y 0
sudo i2cdetect -y 1
sudo i2cdetect -y 2
sudo i2cdetect -y 3

results in



     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- UU -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --                         
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- 39 -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- 77                         
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- 

BMP180 Altitude and Pressure Sensor



The code for the Adafruit BMP180 board works directly with this board's BMP180

https://learn.adafruit.com/using-the-bmp085-with-raspberry-pi/using-the-adafruit-bmp-python-library

( almost ! )

The Raspberry Pi seems to have the sensor on bus 0. The Banana Pi has the sensor on bus 2 at address 0x77.

Fix:
in the file
BMP180_test.py
or
simpletest.py

replace the line

sensor = BMP085.BMP085()

with the line

sensor = BMP085.BMP085(busnum=2)



AM2321 Temperature and Humidity Sensor

http://www.aosong.com/en/products/details.asp?id=137

https://github.com/lexruee/tentacle_pi








4 comments:

  1. Hello,
    Any idea why the AM2321 sensor is missing from that board ?

    ReplyDelete
  2. I think it is sold as a Temperature + Pressure + Altitude + Light Sensor module. The AM2321 would add humidity but you have to buy it separately. Strangely, the vendor does not seem to offer this module. Here is a discussion about this issue:
    http://club.dx.com/forums/forums.dx/threadid.1409451

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Thank you for your reply ! So adding the sensor afterwords would be ok. I was afraid that it was left out due to some compatibility issues.

    ReplyDelete