Affordable and flexible platform to ease prototyping using a STM32F401RET6 microcontroller.

Internal temperature sensor !!!

30 Aug 2014

Does anyone knows how to access internal temperature sensor? They say it is connected to ADC_IN16 in datasheet but I couldn't find how to use it.

02 Sep 2014

Dowload mbed_src library to your mbed compiler. There you can search with "temperature" and find hal level mbed function to use it. In the reference manual more things are explained than in the datasheet. I hope someone publish how to use hal level apis with mbed compiler.

11 Dec 2018

A bit late to the party, but for future references:

include the mbed library with this snippet

AnalogIn adc(ADC_TEMP);
float temp = adc.read()*100;

Might work for other STM32 boards too, look for it in mbed-os\targets\TARGET_STM\TARGET_STM32F4\TARGET_STM32F401xE\TARGET_NUCLEO_F401RE\PeripheralPins.cPeripheralPins.c file

Please log in to post a reply.