STEP 1 / 6ELECTRONICS

Weather Station Using STM32

This is an example of a basic "Weather Station using STM32 with ThingSpeak IoT." Powered by STM32 ARM Cortex (Blue Pill), this system detects environmental parameters like as temperature,…

Circuit Atlas themed schematic for Weather Station Using STM32
PROJECT#157
TRACKElectronics
PARTS06
STAGES06
STEP 1 / 6 · Overview

Know the mission before touching a wire.

Understand what you are making, prepare the right tools, and make the workbench safe.

01

Project details

Weather Station Using STM32 is a electronics project. This is an example of a basic "Weather Station using STM32 with ThingSpeak IoT." Powered by STM32 ARM Cortex (Blue Pill), this system detects environmental parameters like as temperature,…

Source pages
300-304
Named parts
6
Build goal
Working, tested prototype
02

Tools you need

  • Digital multimeter
  • Wire stripper and side cutters
  • Soldering iron with a fine tip
  • Current-limited bench supply

Use eye protection, good lighting, and a clean insulated surface throughout the build.

03

Safety precautions

  • Disconnect every power source before changing a connection.
  • Check component polarity, pinout, and supply voltage twice.
  • Use a current limit for the first power-up.
  • Keep liquids, loose metal, and uninsulated wires away from the bench.
Ready to continue?
STEP 2 / 6 · Parts library

Gather, identify, and understand every part.

Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.

NAMED PROJECT INVENTORY6 PART LINES
PARTTYPEQTYREADY
PSTM32 (Blue Pill) (Blue Pill)PART1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Weather Station Using STM32PART LEARNING VIEW

STM32 (Blue Pill) (Blue Pill)

A named project component whose exact role is defined by the source circuit and build guide.

What it does here

It performs a documented electrical, control, interface, or construction function in this project.

Buy / compare this part

Advantages

  • Selected for this project
  • Can be checked independently
  • Supports modular troubleshooting

Limitations

  • Substitutes may differ
  • Generic names can hide variants
  • Pinouts and ratings vary

Handling

  • Compare the received part with the source
  • Keep it labelled
  • Do not force connectors or adjusters

Specifications to verify

  • Use the exact model, value, package, and rating listed for STM32 (Blue Pill) (Blue Pill); similar-looking parts are not always interchangeable.
  • Confirm dimensions, ratings, connection method, polarity, and environmental limits.
MDHT11 SensorMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Weather Station Using STM32MODULE LEARNING VIEW

DHT11 Sensor

A sensor converts a physical condition into an electrical signal the circuit can measure.

What it does here

It provides project input as an analogue, digital, resistive, frequency, or calibrated signal.

Buy / compare this part

Advantages

  • Adds real-world awareness
  • Can usually be tested independently
  • Often supports calibration

Limitations

  • Readings can drift
  • Placement affects results
  • Some sensors need warm-up or calibration

Handling

  • Protect the sensing surface
  • Observe supply voltage and polarity
  • Keep signal leads away from noisy power wiring

Specifications to verify

  • Use the exact model, value, package, and rating listed for DHT11 Sensor; similar-looking parts are not always interchangeable.
  • Confirm supply range, output type, measurement range, accuracy, response time, and pin order.
MSoil Moisture SensorMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Weather Station Using STM32MODULE LEARNING VIEW

Soil Moisture Sensor

A sensor converts a physical condition into an electrical signal the circuit can measure.

What it does here

It provides project input as an analogue, digital, resistive, frequency, or calibrated signal.

Buy / compare this part

Advantages

  • Adds real-world awareness
  • Can usually be tested independently
  • Often supports calibration

Limitations

  • Readings can drift
  • Placement affects results
  • Some sensors need warm-up or calibration

Handling

  • Protect the sensing surface
  • Observe supply voltage and polarity
  • Keep signal leads away from noisy power wiring

Specifications to verify

  • Use the exact model, value, package, and rating listed for Soil Moisture Sensor; similar-looking parts are not always interchangeable.
  • Confirm supply range, output type, measurement range, accuracy, response time, and pin order.
MESP8266 WiFi ModuleMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Weather Station Using STM32MODULE LEARNING VIEW

ESP8266 WiFi Module

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It is the control centre and must use the documented board, pin map, supply, and logic level.

Buy / compare this part

Advantages

  • Reprogrammable and reusable
  • Large learning ecosystem
  • Complex behaviour remains changeable

Limitations

  • GPIO voltage and current are limited
  • Some pins affect boot or communication
  • Loads normally need a driver

Handling

  • Disconnect power before rewiring
  • Avoid static discharge
  • Never power motors, relays, or pumps directly from GPIO

Specifications to verify

  • Use the exact model, value, package, and rating listed for ESP8266 WiFi Module; similar-looking parts are not always interchangeable.
  • Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
MX2 LCD DisplayMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Weather Station Using STM32MODULE LEARNING VIEW

X2 LCD Display

An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.

What it does here

It presents the circuit result or acts on the physical world.

Buy / compare this part

Advantages

  • Makes system state visible
  • Can be tested separately
  • Supports clear troubleshooting

Limitations

  • Loads may exceed controller current
  • Polarity or driver direction can matter
  • Inductive loads create voltage spikes

Handling

  • Use the documented driver stage
  • Check polarity and load current
  • Add flyback protection for inductive loads

Specifications to verify

  • Use the exact model, value, package, and rating listed for X2 LCD Display; similar-looking parts are not always interchangeable.
  • Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
MESP8266-01 - controller board / ICMODULE1
What's this?Image, role, pros, cons, handling & specifications
Circuit Atlas themed schematic for Weather Station Using STM32MODULE LEARNING VIEW

ESP8266-01 - controller board / IC

A programmable controller that reads inputs, makes decisions, and drives the project's outputs.

What it does here

It is the control centre and must use the documented board, pin map, supply, and logic level.

Buy / compare this part

Advantages

  • Reprogrammable and reusable
  • Large learning ecosystem
  • Complex behaviour remains changeable

Limitations

  • GPIO voltage and current are limited
  • Some pins affect boot or communication
  • Loads normally need a driver

Handling

  • Disconnect power before rewiring
  • Avoid static discharge
  • Never power motors, relays, or pumps directly from GPIO

Specifications to verify

  • Use the exact model, value, package, and rating listed for ESP8266-01 - controller board / IC; similar-looking parts are not always interchangeable.
  • Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
Ready to continue?
STEP 4 / 6 · Source code

Confirm the hardware-only control path.

This project does not include firmware in the source. The circuit itself provides the required behaviour.

01

How to connect

  1. Match every controller label to the circuit view and source pin map.
  2. Join grounds before signal wires when separate low-voltage supplies are used.
  3. Keep motors, relays, pumps, and other loads on a suitable driver and external supply.

Common mistakes

Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.

Troubleshoot

Disconnect loads, continuity-test one path at a time, then test with a current limit.

02

Software preparation

No IDE, board package, library, or firmware upload is required for this project.

If you add a programmable controller as an extension, document its pin map separately.

03

How to upload code

The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.

Ready to continue?
STEP 5 / 6 · Build

Assemble, deploy, test, and troubleshoot.

Use the complete source notes in build order, then pass the final checks before calling the project finished.

ASSEMBLY

Build in functional stages

  • Power and regulation
  • Controller or processing stage
  • Inputs and sensors
  • Outputs and loads
  • Enclosure and strain relief
TEST

Power up safely

  • Inspect unpowered continuity first
  • Apply the lowest safe current limit
  • Measure supply rails before signals
  • Add one load at a time
  • Record expected and actual results
TROUBLESHOOT

Work from simple to complex

  • Confirm power, ground, polarity, and orientation
  • Compare each pin with the source
  • Test inputs separately from outputs
  • Replace only one variable at a time
  • Power off before every correction
PROJECT-SPECIFIC BUILD NOTES

Follow the documented instructions.

These notes come from this project's source and remain in their original order.

01

Project overview

Project build note

This is an example of a basic "Weather Station using STM32 with ThingSpeak IoT." Powered by STM32 ARM Cortex (Blue Pill), this system detects environmental parameters like as temperature, humidity, and soil moisture. This example is a "Weather Station using STM32 with ThingSpeak IoT." The DHT11 is a temperature and humidity sensor that, as the name suggests, is used to measure the atmospheric temperature and humidity in a specific environment or in a confined closed space. A soil moisture sensor, on the other hand, is used to measure the level of soil moisture on the earth. Both of these sensors are used in conjunction with one another.

Now let's have a look at how to interface the widely used DHT11 temperature, humidity, and soil moisture sensors with the STM32 microcontroller by utilizing the Arduino IDE. The block diagram for this process is shown below. Microcontroller manufacturer ST Microelectronics' STM32F103C8T6 is included on the Blue Pill development board, which is also known as the STM32. This information is provided for individuals who are unfamiliar with the STM32. It is a 32-bit ARM Cortex M3 controller that features a high clock frequency and is designed to be used in high-speed applications that have power constraints. Construction & Working principle

02

These are the primary materials for this project

Project build note

1. STM32 (Blue Pill) (Blue Pill) 2. DHT11 Sensor 3. Soil Moisture Sensor 4. ESP8266 WiFi Module 5. 16X2 LCD Display The next section provides a full description of each element.

03

DHT11 Sensor

Project build note

The temperature and humidity can both be measured with the help of the DHT11 sensor. A specific in-built NTC is included in the sensor so that temperature may be

accurately measured. It is equipped with an 8-bit microprocessor that will send the current temperature and humidity levels out as serial data via the one-wire protocol. This indicates that the sensor has only one data pin through which both the temperature and humidity values may be read, hence conserving pins on the microcontroller side of the equation. Additionally, the sensor is factory calibrated, making it simple to link with various other types of microcontrollers.

04

Soil Moisture Sensor

Project build note

The amount of water that is contained within the soil is what is known as the moisture content of the soil. This can be determined by employing a soil moisture sensor, which consists of two conducting probes that function as a probe and is capable of measuring the soil's moisture content. The difference in resistance that occurs between the two conducting plates allows it to calculate the amount of moisture that is present in the soil. The quantity of moisture that is present in the soil has an inverse relationship with the amount of resistance that is there between the two conducting plates.

05

ESP8266 WiFi Module

Project build note

The ESP8266 wifi module is an inexpensive standalone wireless transceiver that can be utilized for the construction of endpoint Internet of Things applications. The embedded programs can now have internet connectivity thanks to the ESP8266 wifi module. The TCP/UDP communication protocol is utilized in order to establish a connection with the server or client. A series of AT commands must be entered into the microcontroller in order for it to be able to communicate with the ESP8266 wifi module. Using a UART with a predetermined Baud rate, the microcontroller is able to connect with the ESP8266-01 wifi module (Default 115200)

06

STM32F103C8T6 (Blue Pill)

Project build note

The actual appearance of the Blue Pill Controller is depicted in the following figure (Figure 5). When compared to the official Arduino boards, these boards are available at a fraction of the cost while also having open-source hardware. The microcontroller that sits atop it is a STMicroelectronics STM32F103C8T6, if you were curious. In addition to the microcontroller, the board contains two crystal oscillators: one with a frequency of 8 MHz and the other with a frequency of 32 kHz. Both of these crystals

have the capability of driving the on-board real-time clock (Real Time Clock). Because of this, the microcontroller can function in deep sleep states, making it an excellent choice for use in applications that are powered by batteries.

07

Working

Project build note

The operation of the project is based on the continuous measurement of the weather monitoring parameters, the display of those parameters on a 16x2 LCD display, and the uploading of those parameters into a cloud platform. Temperature, humidity, and soil moisture values are some of the weather monitoring parameters that will be displayed. In this instance, I am utilizing the ThingSpeak IoT Platform in order to save the data in a setting that is real-time. The power supply for the project must be 5V for the STM32, which is also referred to as the Blue Pill Development Board. 3.3V~3.6V for ESP8266 Wi-Fi Module. Here, I simply used a potential divider circuit to convert 5V to 3.6V. The diodes D3, D4, and a 1K ohm resistor are linked in series, and the cutin voltage for each silicon diode is 0.7V. Because I am connecting these two diodes in series, the overall voltage will be 1.4V less than 5V, which will be 3.6V.

Ready to continue?
PROJECT ACHIEVED

You built Weather Station Using STM32.

You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.

Simple Pulse Generator project thumbnail featuring CD4017
NEXT ELECTRONICS ADVENTURE

Simple Pulse Generator

Ready to reuse what you learned in another project from the same track?

Start this project
Browse all 500 projects