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.

Denne historien er fra January 2023-utgaven av Electronics For You.

Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.

Denne historien er fra January 2023-utgaven av Electronics For You.

Start din 7-dagers gratis prøveperiode på Magzter GOLD for å få tilgang til tusenvis av utvalgte premiumhistorier og 9000+ magasiner og aviser.

FLERE HISTORIER FRA ELECTRONICS FOR YOUSe alt
TRULY INNOVATIVE ELECTRONICS -INNOVATION UPDATES
Electronics For You

TRULY INNOVATIVE ELECTRONICS -INNOVATION UPDATES

Amongst numerous press releases of new products received by us, these are the ones we found worthy of the title Truly Innovative Electronics

time-read
4 mins  |
December 2024
Elastomer enhancing smart wearable performance
Electronics For You

Elastomer enhancing smart wearable performance

A high-tech, flexible wearable device made from the innovative elastomer material

time-read
1 min  |
December 2024
Nanotechnology based noninvasive cancer diagnostics
Electronics For You

Nanotechnology based noninvasive cancer diagnostics

Nanoflake sensors built from indium oxide with platinum and nickel detect changes in isoprene

time-read
1 min  |
December 2024
Space communication with silent amplifiers
Electronics For You

Space communication with silent amplifiers

In the new communication system from researchers at Chalmers University of Technology, in Sweden, a weak optical signal (red) from the spacecraft's transmitter can be amplified noisefree when it encounters two so-called pump waves (blue and green) of different frequencies in a receiver on Earth.

time-read
1 min  |
December 2024
Advancements in TOPCon solar cells
Electronics For You

Advancements in TOPCon solar cells

The structure and performance of tandem devices with highly passivated TOPCon bottom cells

time-read
1 min  |
December 2024
Quantum leap in magnetism refines superconductors
Electronics For You

Quantum leap in magnetism refines superconductors

Rice University physicists have uncovered key magnetic and electronic properties in kagome magnets, structures resembling basket-weaving patterns.

time-read
1 min  |
December 2024
Sensor targets food antioxidants
Electronics For You

Sensor targets food antioxidants

A research team from Hunan City University and Xiangtan University in China has developed a sensor for detecting TBHQ, a food antioxidant used in oils and fats, addressing health concerns at high concentrations.

time-read
1 min  |
December 2024
Data sensing with repurposed RFID tags
Electronics For You

Data sensing with repurposed RFID tags

UC San Diego researchers have advanced passive data collection with a breakthrough in battery-free sensing.

time-read
1 min  |
December 2024
Seal-inspired sensors to safeguard offshore wind farms
Electronics For You

Seal-inspired sensors to safeguard offshore wind farms

Schematic structure of the seal whisker-inspired flow sensors

time-read
1 min  |
December 2024
Artificial nose identifies scents accurately
Electronics For You

Artificial nose identifies scents accurately

Artificial nose identifies scents accurately

time-read
1 min  |
December 2024