Skip to content

Can not read data from BMP280 Digital Pressure sensor + Raspberry Pi #2

Description

@saiful-sdsl

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions