SPRING SALE up to 20% OFF! (excludes trade customers)   •   FREE Standard Delivery for orders over £35 (ex VAT)
Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

ADC Pi stopped working (IOError)

The ADC Pi is an Analogue to Digital converter for the Raspberry Pi

21/06/2017

Posted by:
dreshmaker

dreshmaker Avatar

He there,i tried to setup a Rasberry PI with the ADC Pi and i got the same error.But when i check the "i2cdetect -y 1" its called both address. my setup is is very rudimentary. i just pluged the ADC Pi on the Raspberry Pi without a real analog signal. so the over voltage case is not applicable?hope someone can help me

21/06/2017

Posted by:
andrew

andrew Avatar

Hi

If the ADCs are showing up on I2C detect then it could be a software issue causing the problem. Can you try going through all of the steps on our I2C tutorial to make sure all of the necessary libraries are installed?

22/06/2017

Posted by:
dreshmaker

dreshmaker Avatar

Hey Andrew, thanks for the fast reply.i followed the steps on your tutorial and i forgot the dist-upgrade and in the file "/boot//config.txt" i added the line "dtparam=i2c1=on". but i wondered about that the line "dtparam=i2c_arm=on" already existed.i treid it again and now i get another error message:python demo-readvoltage.pyTraceback (most recent call last): File "demo-readvoltage.py", line 28, in <module> adc = ADCPi(bus, 0x68, 0x69, 12) File "/home/pi/ABElectronics_Python_Libraries/ADCPi/ABE_ADCPi.py", line 106, in __init__ self.set_bit_rate(rate) File "/home/pi/ABElectronics_Python_Libraries/ADCPi/ABE_ADCPi.py", line 261, in set_bit_rate self._bus.write_byte(self.__address, self.__config1)IOError: [Errno 121] Remote I/O error

22/06/2017

Posted by:
andrew

andrew Avatar

When you run "i2cdetect -y 1" is it coming up with 0x68 and 0x69?

IOError: [Errno 121] Remote I/O error means that it is having problems talking to the ADC chips so could you try changing the line in the demo-readvoltage.py script from

adc = ADCPi(bus, 0x68, 0x69, 12)

to

adc = ADCPi(bus, 0x68, 0x68, 12) and then try adc = ADCPi(bus, 0x69, 0x69, 12)

This will try running the script on a single ADC so we can check if it is one of the ADCs that is at fault.

If it still shows the same error on both ADCs then that could either mean both chips are not working or there is a problem with Linux that is stopping it from connecting to the I2C bus correctly. Do you have a spare SD card you could use to set up a clean install of Raspbian Linux just to make sure it isn't a problem with your current Raspbian install?

It may be worth checking the solder joints on the ADC Pi's GPIO header and the address select header to make sure that there are no dry joints or solder bridges.

22/06/2017

Posted by:
dreshmaker

dreshmaker Avatar

Man im stupid, i checked the the script adressing only one chip, same error, then the next chip.. error. Then i checked i2cdetect again and i´ve seen the default adress 0x6d and 0x6f... :D everthing is working fine. thanks a lot for your fast support!!!cheers, Jan

Sign in to post your reply


Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.