Hi,
I am using a BMP280 digital pressure sensor for my research project. I have assembled this sensor with a Raspberry Pi. My target is to read sensor data using the provided python code (downloaded from here: https://github.com/ControlEverythingCommunity/BMP280).
While running the python code it thowring the output as like below:
Traceback (most recent call last):
File βBMP280.pyβ, line 16, in
b1 = bus.read_i2c_block_data(0x76, 0x88, 24)
IOError: [Errno 110] Connection timed out
Then I tried to run the following command to see the available hardware attached to the Pi:
sudo i2cdetect -y 1
It only showing
pi@raspberrypi:~ $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: β β β β β β β β β β β β β
10: β β β β β β β β β β β β β β β β
20: β β β β β β β β β β β β β β β β
30: β β β β β β β β β β β β β β β β
40: β β β β β β β β β β β β β β β β
50: β β β β β β β β β β β β β β β β
60: β β β β β β β β β β β β β β β β
70: β β β β β β β β
Is that means Pi is not detecting any Sensor?
Now, my questions:
- If Pi is not detecting the sensor, what needs to do to resolve this problem?
- Then, how to get sensor data using python code?