Skip to main content
Visitor II
April 12, 2016
Question

ADC value to temperature

  • April 12, 2016
  • 1 reply
  • 1119 views
Posted on April 12, 2016 at 21:28

Hello,

i now managed to reada analog value from my temperature sensor and i am now wondering how i can convert that value (3643) to a temperature? I didn't see any kind of formula how the value is calculated with Vref (reference Voltage) and how i can get the input voltage on its own. Do you have any ideas how i can do this?

Best regards

#adc-vrefint #adc
    This topic has been closed for replies.

    1 reply

    Technical Moderator
    January 27, 2017
    Posted on January 27, 2017 at 11:57

    Refer to exemple in Cube eg STM32Cube_FW_L4_V1.6.0\Projects\STM32L476RG-Nucleo\Examples_LL\ADC\ADC_TemperatureSensor

    Computation of ADC value to temperature is available in ll_adc lib : __LL_ADC_CALC_TEMPERATURE 

    Refer to AN3964 for theory  

    http://www.st.com/content/ccc/resource/technical/document/application_note/b9/21/44/4e/cf/6f/46/fa/DM00035957.pdf/files/DM00035957.pdf/jcr:content/translations/en.DM00035957.pdf

     

    Hope it help 

    Olivier 

    Technical Moderator
    January 27, 2017