Skip to content

Firmware for stm32f103c8tc, which measure temperature by DHT11 temperature senor and print currrent temperature by UART.

Notifications You must be signed in to change notification settings

two-dimensional-array/temperature_measurement

Repository files navigation

Temperature Measurement

Firmware for stm32f103c8t6, which is do following tasks:

  • 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.

Hardware

  • Microcontroller - stm32f103c8t6
  • Temperature sensor - DHT11

About Project

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

About

Firmware for stm32f103c8tc, which measure temperature by DHT11 temperature senor and print currrent temperature by UART.

Topics

Resources

Stars

Watchers

Forks

Languages