@Aeolian wrote:
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 / offrun 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 errorany ideas ?
thnx a lot for your time
Posts: 9
Participants: 2