2016-04-12 12:28 PM
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 #adc2017-01-27 02:57 AM
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
Hope it help
Olivier
2017-01-27 06:39 AM
Hi again
Gustamko.Master
Apology for my first answer about STM32
For STM8 relevant software exemple and application note are available here