STMicroelectronics AN3964 Temperature Measurement Application Note

How to design a simple temperature measurement application using the STM32L-DISCOVERY


STMicroelectronics AN3964 Temperature Measurement Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
12
File format
PDF
File size
400 KB
Published
06 August, 2012
Updated
30 September, 2023
Model
STM32L1
MD5 checksum
CA7668D78716B66C6DA9E3309F60BAFC

About this manual

This document details a method for implementing a temperature measurement application using the integrated temperature sensor of the STM32L1 microcontroller embedded on the STM32L-DISCOVERY board. The solution utilizes the device's internal peripherals and requires no additional hardware, displaying the chip junction temperature on an LCD.

What's inside

  • Introduction
  • Application overview
  • Temperature sensor
  • Temperature measurement and data processing
  • Application example description
  • Getting started
  • Setting up the board
  • Using the demonstration application
  • Temperature sensor calibration
  • Estimation of temperature sensor engineering tolerance

Specifications

Temperature range-40 °C to 85 °C
Maximum junction temperature150 °C
Linearity deviation+ 1%
ADC Reference Voltage3V
Bandgap accuracy+ 5 mV
Calibration data format12-bit unsigned number
Sampling rateEvery 2 seconds
CPU Frequency16 MHz

Frequently asked questions

Does the application require additional hardware?

No, the demonstration application does not require any additional hardware.

What is the difference between factory and user calibration?

Factory calibration data is stored during manufacturing, while user calibration allows the user to perform a two-point calibration to improve accuracy if factory data is missing or for better precision.

How is the temperature calculated?

The temperature is evaluated using linear approximation based on two calibration points (cold and hot) and the current ADC value.

Download PDF (400 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →