2016-09-26 05:54 AM
Hi Team ,
We are working on LIS2DH12 chip for accelerometer and temperature readings . Hardware Cicuit details :a. VDD and VDDIO : 1.8 V We are facing issue in the temperature readings. Please find below for the steps for reading the temperature value .
Sensor Initialization for Temperature :
a. Initialization of the temperature sensor : TEMP_CFG_REG to 11b. CTRL_REG4 BDU bit set to 1Reading the temperature :
a. Reading the OUT_TEMP_L (0Ch), OUT_TEMP_H (0Dh)b. Convert the value of OUT_TEMP_H register content ( which is in 2s complement ) to decimal .b. Temperature Value = 25C (Reference Temperature ) + ( Converted decimal value from above step .This value may be + or - as per value )We are getting value as 0x09,0x08,0x0a in OUT_TEMP_H (0Dh) register content. Our ambient temperature is 22 to 23 C.But as per calculation we are getting temperature as (25+10)=35 which is not correct . Please let us know what shall be valid reference temperature ( currently used as 25 ) for VDD 1.8 V . Datasheet says that reference temperature for VDD 2.5 V is 25 . What shall be reference temperature for VDD 1.8 V.Thanks ,Anil N
2016-10-07 08:04 AM
The temperature sensor can be used to measure temperature variations. It isn't suitable to return absolute temperatures measures. The value represents difference respect to a reference not specified value. The reference temperature is not guaranteed to be 25C as you assumed. You would need to calibrate all your devices to get reference value for each device. The reference temperature is not dependent on Vcc.
Best regards
Miroslav2016-10-13 05:36 AM
Hi,
Can we calibrate each device at production line (i.e at 25C) and save the value once and then count on the measured value for calculations in feature ?Thanks2016-10-13 06:36 AM
Unfortunately it is not possible to calibrate the device (write any calibration constants into the sensor). I suppose you have some microcontroler in your device, so you would have to store the calibration value in the microcontroler memory and also calculate the corrected value by the microcontroler.
Best regards
Miroslav
2016-10-14 12:10 AM
2016-10-25 04:27 AM
I double checked your issue with application team, and they pointed out the temperature sensor operation is guaranteed only in range 2V-3.6V (see datasheet page 11).
If in your case the Vcc and Vddio is only 1.8V the operation of the temperature sensor is not guaranteed.
Best regards
Miroslav