In this video we show how the parameter A,B and C front the thermistor SteinhartHard equation can be obtained using Solver. The equation is:
1/T = A + B*ln (R) + C*ln(R)^3
in where R = resistance in ohms
T = temperature, Kelvin
The original data from a 10K thermistor was imported from a pdf file :
https://www.bapihvac.com/wpcontent/u...
The imported data was converted in to columns in excel. Through the use of Solver, the parameters A,B and C were obtained. Finally, the thermistor setup was demonstrated in an Arduino Simulator.
The code here...copy and paste in your IDE.
// C++ code
//UPR_Arecibo
//TEQU 4022
// Technology in Industrial Chemistry Proceses
//https://upra.edu/fisicaquimica/progr...
int ADC_A0;
float V_ARD;
float R2_value;
float Temp;
float A =0.000968178520318206;
float B = 0.000259752726776477;
float C = 1.56294141382957E09;
void setup()
{
Serial.begin(9600);
Serial.println("ADC Volts R Temp,C");
}
void loop()
{
ADC_A0 = analogRead(A0);
V_ARD = ADC_A0*5.0/1023.0;
R2_value = V_ARD*10.0/5.0/(1V_ARD/5.0);
R2_value = R2_value*1000;
Temp =1/(A+B*log(R2_value)+C*log(R2_value)*log(R2_value)*log(R2_value));
Temp = Temp 273.15;
Serial.print( ADC_A0);
Serial.print(" ");
Serial.print (V_ARD);
Serial.print(" ");
Serial.print(R2_value);
Serial.print(" ");
Serial.println(Temp,3);
delay (1000);
}