This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

STM32F103 internal temperature sensor

Hi

I am using STM32f103 and using its internal temperature sensor to measure ambient temperature.
At room temperature(25°C), i get different readings from chip to chip ranging from 23 to 39°C.

The formula to calculate temperature is as follows: Temperature (in °C) = {(V25 - VSENSE) / Avg_Slope} + 25. where, V25 = VSENSE value for 25°C Avg_Slope = Average Slope for curve between Temperature vs. VSENSE (given in mV/°C or µV/°C).

Do i need to calibrate V25 for each chip?

Regards,
Jasper

Parents
  • "You can get _way_ better with an ADC input and a cheap diode junction."

    you run into the same issues with a pn junction: it needs calibration, as the internal temp sensor is also a pn junction.

    one of the earlier comments is right on: the pn junction approach is helpful for measuring temperature CHANGES, unless you calibrate the sensor before hand.

    the pn junction is typically very very linear in its Vfwd vs. t relationship. the limitation (in terms of accuracy as well as resolution) is that with a 10-bit adc, your measurement is likely 1 - 2c off, assuming a single diode set-up.

Reply
  • "You can get _way_ better with an ADC input and a cheap diode junction."

    you run into the same issues with a pn junction: it needs calibration, as the internal temp sensor is also a pn junction.

    one of the earlier comments is right on: the pn junction approach is helpful for measuring temperature CHANGES, unless you calibrate the sensor before hand.

    the pn junction is typically very very linear in its Vfwd vs. t relationship. the limitation (in terms of accuracy as well as resolution) is that with a 10-bit adc, your measurement is likely 1 - 2c off, assuming a single diode set-up.

Children