loading modules for ADS1115

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: loading modules for ADS1115

Post by adafruit_support_mike »

You'll need two ADS1x15 objects, each of which knows the I2C address for one of the chips:

Code: Select all

adc1 = ADS1x15(ic=ADS1115, address=0x48)
adc2 = ADS1x15(ic=ADS1115, address=0x49)

User avatar
mglenn12
 
Posts: 39
Joined: Thu Dec 12, 2013 11:56 am

Re: loading modules for ADS1115

Post by mglenn12 »

worked like a charm. thanks, that was easy.

User avatar
mglenn12
 
Posts: 39
Joined: Thu Dec 12, 2013 11:56 am

Re: loading modules for ADS1115

Post by mglenn12 »

I have learned a great deal in the last few months and now I'm 'upgrading' to Python 3.2. The program calling the various ADS1115 library files is encountering the conversion errors from 3 to 2. Are there ADS1115 library files in Python 3?

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: loading modules for ADS1115

Post by adafruit_support_mike »

The ADS1115 module isn't part of the core Python distribution at all. They're external code we've written, using the official rules for doing that.

Most of Python exists in the form of an external module though, so the distinction is kind of academic at the language level. The main difference is that the ADS1115 module doesn't come with a standard Python installation.

What are the exact errors you're getting?

User avatar
vishruth
 
Posts: 1
Joined: Wed Feb 08, 2017 12:52 pm

Re: loading modules for ADS1115

Post by vishruth »

Can you please share how did you solve the problem of "IOError : [Errno 5] Input/output error"
This is the second module of ADS1115 in which I am facing the problem. Initially it runs fine on breadboard but when I solder it , I face this error. Please inbox me if you are ashamed to post it.

thank you

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”