Jump to content

DieITou

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    For arduino, yes, but you only need the calculation to go from voltage to temperature, and you should easily be able to do that in any language/reporting platform of your choice.
    The calculation is:
    // Thermistor R@25C #define TEMP_R 10000.0 // Thermistor B val #define TEMP_B 4200.0 // Kelvin offset #define TEMP_K 273.15 // 25C in Kelvin #define TEMP_REF (TEMP_K + 25.0) // to current through 3k resistor double i = (5.0 - v) / 3000.0; // resistance double r = v/i; // calculate temp from r double c = (TEMP_B * TEMP_REF); c /= TEMP_B + (TEMP_REF * log(r / TEMP_R)); c -= TEMP_K; if(c <= 0) { mb_temp = 0; } else if(c >= 999.0) { mb_temp = 999; } else { mb_temp = c; } Thermistor constants are defined above, then the basic calculations to go from the voltage across the sensor (v) to the temperature (mb_temp).
    NOTE: This calculation is slightly different from that in my code. My code is based on the voltage between the sensor and ground, so I have swapped it around in the above sample to work with the voltage across the sensor.