ADS1115 not working
Moderators: adafruit_support_bill, adafruit

Forum rules
Talk about Adafruit Raspberry Pi® accessories! Please do not ask for Linux support, this is for Adafruit products only! For Raspberry Pi help please visit: http://www.raspberrypi.org/phpBB3/
Please be positive and constructive with your questions and comments.

ADS1115 not working

by Robpl on Fri Feb 01, 2019 11:28 am

Both have been working fine until a couple of hours ago. By working fine I mean that if you run the simpletest.py with either of them attached, including sensor the I got data back. Then something happened. I don't know what but I started getting error messages. Now I'm not sure if it is a hardware problem because sudo i2cdetect -y 1 returns

0 1 2 3 4 5 6 7 8 9 a b c d e f
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --

However running simpletest.py now returns

[size=85] File "examples/simpletest.py", line 42, in <module>
values[i] = adc.read_adc(i, gain=GAIN)
File "/usr/local/lib/python3.5/dist-packages/Adafruit_ADS1x15-1.0.2-py3.5.egg/Adafruit_ADS1x15/ADS1x15.py", line 192, in read_adc
File "/usr/local/lib/python3.5/dist-packages/Adafruit_ADS1x15-1.0.2-py3.5.egg/Adafruit_ADS1x15/ADS1x15.py", line 128, in _read
File "/usr/local/lib/python3.5/dist-packages/Adafruit_GPIO-1.0.3-py3.5.egg/Adafruit_GPIO/I2C.py", line 129, in writeList
File "/usr/local/lib/python3.5/dist-packages/Adafruit_PureIO-0.2.3-py3.5.egg/Adafruit_PureIO/smbus.py", line 294, in write_i2c_block_data
OSError: [Errno 121] Remote I/O error[/size]

So I went from scratch and reinstalled Raspian Stretch, updated, installed all the Adafruit stuff and still got the same error message - on both devices.

Any suggestions as to what could have happened here and how to fix it?


Posts: 1
Joined: Fri Feb 01, 2019 11:10 am

Re: ADS1115 not working

by adafruit_support_mike on Sat Feb 02, 2019 5:55 am

Let's start with the basics: what output do you get from:

Code: Select all | TOGGLE FULL SIZE
sudo i2cdetect -y 1

Posts: 58448
Joined: Thu Feb 11, 2010 2:51 pm

Please be positive and constructive with your questions and comments.