BME280 - unable to find

HI

Im trying to get my BME280 sensor to work with a Pi Zero running Rasp-OS. I have enabled the i2c interface and installed the pimoroni python library, running the all-values.py returns the error:-

RuntimeError: Unable to find bme280 on 0x76, CHIP_ID returned 58

If i run i2cdetect I get the sensor at address 0x76:-

 0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- – -- – -- – -- – --
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: – -- – -- – -- – -- – -- – -- – -- – --
60: – -- – -- – -- – -- – -- – -- – -- – --
70: – -- – -- – -- 76 –

The sensor is wired up correctly, not sure what else could be wrong. I have tried the pip version and straight from git hub.

Thanks for any help

Joe

Try running

sudo pip3 install pimoroni-bme280

Just in case its a python 2 versus python 3 thing.
pip installs for python 2 and pip3 installs for python 3.

Thanks, yeah its definitly the python3 version im running, used pip3 and also grabbed the source straight from github. Same issue though.

I tried the RPi.bme280 lib and it seemed to work fine. Can only think this is an issue with the pimoroni-bme280 lib?

Hi,
Not sure if this helps, but are you sure you have the right component/library combination?

While looking at another problem (now solved) I noticed here:

BME has ID 0x60, BMP has ID 0x58 (mass production, samples have different ID)

That would seem consistent with your error message:

RuntimeError: Unable to find bme280 on 0x76, CHIP_ID returned 58

I hope this helps.