Instructions

IDUINO for maker’s life
www.openplatform.cc 35
More, the same item products has a little bit different A,B,C coefficients , which depends
your environmental temperature. If the recommended coefficients are not accurate
enough, you’d better amend the A,B,C coefficients by Thermistor Calculator tool.
3 Example
This is a simple code for the NTC thermistor module, Connection as below:
Example code :
******Code begin******
#include <math.h>
double Thermister(int RawADC) {
double Temp;
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))*
Temp );
Temp = Temp - 273.15;
return Temp;
}
void setup() {
Serial.begin(9600);
}
void loop()
{ Serial.print(Thermister(analogRead(0)));