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 January 2023 edition of Electronics For You.

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

This story is from the January 2023 edition of Electronics For You.

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

MORE STORIES FROM ELECTRONICS FOR YOUView All
'NAMASTE' ROBOT To Greets Visitors Automatically
Electronics For You

'NAMASTE' ROBOT To Greets Visitors Automatically

This robot, whose mechanical frame can be made of recycled materials, monitors people within its 100cm range using an ultrasonic module.

time-read
3 mins  |
March 2024
RFID BASED AUTHENTICATION SYSTEM Using Arduino
Electronics For You

RFID BASED AUTHENTICATION SYSTEM Using Arduino

The radio frequency identification (RFID) system used for identification and tracking of objects makes use of an RFID reader and a tag.

time-read
3 mins  |
March 2024
"MUSIC Is An Integral Part Of MY LIFE, And I Cannot Imagine My Life Without It"
Electronics For You

"MUSIC Is An Integral Part Of MY LIFE, And I Cannot Imagine My Life Without It"

Prof. V. Kamakoti, the esteemed Director of IIT Madras and the visionary pioneer behind India's groundbreaking indigenous computer microprocessor 'Shakti,' graciously shares his extraordinary journey. From his deep commitment to education and innovation to his passion for music and rural education, Prof. Kamakoti offers insights and shares his experiences in conversation with Sudeshna Das, Consulting Editor of the EFY Group

time-read
10+ mins  |
March 2024
"Efficiency In SOLAR ENERGY Is More About INVESTMENT RATIONALE Than Resource Limitation"
Electronics For You

"Efficiency In SOLAR ENERGY Is More About INVESTMENT RATIONALE Than Resource Limitation"

Indian utility-scale solar company SolarArise claims to offer investors long-term, cash-generating assets and anticipates advancements in energy storage technologies to enable 24-hour clean power at competitive prices. In a freewheeling chat with EFY's Yashasvini Razdan, SolarArise's Co-founder Tanya Singhal divulged interesting details about the company's business model, challenges, technological innovations, and future plans of contributing to the country's renewable energy goals

time-read
5 mins  |
March 2024
Roadmap To India's SEMICONDUCTOR PRODUCTISATION
Electronics For You

Roadmap To India's SEMICONDUCTOR PRODUCTISATION

As India strides towards semiconductor prowess, it invites us to ponder: Can this journey redefine global innovation and economic landscapes?

time-read
4 mins  |
March 2024
STARTUPS & INNOVATORS
Electronics For You

STARTUPS & INNOVATORS

1 EarthtronEV On Way To Becoming A Leader In EV Charging Stations. 2 Parova's Made-To-Order Drones And Unique Designs. 3 Ellotor's Versatile 'E-Trike' EV Offering Many Options

time-read
6 mins  |
March 2024
The Evolving Landscape Of VEHICLE CONTROL UNITS
Electronics For You

The Evolving Landscape Of VEHICLE CONTROL UNITS

Discover the latest advancements in vehicle control units, which include enhancing EV safety, integrating cutting-edge technologies, and steering towards sustainable mobility for a smarter, greener future

time-read
7 mins  |
March 2024
The Future Of Automotive Electronics: A2P MESSAGING In Connected Vehicles
Electronics For You

The Future Of Automotive Electronics: A2P MESSAGING In Connected Vehicles

From safety alerts to seamless communication, A2P messaging is revolutionising driving, delivering real-time updates, and enhancing safety in connected vehicles

time-read
7 mins  |
March 2024
ICE OR EV: Electronics Have Become The Central Thread
Electronics For You

ICE OR EV: Electronics Have Become The Central Thread

Is the end of the era of internal combustion engine-powered cars imminent? With this transition, what implications does it have for the component manufacturers serving the automotive industry? Moreover, is there space for new entrants to join the fray?

time-read
6 mins  |
March 2024
The Next Wave Of BLUETOOTH AUDIO
Electronics For You

The Next Wave Of BLUETOOTH AUDIO

More than a mere tech term, Auracast is about to change how we experience sound, with a simple search, scan, and tap-no complications

time-read
9 mins  |
March 2024