-2
\$\begingroup\$

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

\$\endgroup\$

closed as too broad by winny, Michel Keijzers, Finbarr, RoyC, PeterJ Nov 24 '18 at 14:00

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 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
2
\$\begingroup\$

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.

\$\endgroup\$

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