This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ADS1118 - Bizarre temperature data readings

Other Parts Discussed in Thread: ADS1118

Hi there,

I’m working on a project with a K-Type thermocouple using ADS1118 as an ADC and data converter. I’ve spent three days struggling read correct data from the chip.

My setup is as follows:

I have one thermocouple using one channel of the ADS1118 schematic Fig. 1

 Fig. 1

I have a 10KΩ pull-up resistor on DIN and pull-up enabled on DOUT, SCLK at 4Mhz and timings as Table 1:

 

tCSSC = 3.2917us

(min 100ns)

tSCLK = 250ns

(min 250ns)

tSPWH = 125ns

(min 100ns)

tSPWL = 125ns

(max 28ms)

tDIST = 125ns

(min 50ns)

tDIHD = 125ns

(min 50ns)

tDOPD = 41.7ns

(max 50ns)

tDOHD = 41.7ns

(min 0ns)

tCSDOD = n/a

(min 100ns)

tCSDOZ = 3us

(min 100ns)

tCSH =  ~1s

(min 200ns)

tSCCS = 3.125us

(min 100ns)

 Table 1.

When I program ADS1118 to read and convert data from the thermocouple I’ve readings around 0 degrees Celsius at environment temperature around 20-22 degrees Celsius.

The temperature is going up and down changing only between 0xFFFF and 0x00XX. Depending on how the PGA is programmed the data register changes in very limited boundaries. See Fig. 2, 3, 4, 5

 

N/A

Fig. 2

 

Fig. 3

Fig. 4

Fig. 5

 

When the ADS is programmed to read and convert data from the internal sensor it gives temperature readings around a 100 degrees Celsius and above. Fig. 6, 7, 8, 9

 

N/A

Fig. 6

Fig. 7

Fig. 8

Fig. 9

I have tried many different setups without any succes. I tried wiring another K-Type thermocouple on the other ADS1118 channel without the filter – it measuring the same.

I red carefully every post here in the support forum. I tried to work with CS always low and I see that the ADS1118 DRDY asserts low every 7.86629 mS – the data reading is the same. Fig. 10

Fig. 10

 

I forgot to mention that I'm using Labfacility K-Type thermocouple with Miniature Plug & Socket Connector. I've measured that thermocouple and the results are matching  with the K-Type Thermocouple Reference Table. I have more than one thermocouple and I've tried with all of them. 

What I’m doing wrong?

 

Best regards,

Zhivko Zhelev

 

 

 

 

 

 

 

 

 

  • I've just fixed the problem with the incorrect reading from the chip sensor. It's my fault I didn't consider the following:

    "The temperature measurement mode of the ADS1118 is configured as a 14-bit result when enabled. Two bytes
    must be read to obtain data. The first byte is the most significant byte (MSB), followed by a second byte, the
    least significant byte (LSB). The first 14 bits are used to indicate temperature. That is, the 14-bit temperature
    result is left-justified within the 16-bit result register and the last two bits always read back as '0'. One 14-bit LSB
    equals 0.03125°C. Negative numbers are represented in binary twos complement format." 

    It's now corrected!

    As far as I understand ADS1118 shall provide this calculation automatically, i.e once read the temperature i should get the exact temperature without any further calculations?! Is there a chance that it is required to read first the internal sensor's data and then the thermocouple and sum that values?  

    Best Regards,

    Zhivko Zhelev 

  • Hi Zhivko,

    The ADS1118 provides two separate mesurements:  It provides the conversion results of the voltage across thermocouple terminals (Volts) and the conversion of the temperature reading of the internal temperature sensor in degrees celsius (C).  In a precision thermocouple measurement, the user will use the voltage measurement of the thermocouple terminals, and the internal temperature sensor readings (temperature of the cold junction) and perform the appropriate cold junction compensation and voltage to temperature conversion in the microcontroller (or computer).

    One typical way of performing the cold junction compensation is described in detail on page 6 of the application Note: "Precision Thermocouple Measurement with the ADS1118" (SBAA189).   Please find link below..

    http://www.ti.com/lit/an/sbaa189/sbaa189.pdf

    Please let me know if you have any questions,

    Thank you and Best Regards,

    Luis

  • Hi Luis,

    I just realized the above :) thanks a lot for your support. I'm already working on it.

    Have a nice day!

     

    Zhivko 

  • Dear Zhivko,

    I am a new user of microcontrollers and I wonder if you have the code for this project with the ADS1118? is there any way you can help me. in my case I dont know how to read it at all.

    Regards,

    Daniel Hercules