I’m not interested in measuring temperature.
I am interested is using a 24-bit ADC with a Programmable Gain Amplifier of x1 to x128 used in the:
Qwiic PT100 ADS122C04 - SPX-16770
I’m confused on how to use a Qwiic PT100 ADS122C04 simply as an ADC and be able to read the resulting data using SDA/SCL.
Which terminals should be used to connect a sensor - terminals 2 and 3?
Being able to change the ADC gain is also of interest.
To change the gain using an Arduino sketch the SparkFun_ADS122C04_ADC_Arduino_Library on Github contains the example sketch:
Example9_ManualConfig.ino
with the command:
mySensor.setGain(ADS122C04)_GAIN_1; // Set gain to 1
With a sensor hooked up to terminals 2 and 3 on the Qwiic PT100 is the ‘mySensor’ syntax the correct method just change the number after 'GAIN to set the desired gain amplification?
For example, would using one of the following commands in an Arduino sketch be the correct method/syntax to change the gain of the ADS122C04?
mySensor.setGain(ADS122C04)_GAIN_10; // Set gain to 10
mySensor.setGain(ADS122C04)_GAIN_50; // Set gain to 50
mySensor.setGain(ADS122C04)_GAIN_100; // Set gain to 100
mySensor.setGain(ADS122C04)_GAIN_128; // Set gain to 128
In the guide for the Qwiic 12-Bit ADC under the ‘Setup and Settings’ section the command .getGain() returns the gain of the programmable gain amplifier (PGA) inside the ADS1015.
Have I missed a similar command for the ADS122C04?
Thanks.