shaz
Member level 4
- Joined
- Mar 9, 2005
- Messages
- 70
- Helped
- 10
- Reputation
- 20
- Reaction score
- 6
- Trophy points
- 1,288
- Activity points
- 1,995
hi, for thermocouple linearization i learned i need to use polynomials which can give me correct results, for example, in case of R-TYPE thermocouple for temperature lying between 250-1200 Celcius,
Temp.= 1.334584505E+01 + 1.472644573E+02 x V + -1.844024844E+01 x V^2 + 4.031129726E+00 x V^3 + -6.249428360E-01 x V^4 + 6.468412046E-02 x V^5 + -4.458750426E-03 x V^6 + 1.994710149E-04 x V^7 + -5.313401790E-06 x V^8 + 6.481976217E-08 x V^9 + 0.000000000E+00 x V^10
where V is thermocouple EMF voltage in mV
lets say voltage read is V=6.157mV, then temperature is, (using above equation)
Temp.= 1.334584505E+01 + 1.472644573E+02 x 6.157 + -1.844024844E+01 x 6.157^2 + 4.031129726E+00 x 6.157^3 + -6.249428360E-01 x 6.157^4 + 6.468412046E-02 x 6.157^5 + -4.458750426E-03 x 6.157^6 + 1.994710149E-04 x 6.157^7 + -5.313401790E-06 x 6.157^8 + 6.481976217E-08 x 6.157^9 + 0.000000000E+00 x 6.157^10
=> Temp = 649.9 'Celcius ~ 650 'Celcius
(for refrence i'm attaching R-type thermocouple output chart, linearization coefficents are also given in it, at bottom)
friends please advise me how can i solve this polynomial in C programming of micro-controller because using assembly it seems to be something like impossible. I can use Hi-tech C (if i plan to use PIC micro-controller PIC16F877) or Keil C51 (if i plan to use 8051 core micro-controller, like 89c52), which one do u advise.
i'll honour any help, any suggestion you advise.
thanks
Temp.= 1.334584505E+01 + 1.472644573E+02 x V + -1.844024844E+01 x V^2 + 4.031129726E+00 x V^3 + -6.249428360E-01 x V^4 + 6.468412046E-02 x V^5 + -4.458750426E-03 x V^6 + 1.994710149E-04 x V^7 + -5.313401790E-06 x V^8 + 6.481976217E-08 x V^9 + 0.000000000E+00 x V^10
where V is thermocouple EMF voltage in mV
lets say voltage read is V=6.157mV, then temperature is, (using above equation)
Temp.= 1.334584505E+01 + 1.472644573E+02 x 6.157 + -1.844024844E+01 x 6.157^2 + 4.031129726E+00 x 6.157^3 + -6.249428360E-01 x 6.157^4 + 6.468412046E-02 x 6.157^5 + -4.458750426E-03 x 6.157^6 + 1.994710149E-04 x 6.157^7 + -5.313401790E-06 x 6.157^8 + 6.481976217E-08 x 6.157^9 + 0.000000000E+00 x 6.157^10
=> Temp = 649.9 'Celcius ~ 650 'Celcius
(for refrence i'm attaching R-type thermocouple output chart, linearization coefficents are also given in it, at bottom)
friends please advise me how can i solve this polynomial in C programming of micro-controller because using assembly it seems to be something like impossible. I can use Hi-tech C (if i plan to use PIC micro-controller PIC16F877) or Keil C51 (if i plan to use 8051 core micro-controller, like 89c52), which one do u advise.
i'll honour any help, any suggestion you advise.
thanks