This post was last edited by reayfei on 2021-7-18 22:52
Small Home Weather Station
Author: Reayfei
1. Introduction
My work is a small home weather station.
It consists of two parts: the outdoor end (Outdoor) and the indoor end (Indoor). The Outdoor end can be placed outside the window to monitor the real-time outdoor temperature, humidity, air pressure, light intensity and other information. The Indoor end is placed indoors to receive and display meteorological data.
Features of the work:
1. It can collect weather information outside the window in real time and synchronize it to Indoor via Bluetooth broadcast.
2. The Indoor end integrates the esp8266 wifi module to obtain and display the weather forecast from the meteorological website.
3. The Outdoor end adopts an ultra-low power consumption design and can be on standby for several months.
2. System Block Diagram
Real photos
System Block Diagram
3. Functional description of each part
Outdoor
The Outdoor end is placed outdoors for a long time and transmits meteorological data to the Indoor end at regular intervals, which requires very high power consumption. It is also necessary to collect outdoor temperature, humidity, air pressure, light intensity and other meteorological information. After comprehensive consideration, RSL10_SENSE_GEVK is finally used as the Outdoor end.
Based on the above requirements, the sense_bme680_bsec routine is used as the base. This routine has implemented the driver of the bme680 sensor. It is also necessary to transplant the Bluetooth broadcast driver in the ble_peripheral_server_hrp routine to sense_bme680_bsec.
Indoor
The Indoor end only needs to be placed indoors. It consists of RSL10_002_GEVB board + OLED + ESP8266 and is powered by 3 AA batteries.
The function of the Indoor end is to collect data and display it on the OLED. The meteorological data comes from two aspects. It receives the Bluetooth broadcast data from the Outdoor end. This displays the real-time weather information outside the window, allowing us to understand the weather information outside without opening the window.
On the other hand, through UART communication, the data of ESP8266 is received. Because ESP8266 has written a weather forecast script, it will periodically (every 20 seconds) send the weather forecast for the next 24 hours of the location (Dalian, Liaoning), so that we can have a grasp of the weather conditions for the whole day.
The Indoor software is based on ble_central_client_scan, adds OLED drive and refresh logic, and modifies the UART receive processing function.
4. Source Code
https://download.eeworld.com.cn/detail/reayfei/620215
https://download.eeworld.com.cn/detail/reayfei/620214
5. Demonstration video of the work’s functions
6. Project Summary
The original intention of making this work is that ordinary white-collar workers will pay attention to today's weather conditions every morning. The original method is to use smartphones to query independently and open the window to feel the outdoor temperature, humidity, etc. Doing so will waste a few minutes every day. We can use a small device to print these key information directly on the screen, such as on the makeup mirror, so that you can look up and understand the weather and outdoor meteorological information for the next 24 hours.
Experience sharing 1: [Small home weather station] Get ESP8266 weather data through UART
https://en.eeworld.com/bbs/forum.php?mod=viewthread&tid=1172768&page=1&extra=#pid3078606
Experience sharing 2: [Small home weather station] About RSL10 FOTA upgrade
https://en.eeworld.com/bbs/forum.php?mod=viewthread&tid=1170975&page=1&extra=#pid3074825
Experience sharing 3: [Small home weather station] Exploring RSL10 Bluetooth broadcast
https://en.eeworld.com/bbs/thread-1172771-1-1.html
VII. Others
Special thanks to w494143467 and justd0 for their support, and also to eeworld and the administrator.
|