JoeCharlieH
JoeCharlieH

Reputation: 21

Using ADS1x15 library with ADS1114 in Python/Micropython

I'm a little bit new with Micropython and a little experienced with Python3. I have a doubt about the compatibility between the ADS1114 16-bits ADC and the ADS1x15.py Adafruit's Library. This library was specifically design for the ADS1115 and the ADS1015, which both have mutliple ADC channels, but the ADS1114 just has 1 with the posibility for single-ended or differential analog readings.

So the Python ADS1x15 library goes like this(for full code click on the ADS1x15 link):

MULTIPLEXER MASK

And when it's time to read a differential analog value (i.e AIN0 - AIN1) , the function in charge of performing that task needs the channels from wher it will read):

Read Analog Value on Channel 1

According to page 28 in the ADS111x datasheet on Table #2, 2nd line, 5th column, writing any value to those specific bits in the Configuration Register doesn't affect the ADS114.

Input Multiplexer Configuration

Should I use the ADS1x15 library or create a new one based on the allready existing one?

PS: This is my firts question here.

Upvotes: 1

Views: 818

Answers (1)

JoeCharlieH
JoeCharlieH

Reputation: 21

The author added two derived classes for the ADS1113 and ADS1114 and both of them use the almost the same methods as the regular original subclasses. Link to the github raised issue.

Upvotes: 1

Related Questions