OSError: [Errno 121] Remote I/O error


#1

Hello.

I’m new with RPi and envirophat. I have searched this forum, RPi forum, stackexchange and basically anything google could find on this topic, but could not find the solution for my problem. I do appologise in advance if I have missed something.

So, I have a RPi zero v1.3 (2015). Running raspbian. I connected an envirophat on it and am following the tutorial from learn.pimoroni.com/tutorial/sandyj/getting-started-with-enviro-phat.

I installed the software no problem, but then got stuck in python:

from envirophat import leds
Traceback (most recent call last):
File “<pyshell#2>”, line 1, in
from envirophat import leds
File “/usr/lib/python3/dist-packages/envirophat/init.py”, line 12, in
light = tcs3472(bus)
File “/usr/lib/python3/dist-packages/envirophat/tcs3472.py”, line 37, in init
self.i2c_bus.write_byte_data(ADDR, REG_ENABLE, REG_ENABLE_RGBC | REG_ENABLE_POWER)
OSError: [Errno 121] Remote I/O error

The soldering was done by somebody else and I didn’t trust it by the look of it, so I re-did it. Looks real nice and multimeter returns logical numbers when probing pins.

I checked this:
pi@rpi:~/Downloads $ 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: – -- – -- – -- – --

Which is odd, since I get the same result with or without enviro phat connected.

I checked this - came back fine:

pi@rpi:~/Downloads $ ./gpiotest
This program checks the Pi’s (user) gpios.

The program reads and writes all the gpios. Make sure NOTHING
is connected to the gpios during this test.

The program uses the pigpio daemon which must be running.

To start the daemon use the command sudo pigpiod.

Press the ENTER key to continue or ctrl-C to abort…

Testing…
Skipped non-user gpios: 0 1 28 29 30 31
Tested user gpios: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Failed user gpios: None

Now I’m lost. Any help would be appreciated.

I should also note that when connected, envirophats light leds are shining. Don’t know if it carries any significance?

Anything would be helpfull at this point! Thanks!