Building a Weather Station With STM32F103C8T6

by lorry in Circuits > Electronics

102 Views, 0 Favorites, 0 Comments

Building a Weather Station With STM32F103C8T6

STM32F103C8T6.png

The STM32F103C8T6 is a popular microcontroller from STMicroelectronics, featuring an ARM Cortex-M3 core. In this project, we'll guide you through building a weather station using the STM32F103C8T6, which can measure temperature, humidity, and atmospheric pressure and display the data on an LCD screen.

Supplies

  1. STM32F103C8T6 Development Board
  2. DHT22 Temperature and Humidity Sensor
  3. BMP180 Pressure Sensor
  4. 16x2 LCD Display
  5. Breadboard and Jumper Wires
  6. Power Supply (5V)

Connect DHT22 Sensor

DHT22 Sensor.png
  • Connect the data pin of the DHT22 sensor to a GPIO pin of the STM32F103C8T6.

Connect BMP180 Sensor

BMP180 Sensor.png
  • Connect the SDA and SCL pins of the BMP180 sensor to the corresponding I2C pins of the STM32F103C8T6.

Connect LCD Display

  • Connect the VCC and GND pins of the LCD display to the 5V and GND pins of the STM32F103C8T6, respectively.
  • Connect the RS, RW, and E pins of the LCD display to GPIO pins of the STM32F103C8T6 for control.
  • Connect the D4-D7 pins of the LCD display to GPIO pins of the STM32F103C8T6 for data.

Power Supply

  • Power the STM32F103C8T6, sensors, and LCD display with a 5V power supply.

Programming

Write a program for the STM32F103C8T6 to read data from the DHT22 and BMP180 sensors and display the temperature, humidity, and atmospheric pressure readings on the LCD display. Use the STM32CubeIDE or STM32CubeMX software to develop and compile the code.

Testing

DIY ESP32 Weather Station (connected to the Internet)

Upload the program to the STM32F103C8T6 and power up the circuit. Verify that the temperature, humidity, and pressure readings are displayed correctly on the LCD display. You can also add features such as data logging or remote monitoring using communication interfaces like UART or Ethernet.


Conclusion


Building a weather station with the STM32F103C8T6 demonstrates its capabilities in measuring environmental parameters and displaying the data. This project can be expanded with additional sensors or functionalities for more comprehensive weather monitoring applications.