Cant make it work Enviro pHat

Hello

i am new to piHats
I have a rasp p3 with a mini black hat. I take a enviro phat and i solder the pins… when i connect it the only think i can make it is to turn the led on / off

run the 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: – -- – -- – -- – --

i have install the libs as the instructions and everything seems ok

when i run a script take back

pi@octopi:~/Pimoroni/envirophat/examples $ python temperature.py
Light the LEDs upon temperature increase.

Press Ctrl+C to exit.

Traceback (most recent call last):
File “temperature.py”, line 18, in
temperature = weather.temperature()
File “/usr/lib/python2.7/dist-packages/envirophat/bmp280.py”, line 134, in temperature
self.update()
File “/usr/lib/python2.7/dist-packages/envirophat/bmp280.py”, line 169, in update
if self._read_byte(REGISTER_CHIPID) == 0x58: # check sensor id 0x58=BMP280
File “/usr/lib/python2.7/dist-packages/envirophat/bmp280.py”, line 116, in _read_byte
return self.i2c_bus.read_byte_data(self.addr, register)
IOError: [Errno 5] Input/output error

any ideas ?

thnx a lot for your time

You should at least be seeing something with sudo i2cdetect -y 1, could you snap a photo of your soldering and how you’e got the mini Black HAT wired up please?

nothing with
pi@octopi:~/Pimoroni/envirophat/examples $ 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: – -- – -- – -- – --

Soldering looks good, how is the ribbon cable connected to the Pi at the other end?

i think i have put it ok

Also looks fine! Which means I’m now slightly baffled and trying to remember if there are any other gotchas.

I suspect you’ve probably tried this, but does it work if you attached the pHAT directly to the top of the Pi?

i have try it …

the same results … :(

Using https://pinout.xyz/pinout/enviro_phat as a guide, could you re-touch the i2c pins with a soldering iron, without adding any more solder, just to see if it helps? On closer inspection it’s possible the data or clock line could be shorted to ground.

so i need to retouch the 2.3.5.7 pins only ?

Yes, those are the ones most likely to have a potential short, although it’s clear that 7 (for the LEDs) is working.

I have resolder the pins

and i put it at raspy without the black hat

the same again

Nothing at sudo i2cdetect -y 1sudo i2cdetect -y 1
olny the led’s work

From the image it looks like a lot of those pins could do with more solder.

The solder should be in nice little “volcanoes” - https://learn.pimoroni.com/tutorial/sandyj/the-ultimate-guide-to-soldering

Hi,
I’m experiencing the same problem. My soldering wasn’t good, but I did decent job on the relevant pins. Couldn’t this be some firmware or hardware issue?

Have you actually enabled I2C
(In raspi-config or via the desktop settings or directly editting config.txt)
?

The LED works without I2C