- Collect temperature measurements with 1 min interval and keep up to 100 records in the RAM.
- When temperature value is below 10°C, change measurement interval to 20 seconds and return it to 1 min back when temperature is above 15°C.
- Using collected measurements - save minimum, maximum and average values to the persistence storage (Internal Flash) each 30 min.
- Print current temperature via UART output.
- Microcontroller - stm32f103c8t6
- Temperature sensor - DHT11
This project is created in STM32CubeIDE.
Library for temperature sensor DHT11 is contained in dht11.h and dht11.c files.
Library for temperature measurements is contained in temperature.h and temperature.c files.
Example of printed message via uart output.
Current temperature: 22.1\r\n