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.

[TMP006] is this a right value?

Other Parts Discussed in Thread: CC2541

Hello.

Got a question about the TMP006's two value.

i got the value like above that picture.

is that right? or wrong?

and please check using fomula in my source.

is it right?

private double calculateTemperature(){


double Tdie = valueTamb * 0.03125;
Tdie += 273.15; // T Die temperature

double Vobj = valueVOBJ * 156.25;
Vobj /= 1000;
Vobj /= 1000;
Vobj /= 1000; // nV -> V

double tdie_tref = Tdie - TMP006_TREF;
double S = (1 + TMP006_A1*tdie_tref +
TMP006_A2*tdie_tref*tdie_tref);
S *= TMP006_S0;
S /= 10000000;
S /= 10000000;

double Vos = TMP006_B0 + TMP006_B1*tdie_tref +
TMP006_B2*tdie_tref*tdie_tref;

double fVobj = (Vobj - Vos) + TMP006_C2*(Vobj-Vos)*(Vobj-Vos);

double Tobj = Math.sqrt(Math.sqrt(Tdie * Tdie * Tdie * Tdie + fVobj/S));

Tobj -= 273.15; // Kelvin -> *C

return Tobj;


}

didn't receive 'NACK' signal in CC2541.

if needs more android source for answering my question, hang my git.

--------- add : i bought this module.

------------------------------------------

-------------------------------------------------------------------------------------------------

     secondary picture.

      

  • This is a holiday weekend in the United States; we will review your question when we return to work next week. Thank you for your patience.
  • kyungwoo Min ,

         I'm not really sure I can answer you question with the info you provided. The sample code you provided doesn't have all the Variables I need to calculate manually.  I have a few questions for you to see if I can get to your questions.

    1.  Are you simply trying to measure temperature at a given distance using the default coefficients?

    2. What is the object?

    3. How far is the TMP006 from the object?

    4. If you can give me the info listed below,  I can manually check the numbers to see if you are correct or not.

    What I need:

    Temperature of the object you are trying to measure (use thermal couple or other contact measurment system.  We call this Tref)

    Die temp   (Ltmp we call this local temp)

    Sensor ouput voltage in uV  

    Coefficients you are using in you formula...  (a1,a2,b0,b1,b2,c2,d and S0)

     

    Regards,

    Tommy Santoyo

    Sensing Apps Team

  • thank you for answering my question.

    1. Yes. Once, simply to measure the temperature at a predetermined distance using the default coefficient. The final goal is to measure the temperature of the temple in body.

    2. I am trying to measure the temperature of the temple by attaching sensors to the pillow. I will attach the pictures again measuring the temperature of the temple.

    3. The photo above is the temperature measured without that specific. I'll attach a picture again measured at approximately 3.5cm away side temples.

    4. - 1 : The other sensor marked 33.5 degrees.(Tref)
    - 2: The value of the register for the sensor voltage in the first picture is read from the sensor 0xffce. The value of the register for the sensor
    voltage in the second picture is 0x00bb read from the sensor.
    - 3: Like Die Temperature In addition, in the first picture, the value read from the 0x032C Local Temperature (0x01) register, and the
    second figure the value read from the 0x0380 Local Temperature (0x01) register.
    - 4: These are substantially the definition used in the calculation in the Android.

    private static final double TMP006_B0 = -0.0000294;
    private static final double TMP006_B1 = -0.00000057;
    private static final double TMP006_B2 = 0.00000000463;
    private static final double TMP006_C2 = 13.4;
    private static final double TMP006_TREF = 298.15;
    private static final double TMP006_A2 = -0.00001678;
    private static final double TMP006_A1 = 0.00175;
    private static final double TMP006_S0 = 6.4;

    also the second picture was used in this formula.