Enviroplus sensors not working?

I’ve got a Enviroplus and have trying to get it working on a Pi3 and Pi400. Both with the latest and freshly installed Raspberry OS.

I use the guidline to get started;
git clone GitHub - pimoroni/enviroplus-python: Python library for the Enviro+ environmental monitoring board
cd enviroplus-python
sudo ./install.sh

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.

The LCD display works fine.

sudo i2cdetect -y 1 gives;
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f
10: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f
20: 20 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f
30: 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f
40: 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f
50: 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f
60: 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d 6e 6f
70: 70 71 72 73 74 75 76 77

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?

It’s on both Pi’s the same. Without the Enviroplus hat i2cdetect gives;

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: -- -- -- -- -- -- -- --    

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.

Is it possible tot connect one sensor with a break out cable? If so, which pins door which sensor?
I could narrow my search.

No, they all use the same pins assigned for i2c

  • Communication over I2C
  • 0x49: ADS1015
  • 0x76: BME280
  • 0x23: LTR559

Thanks for the information on the pinout. And thanks for the advise.
I looked again and see no visual damage or shorted pins.

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

I’ve send a message. Thanks again and a happy new year.

Arthur,

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.

Randy

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