Two things to consider:
1. Vref is 3V on the discovery board, may be something else on another board.
2. The internal temperature sensor has a large variation in offset, so much so that ST recommends it be used only for relative temperature. To use it for actual temperature, let the processor board stabilize at ambient temperature, then add a numerical correction offset to get the ambient temperature. Then place the board in different ambient temperatures and see if the results are reasonable.
Calibrating each board this way in a production environment might be impractical. An external temperature sensor is often used in this case.
Saturday, May 11, 2013 7:44 PM
Calculate Temperature Sensor STM32L Discovery
hi , I have a question , when I calculate the temperature with this code using the formulate in the data sheet:
in the data sheet the values are:
Vref=3V Avg slope=1.61mV
i calculated 33ºC , but its strange, i dont know if that result its correct o is wrong...