I did the seme procedure, I used this small function to calculate the compensated value accounting for gain and offset using a linear approximation: PV=Module.readCelsius(); //temperature value read by the MAX6675 module //function that compensates gain and offset: //known_T0 and known_T1 are the first and the second known reference temperatures (can be ice bath and boiling temperatures) //reported_T0 and reported_T1 are the corresponding temperatures reported by the module connected to the arduino at each test float PV_comp(float known_T0,float reported_T0,float known_T1,float reported_T1) { //compensated temperature concidering offset and gain error PV = (PV-reported_T0)*((known_T1-known_T0)/(reported_T1-reported_T0)); return(PV); } //call the function to overwrite the Previous value with the compensated value: PV = PV_comp( .... , .... , .... , .... ); //
Evolution sensors and controls makes and sells thermocouples and various connectors and accessories. They are located in Florida, USA, so I don't know how good of a source they are for people outside the US. (If you call them you can talk to actual people that know what they are talking about, btw.) (I'm not associated with them, but I did buy some thermocouples from them.)
Made a mistake at some point. Said wires of thermo couple were soldered together. This is not true. They are WELDED together. Also, MISO protocol should be SPI protocol.
I did the seme procedure, I used this small function to calculate the compensated value accounting for gain and offset using a linear approximation:
PV=Module.readCelsius(); //temperature value read by the MAX6675 module
//function that compensates gain and offset:
//known_T0 and known_T1 are the first and the second known reference temperatures (can be ice bath and boiling temperatures)
//reported_T0 and reported_T1 are the corresponding temperatures reported by the module connected to the arduino at each test
float PV_comp(float known_T0,float reported_T0,float known_T1,float reported_T1)
{
//compensated temperature concidering offset and gain error
PV = (PV-reported_T0)*((known_T1-known_T0)/(reported_T1-reported_T0));
return(PV);
}
//call the function to overwrite the Previous value with the compensated value:
PV = PV_comp( .... , .... , .... , .... ); //
Evolution sensors and controls makes and sells thermocouples and various connectors and accessories. They are located in Florida, USA, so I don't know how good of a source they are for people outside the US. (If you call them you can talk to actual people that know what they are talking about, btw.) (I'm not associated with them, but I did buy some thermocouples from them.)
Made a mistake at some point. Said wires of thermo couple were soldered together. This is not true. They are WELDED together. Also, MISO protocol should be SPI protocol.
keep up the good work
TIL. Thanks!