In this project, we designed a temperature monitoring system based on the STM32F401CB microcontroller connected to an LM35 temperature sensor. The system reads ambient temperature in real-time and transmits the data via UART communication to a Virtual Terminal in Proteus, eliminating the need for an LCD display. This approach simplifies the system while saving power and cost. The LM35 is an analog temperature sensor that outputs a linear voltage proportional to temperature (10 mV/°C), making it ideal for use with the STM32's internal ADC. This project is perfect for beginners who want to learn how to read analog data, implement UART communication, and understand ADC usage in STM.
How to use
You can copy this code below and paste it into the Keil uVision5. Do the wiring in Proteus 8 Professional as shown in the schematic image below. Don't forget to make hex file after you build the code.
Now you can start the simulation. Happy learning.
If your simulation are correct than the result will be like this:
https://youtu.be/Gw90Uxyic94?si=Jl254Wqpc13Ljlgu
Comments