AnsweredAssumed Answered

Calculate Temperature Sensor STM32L Discovery

Question asked by hernandez_vazquez.jo on May 11, 2013
Latest reply on May 12, 2013 by baird.hal.001
hi , I have a question , when I  calculate the temperature with this code using the formulate in the data sheet:

val_adc=ADC_GetConversionValue(ADC1);          
vsense=(val_adc*Vref)/0xfff;
val_adc=(vsense/Avg_Slope)-273.15;
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... 

Outcomes