logo elektroda
logo elektroda
X
logo elektroda

NTC Thermistor: How to Fit Resistance vs Temperature Data to a Formula for MCU Use

12 7
ADVERTISEMENT
  • #1 21683520
    John Curtin
    Anonymous  
  • ADVERTISEMENT
  • #2 21683521
    Giovanni Di Maria
    Anonymous  
  • ADVERTISEMENT
  • #3 21683522
    John Curtin
    Anonymous  
  • ADVERTISEMENT
  • #4 21683523
    David Ashton
    Anonymous  
  • ADVERTISEMENT
  • #5 21683524
    John Curtin
    Anonymous  
  • #6 21683525
    Giovanni Di Maria
    Anonymous  
  • #7 21683526
    Richard Gabric
    Anonymous  
  • #8 21683527
    Jane Smith
    Anonymous  

Topic summary

The discussion addresses fitting resistance versus temperature data from an NTC thermistor to a formula suitable for microcontroller (MCU) use. The original data shows resistance values at various Celsius temperatures. A recommended approach is to fit the data to an exponential curve, for example, using a formula like R = 29.8623 * exp(-0.0399 * T), where R is resistance and T is temperature. Data fitting can be performed manually or with software tools such as Excel or MagicPlot. Another practical method involves creating a voltage divider with the NTC and a fixed resistor (e.g., 15 kΩ) to convert resistance changes into measurable voltage for the MCU ADC input. Adding a parallel resistor can help linearize the sensor response. Alternative sensor suggestions include the DS18B20 digital temperature sensor, which offers a simple one-wire interface and good accuracy. The discussion also highlights the importance of selecting appropriate series resistor values to optimize measurement linearity and fit. Additional resources such as an Adafruit article were recommended for further guidance.
Summary generated by the language model.
ADVERTISEMENT