Fan174
Posts: 177
Joined: Tue Mar 20, 2018 6:10 am

IOError: [Errno 121] Remote I/O error

Sat Mar 24, 2018 4:50 am

I am trying to interface ADS1115 with raspberry Pi 3. I am using raspbain jesse. I followed this link https://learn.adafruit.com/raspberry-pi ... sh-ads1115

I am getting following error
pi@raspberrypi:~/Adafruit_Python_ADS1x15/examples $ sudo python simpletest.py
Reading ADS1x15 values, press Ctrl-C to quit...
| 0 | 1 | 2 | 3 |
-------------------------------------
Traceback (most recent call last):
File "simpletest.py", line 42, in <module>
values = adc.read_adc(i, gain=GAIN)
File "build/bdist.linux-armv7l/egg/Adafruit_ADS1x15/ADS1x15.py", line 192, in read_adc
File "build/bdist.linux-armv7l/egg/Adafruit_ADS1x15/ADS1x15.py", line 128, in _read
File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 129, in writeList
File "build/bdist.linux-armv7l/egg/Adafruit_PureIO/smbus.py", line 274, in write_i2c_block_data
IOError: [Errno 121] Remote I/O error
pi@raspberrypi:~/Adafruit_Python_ADS1x15/examples $


pi@raspberrypi:~/Adafruit_Python_ADS1x15/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: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@raspberrypi:~/Adafruit_Python_ADS1x15/examples $



Pi 3 Pin -------- ADS1115

Pin 1 ---------- VDD
Pin 3 ----------- SDA
Pin 5 ------------ SCL
Pin 9 ------------ Ground

I don't have idea what's cause error getting Please tell me how to fix that error

User avatar
B.Goode
Posts: 9058
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: IOError: [Errno 121] Remote I/O error

Sat Mar 24, 2018 10:35 am

Disclaimer: I have never used this adc module, so these comments are made purely on the basis of reading the Adafruit website...

In general, you appear to be asking about a vendor-supplied library to support a commercial hardware add-on. The vendor, Adafruit, would probably be a more reliable source of support than the general RPi volunteer community.

Specifically, the error you report has been raised as an Issue in the Github repository for that module:
https://github.com/adafruit/Adafruit_Py ... 5/issues/4

whatever0815
Posts: 1
Joined: Fri Apr 13, 2018 11:36 am

Re: IOError: [Errno 121] Remote I/O error

Fri Apr 13, 2018 11:44 am

I had the same problem. When I „i2cdetect“-ed the adress of de adc (analog-digital-converter) it switched between 48 and 49.
The solution was, to connect Pin 1 (ADDR) of the ADS1115 to either GND or VDD.
I hope this also works for you.

SteveSpencer
Posts: 351
Joined: Thu Mar 28, 2013 9:19 am
Location: Nottingham, UK

Re: IOError: [Errno 121] Remote I/O error

Fri Apr 13, 2018 1:52 pm

If you leave the ADDR pin floating, it may switch between on/off, because it is not being tied one way or the other. This means it could change the address while you are using it - never a good idea.
Steve S
No, I can't think of anything funny that won't offend someone if they want it to...

Return to “General discussion”