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.

この記事は Electronics For You の January 2023 版に掲載されています。

7 日間の Magzter GOLD 無料トライアルを開始して、何千もの厳選されたプレミアム ストーリー、9,000 以上の雑誌や新聞にアクセスしてください。

この記事は Electronics For You の January 2023 版に掲載されています。

7 日間の Magzter GOLD 無料トライアルを開始して、何千もの厳選されたプレミアム ストーリー、9,000 以上の雑誌や新聞にアクセスしてください。

ELECTRONICS FOR YOUのその他の記事すべて表示
STK435 IC-Based STEREO AMPLIFIER
Electronics For You

STK435 IC-Based STEREO AMPLIFIER

This stereo AF amplifier uses the STK435 IC, a highly popular choice due to its simplicity.

time-read
2 分  |
November 2024
A SEWER DRAIN SHIELD For Smart Cities
Electronics For You

A SEWER DRAIN SHIELD For Smart Cities

Drainage systems are vital for storm water management but often transport pollutants, especially plastics, to rivers and oceans, harming ecosystems.

time-read
2 分  |
November 2024
ESP32 SPEECH FUNCTION: Text To Speech
Electronics For You

ESP32 SPEECH FUNCTION: Text To Speech

Speech capability in technology primarily has two dimensions: text to speech (TTS) and speech to text (STT). This device focuses on TTS.

time-read
2 分  |
November 2024
World's Smallest Programable INDUSPHONE DESIGN
Electronics For You

World's Smallest Programable INDUSPHONE DESIGN

This is the second part of designing the world’s smallest phone, where the UI is integrated with the basic functions of the phone.

time-read
2 分  |
November 2024
FLAME-SENSING FIRE ALARM Using An Arduino Nano
Electronics For You

FLAME-SENSING FIRE ALARM Using An Arduino Nano

Fire safety alarms are crucial in both residential and industrial environments.

time-read
2 分  |
November 2024
loT-Based Distribution Transformer CONDITION MONITORING SYSTEM
Electronics For You

loT-Based Distribution Transformer CONDITION MONITORING SYSTEM

The proposed IoT-based distribution transformer condition monitoring system enables real-time monitoring of distribution transformers, identifying such deviations as overload conditions and overheating.

time-read
3 分  |
November 2024
Wi-Fi 6 AND Wi-Fi 7 Powering The Next Wave of Smart Connectivity
Electronics For You

Wi-Fi 6 AND Wi-Fi 7 Powering The Next Wave of Smart Connectivity

Wi-Fi 6 leads with faster data rates and reduced latency while upcoming Wi-Fi 7's backward compatibility will facilitate gradual upgrades from Wi-Fi 6, easing transitions. However, advanced features like multi-link operation (MLO) and ultra-low latency may command a premium, making Wi-Fi 7 suited for high-end applications.

time-read
8 分  |
November 2024
CHARGE FORWARD: High-Voltage Batteries And MSMEs Can Fuel INDIA'S EV REVOLUTION
Electronics For You

CHARGE FORWARD: High-Voltage Batteries And MSMEs Can Fuel INDIA'S EV REVOLUTION

A nuanced explanation of low- and high-voltage EV batteries by Dr Gokhale, Vice President for Battery Technology at JSW Energy, illuminates their advancements and influence. The essential role of MSMEs and academia in developing a strong EV ecosystem emerges, marking their significance for India's push towards self-reliance in this innovative field.

time-read
5 分  |
November 2024
"MILES TO GO Before I Sleep"
Electronics For You

"MILES TO GO Before I Sleep"

A teacher illuminates the path to success through the light of knowledge, yet some teachers extend that light to society through their contributions and research. Known as the architect of the modern M3 electronic voting machine (EVM) and the voter verifiable paper audit trail (VVPAT) that transformed India's democratic process, Prof. (Dr) Rajat Moona's journey began in the modest town of Bareilly. Here is his story, as recounted to and written by EFY's Yashasvini Razdan.

time-read
10+ 分  |
November 2024
STARTUPS & INNOVATORS
Electronics For You

STARTUPS & INNOVATORS

1 One Charger To Charge All Your Devices | 2 Harnessing AI Technology For Efficient Pest Management | 3 Wireless Light-Based Communication With Velmenni's Technology

time-read
8 分  |
November 2024