How can I read the temperature using an NTC thermistor with an STM32F103C8T6 board??

  • 1
    \$\begingroup\$ The processor you're using has an internal temperature sensor attached to one of the ADC channels you could use too. \$\endgroup\$ – Colin Nov 20 '18 at 15:12
  • \$\begingroup\$ @Colin What if he wants to read the temperature somewhere else other than the processor? \$\endgroup\$ – Nick Alexeev Nov 20 '18 at 21:26
  • \$\begingroup\$ He is free to do so, it was intended to be a useful hint in case he was unaware, nothing more. \$\endgroup\$ – Colin Nov 20 '18 at 21:29

Use a pullup resistor with the thermistor to make a voltage divider. The resulting voltage goes to an ADC input on the processor.

Write some code that reads the ADC value and calculates the equivalent temperature. Don't forget that a thermistor's response is nonlinear.


Not the answer you're looking for? Browse other questions tagged or ask your own question.