Winter has come. Do you often feel sleepy? Do you know why winter is sleepier than summer? One is that in winter we often eat more, sleep more, and wear more clothes, which makes us prone to sleepiness. It is more because we are in a closed indoor environment for a long time in winter, and excessive carbon dioxide(CO2) will make people feel sleepy.
Excessive levels of CO2 in a crowded office can cause irritability and heart palpitations. In addition, if the concentration of CO2 accumulated overnight in a closed bedroom is too high, people will feel breathless and anxious the next morning.
How much concentration of PPM is harmful to the human body? According to research:
- When the indoor CO2 concentration is below 700ppm, it belongs to clean air, and people will feel very comfortable.
- When CO2 concentration is 700ppm to 1000ppm, it is still normal, which belongs to ordinary air, but some sensitive people will have a bad feeling.
- When CO2 concentration exceeds 1000ppm, but the air is in a critical stage in the range of 1500ppm, people feel dull, begin to lose concentration, and have heart palpitations.
- When CO2 concentration reaches 1500ppm to 2000ppm, the air is considered to be slightly polluted, it can cause headache, dizziness, and difficulty breathing.
- And if it exceeds 2000ppm, it is considered to be seriously polluted. We don’t even want to continue working, and our ability of thinking is significantly reduced.
Therefore, knowing the concentration of carbon dioxide in the air is very useful for our work and life. This project detects carbon dioxide, humidity, and temperature and displays these data on Wio Terminal. Let the air quality of each scene be clear at a glance, and remind you to open windows for ventilation.
We will be using Grove CO2 sensor (SCD30)for CO2 level measurement. The Grove - SCD30 is a 3-in-1 Arduino sensor that can measure CO2, temperature, and humidity. Based Sensirion SCD30, is a Non-Dispersive Infrared(NDIR) carbon dioxide sensor with high precision and wide measurement accuracy. It would be a perfect choice if you are looking for a multifunctional sensor for your Arduino weather station or other environmental projects.
Wio Terminal is compatible with Arduino and Micropython and is built with an ATSAMD51 microcontroller with wireless connectivity supported by Realtek RTL8720DN. Its CPU speed runs at 120MHz (Boost up to 200MHz). Realtek RTL8720DN chip supports both Bluetooth and Wi-Fi providing the backbone for IoT projects. The Wio Terminal is Highly Integrated with a 2.4” LCD Screen, there is an onboard IMU(LIS3DHTR), microphone, buzzer, microSD card slot, light sensor, and infrared emitter(IR 940nm).
There are built-in magnets and two mounting holes on the well-designed enclosure, allowing you to set up your IoT project without hassle.
Development EnvironmentThe application is developed, compiled, and flashed using Arduino IDE. Please download the latest Arduino IDE and follow Seeed's wiki to install it. To install the Wio Terminal board library, open the Arduino IDE, click on File > Preferences, and copy the below URL to Additional Boards Manager URLs: https://files.seeedstudio.com/arduino/package_seeeduino_boards_index.json
Click on Tools > Board > Board Manager Search Wio Terminal and click on install. And you would need to select the board and port using the Tools > Board menu.
To install the library for the Grove CO2 Sensor (SCD30):
- Step 1. Download the Seeed SCD30 Library Library from Github.
- Step 2. Refer to How to install library for Arduino.
- Step 3. Restart the Arduino IDE. Open the example, and open it directly in the Arduino IDE via the path: File → Examples →Grove_scd30_co2_sensor→SCD30_Example.
Step 1: Connect Wio Terminal and sensor.
Step 2: interface design, display text, and pictures: Press the "A" key to display the temperature, humidity, and CO2 value
Step 3: The buzzer sounds when the warning value is reached
- When CO2<700, normal level, display picture 0
- 700<=CO2<1000, a little bad feeling, display picture 1
- 1000<=CO2<1500, causing slight discomfort, display picture 2
- 1500<=CO2<2000, the air is slightly polluted, display picture 3, and the buzzer alarms at the same time
- CO2>=2000, serious pollution, display picture 4 and the buzzer alarms at the same time
There are many other possibilities for this project. In the future, I want to use the built-in WiFi module of Wio Terminal to upload data to the cloud, and then display the data on the PC and mobile terminals. Data early warning is more intelligent, and remote monitoring will make smart homes more convenient.
Thanks to KeHoSoftware and Seeed wiki for inspiration and help, I was able to start the journey of learning and making projects in Wio Terminal.
Comments
Please log in or sign up to comment.