WEATHER STATION Using STM32 (Blue Pill) And ThingSpeak loT
Electronics For You|January 2023
This simple weather station detects environmental parameters such as temperature, humidity, and soil moisture. The temperature and humidity sensor DHT11 used measures the atmospheric temperature while the soil moisture sensor measures moisture in the earth. Block diagram of the project is shown in Fig. 1.
PAMARTHI KANAKARAJA AND DR CH SRI KAVYA K.
WEATHER STATION Using STM32 (Blue Pill) And ThingSpeak loT

Circuit for regulated power supply required for the project is shown in Fig. 2. It is built around 12V-0-12V, 750mA step-down centre-tapped transformer, full-wave rectifier comprising two 1N4007 diodes (D1 and D2), 5V regulator 7805 (IC1), and two electrolytic capacitors: 1000µF, 25V (C1) and 100μF, 25V (C2).

The main circuit, shown in Fig. 3, is built around soil moisture sensor module DHT11, STM32F103 board known as Blue Pill, LM016L LCD, ESP8266 board, and a few other components. The power requirement of this project is 5V for STM32 and 3.3V 3.6V for ESP8266 Wi-Fi module.

5V is converted to 3.6V through the potential divider circuit formed by silicon diodes D3 and D4 and the 1k resistor connected in series with them. Each silicon diode's cut in voltage is 0.7V. So, the two diodes in series drop the voltage by 1.4V and we get 5V-1.4V = 3.6V.

As shown in Fig. 3, the DHT11 sensor is used to measure temperature and humidity. The sensor comes with a dedicated in-built NTC thermistor to measure temperature. It has an 8-bit microcontroller on-board to output the values of temperature and humidity as serial data through one-wire protocol. The sensor has only one data pin through which both temperature and humidity values can be read, thus saving pins on the microcontroller side. The sensor is factory calibrated and easily interfaces with a microcontroller. Pin details of DHT11 are shown in Fig. 4 and the STM32F103C8T6 (Blue Pill) is shown in Fig. 5.

Voltage regulator for STM32 can be replace by 5V battery or 5V DC adaptor. The STM microcontroller is used for getting the sensor data and displaying it on LCD and also sending the data to the Wi-Fi board. The ESP receives the data and uploads it to ThingSpeak cloud. But before that we need to set up the ThingSpeak and get the API token to incorporate it in the code.

This story is from the {{IssueName}} edition of {{MagazineName}}.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

This story is from the {{IssueName}} edition of {{MagazineName}}.

Start your 7-day Magzter GOLD free trial to access thousands of curated premium stories, and 9,000+ magazines and newspapers.

MORE STORIES FROM ELECTRONICS FOR YOUView all
Wearable Automatic ASSISTANCE GLOVE
Electronics For You

Wearable Automatic ASSISTANCE GLOVE

This proposed prototype works by wearing the glove and either touching a specific finger with the thumb or pressing a special switch.

time-read
3 mins  |
October 2024
BLUETOOTH CONTROL Through Mobile
Electronics For You

BLUETOOTH CONTROL Through Mobile

Creating a Bluetooth-controlled device with an Arduino Uno and an HC-05 Bluetooth module enables control of lights or even relays to manage AC appliances wirelessly using an Android smartphone.

time-read
7 mins  |
October 2024
Raspberry-Pi Based WAVEFORM GENERATOR
Electronics For You

Raspberry-Pi Based WAVEFORM GENERATOR

A waveform generator is a commonly used test and measurement instrument in electronics laboratories.

time-read
5 mins  |
October 2024
World's Smallest Programable INDUSPHONE DESIGN
Electronics For You

World's Smallest Programable INDUSPHONE DESIGN

Smartphones have become a necessity in daily life.

time-read
4 mins  |
October 2024
AUTOMATIC WIPER CONTROL For Three/Four Wheelers
Electronics For You

AUTOMATIC WIPER CONTROL For Three/Four Wheelers

The integration of a 555 timer and L293D motor driver in an automatic wiper control device presents a practical and efficient solution for enhancing driver safety and convenience.

time-read
3 mins  |
October 2024
EMS Vs Components Manufacturing: EMPLOYMENT IN ELECTRONICS INDUSTRY OF INDIA
Electronics For You

EMS Vs Components Manufacturing: EMPLOYMENT IN ELECTRONICS INDUSTRY OF INDIA

A recent article in a leading business newspaper reported that industry executives, during a government meeting, had suggested that EMS firms create more employment than electronics component manufacturers-for every rupee invested. To verify this claim, a review was conducted with both component manufacturers and EMS firms, as well as several trade associations.

time-read
7 mins  |
October 2024
Why Did Rajguru Electronics, A Leading Distributor Of Components And Development Boards, Enter Manufacturing?
Electronics For You

Why Did Rajguru Electronics, A Leading Distributor Of Components And Development Boards, Enter Manufacturing?

After nearly three decades in distribution, Rajguru Electronics pivoted to manufacturing, setting up a unit for its ADIY subsidiary in Bengaluru. EFY's Yashasvini Razdan interviewed CEO Dileep Jain to explore the reasons behind the shift and the company's growth strategy.

time-read
2 mins  |
October 2024
"We Are Building FUTURE ENTREPRENEURS With Drone Assembly And Maintenance Training"
Electronics For You

"We Are Building FUTURE ENTREPRENEURS With Drone Assembly And Maintenance Training"

AVPL is creating village-level entrepreneurs and jobs through drone technology and agriculture training. In an interview with EFY's Nitisha, Co-founder and Chairman Preet Sandhu discloses how their 70 centres across 12 states offer offline courses in RPC and agricultural spraying.

time-read
6 mins  |
October 2024
"Becoming CLEAR"
Electronics For You

"Becoming CLEAR"

From a nonchalant teenager to authoring a book on Verilog at 25 and launching successful IPOs for startups on the US stock market, Rajeev Madhavan exemplifies how the right guidance can transform a life. This is the story of one of Silicon Valley's most influential venture capitalists, as narrated to Yashasvini Razdan.

time-read
10+ mins  |
October 2024
THINKRAW INDIA'S SOLAR SOLUTIONS FOR THE AGRICULTURAL SECTOR
Electronics For You

THINKRAW INDIA'S SOLAR SOLUTIONS FOR THE AGRICULTURAL SECTOR

ThinkRaw's blend of technology and tradition is revolutionising agriculture with solar-powered solutions that enhance efficiency and sustainability in farming and aquaculture.

time-read
3 mins  |
October 2024