joe
June 13, 2020, 1:41pm
1
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.
joe
June 13, 2020, 4:00pm
3
Thanks, yeah its definitly the python3 version im running, used pip3 and also grabbed the source straight from github. Same issue though.
joe
June 13, 2020, 4:05pm
4
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:
opened 09:32PM - 24 Mar 18 UTC
closed 09:03PM - 31 Mar 18 UTC
It stopped working with 2.0, works fine in 1.2
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.
rupy
July 21, 2022, 10:48am
6
I also have troubles: WARNING Main Loop Exception: Unable to find bme280 on 0x76, IOError
I have tried everything rebooted, reseated all connections.
It failed after ~6 months of constant use.