Electrical – How to read temperature with STM32F103C8T6?


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

Best Answer

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.