Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Hi guys, I gave up figuring out this problem can someone help me. A thermistor i

ID: 1862173 • Letter: H

Question

Hi guys,

I gave up figuring out this problem can someone help me.


A thermistor is a sensor with an electrical resistance that varies with temperature.

By measure the resistance of a thermistor (or by using the thermistor in a voltage divider and measuring the voltage), one can use a thermistor as a temperature

sensor. The calibration formula for a particular thermistor is :




where Rt is the resistance of the thermistor in ohm, and the calibration constants are

a1 = 1.009250 x 10

T = 1/a1 + a2logRt + a3(logRt)3

Explanation / Answer

void setup()


{


Serial.begin(9600);




pinMode(A0, INPUT);


}


void loop() {


float Rt=analogRead(A0);


float a1 = .001009250 ;


float a2 = .0002378405;


float a3 = .0000002019203 ;


float b=double log (double __Rt); // natural logarithm of x

float c=double square (double __b); // square of x

float d= a1 + a2* b + a3*c*b;

int e= 1/d ;


}

String temp = String((int)(e));


Serial.println(temp);

delay(1000);


}


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote