Trying to get calibration data for TMP007 by following the TMP007 Calibration Guide, TMP007 Datasheet, and using the EasyCAL tool, but not able to match the EasyCAL tool in my own code.
I'm following this post's suggestion of looping over possible coefficients to minimize the estimated Tobj (compared to measured Tobj) using:
When I take the coefficients EasyCal found for me as a test for the above equation - I get an imaginary number.
Values:
Coefficients | s0 | a1 | a2 | b0 | b1 | b22 | c2 |
3.29E-14 | 1.75E-03 | -1.68E-05 | 0.00E+00 | 1.00E-05 | 2.50E-07 | 13.40 |
Temperature values used from example in the TMP007 Calibration Guide:
Tdie: 293.15˚K
T Obj (K) | 273.15 | 293.15 | 313.15 | 333.15 | 348.15 |
V(uV) | -87.4 | –27.4 | 45.9 | 133 | 208 |
Using the above to evaluate the fraction under the 4th root:
Numerator: 1.02E05
Denominator: -1.26E-13
Add the fraction to Tdie^4 = -8.1E17.
4th root of a negative == imaginary number.
What might I be missing here?