Background
As the COVID-19 epidemic has brought great impact on everyone's life,
the environmental situation is not optimistic. People pay more and more attention to the problem of healthy life. The development and research of environmental monitoring system is an inevitable trend. The use of environmental monitoring system, real-time data acquisition and analysis, and other adjustment facilities will have a good effect on the solution of the above problems.
Most people spend 80% of their time in the office or at home. With the development of society, people spend more and more time indoors. The development of home culture is rapid.
The monitoring of environmental factors (temperature, light, humidity) plays a great role in the development of social economy and the improvement of living environment.
Introduction -- XIAOClock
Based on the above problems, we designed the environmental monitoring system -- XIAOClock, aiming to solve the existing problems of indoor environmental monitoring system. The system is deployed using sensors and Internet of things technology to establish a "visible" environment for everyone. And this system is more flexible, light, low cost, simple operation and applicable in many places.
The main functions of the system are as follows.
- Use DHT20 to collect temperature and humidity, SGP30 to collect carbon dioxide concentration, and MIX8410 to collect oxygen concentration
- Get the NTP time online, and write the time information into the RTC of XIAO Expansion board
- Internet access to weather information, including weather, outdoor temperature
- The OLED screen has three interfaces:
1) Time interface: Display time and date
2) Temperature and humidity interface: display temperature and humidity, carbon dioxide, oxygen
3) Weather interface: display location, weather conditions and outdoor temperature
- Switch the interface through the Button on the XIAO Expansion board.
- Once connected to the Internet, you can use the Blinker APP on your phone:
1) Check the obtained temperature and humidity, carbon dioxide and oxygen information
2) Switch the display interface.
- If not connected, the weather interface will show not connected; When the RTC battery is installed, the time interface will continue to display the time, and the time information is the time of the last online calibration
- Configure the device via Blinker APP-> Developer -> Dev Tools ->EspTouch/SmartConfig (2.4GHz WiFi only)
- You can use the voice assistant -- Xiao Ai to query temperature, humidity and carbon dioxide information. Corresponding instructions:
1) Temperature and humidity:...... The temperature and humidity in the room...
2) Carbon dioxide:... The carbon dioxide in the room...
Here is part of the source code
You can find the full code by clicking the link below
How about our system? Is it convenient and fast? I look forward to your comments and suggestions
Come and build your own environmental monitoring system, let's try it out
Comments