Hello,
I am using the EVAL-CN0391-ARDZ Shield and communicating with it through Arduino UNO. I would like to use the shield and K-type thermocouples to achieve high rate temperature measurements, and I have followed the example provided on the Wiki page https://wiki.analog.com/resources/eval/user-guides/arduino-uno/reference_designs/demo_cn0391 but I cannot seem to get the SPS rate increased to a desired amount.
I understand that the Shield is using the AD7124-8 chip, so I have also followed the data sheet https://www.analog.com/media/en/technical-documentation/data-sheets/ad7124-8.pdf and tried to change the power mode from low to full in hope that it would increase the sampling rate. According to the data sheet, the full power mode allows the total sampling rate of the 4 channels to be 19200 SPS. However, I am getting nowhere close to a higher sampling rate than 2Hz, and this is just using one channel.
So far, using the provided example https://github.com/analogdevicesinc/arduino/tree/master/Arduino%20Uno%20R3/examples/CN0391_example, I have tried changing the delay time, setting the power mode to full by changing the 0 to 3 (according to the data sheet for AD7124-8 on page 81) in the setValue function, and comment out all the other Serial.print so I can increase the SPS rate,
// Set _ADC_Control 0x01 regNr = AD7124_ADC_Control; //Select _ADC_Control register setValue = AD7124_ReadDeviceRegister(regNr); setValue |= AD7124_ADC_CTRL_REG_DATA_STATUS; // set data status bit in order to check on which channel the conversion is setValue |= AD7124_ADC_CTRL_REG_REF_EN; setValue |= AD7124_ADC_CTRL_REG_POWER_MODE(3); //set low power mode setValue &= 0xFFFF; AD7124_WriteDeviceRegister(regNr, setValue); // Write data to _ADC delay(ms_delay);
but I have seen no improvements on the SPS rate. Even with low power, according to the data sheet, the output data rate can reach up to 2400 SPS, so I would like to know what I can do to increase my data output rate from the thermocouples.
Kind regards,
Oscar