On both Pi’s I get the same errors for all sensors:
eg *python3 light.py*
*Traceback (most recent call last):*
* File "light.py", line 8, in <module>*
* ltr559 = LTR559()*
* File "/usr/local/lib/python3.7/dist-packages/ltr559/__init__.py", line 220, in __init__*
* raise RuntimeError("LTR559 not found")*
*RuntimeError: LTR559 not found*
With help of Google I tried to run the following: sudo pip install ltr559 sudo pip install ST7735 sudo pip install pms5003 sudo apt install clang -y sudo pip install enviroplus sudo pip install pimoroni-bme280==0.0.2
and tried these commands with pip3 instead of pip.
Trying python weather.py results in:
Traceback (most recent call last):
File “weather.py”, line 28, in
temperature = bme280.get_temperature()
File “/home/pi/.local/lib/python2.7/site-packages/bme280/init.py”, line 264, in get_temperature
self.update_sensor()
File “/home/pi/.local/lib/python2.7/site-packages/bme280/init.py”, line 250, in update_sensor
self.setup()
File “/home/pi/.local/lib/python2.7/site-packages/bme280/init.py”, line 228, in setup
raise RuntimeError(“Unable to find bme280 on 0x{:02x}, CHIP_ID returned {:02x}”.format(self._i2c_addr, chip.id))
RuntimeError: Unable to find bme280 on 0x76, CHIP_ID returned 00
I’m beginning to suspect that something is broken. Any suggestions to make this sure?
There is something messed up on the i2c bus. i2cdetect returning “all” the addresses is not normal. That usually means one of those pins is shorted to ground or something?
There seems to be no shorted pins on either Pi.
And I see no visual damage on the Enviroplus and I would aspect that any shorted pins would be on the hat.
Measuring on the pins, I do not measure any shorted pins.
The i2c issue is on the Hat. SDA and SCL should (I believe) have 10k pullups to 3.3V on the Pi. And open circuit (floating) on the Hat.
The display uses SPI, which is why it works. I saw your other post in the other thread.
I’d give the hat a good look see, with a magnifying glass if you have one, for foreign objects / solder splashes etc.
It looks like one or more of the sensors have failed.
There is a “Contact Us” link on the shop page that will let you e-mail tech support. I’d put a link to this thread in that e-mail. Contact Us for Raspberry Pi Technical Support – Pimoroni
Any luck on the Enviro+? I have the Enviro+ and Enviro and two identical Pi 4s and have almost the identical issue you do or did. I have a clean boot on my testpi I have been using. I know a fan works on it but get nothing from the Enviro.
I’ve contacted the reseller and I had to send the Enviro back. After analysing
the reseller has send a new Envrio which works properly.
My problem is solved