Air pollution has always been one of the problems of urban dwellers, especially in cities like Tehran, Ahvaz, Shiraz, etc. It may not be possible to improve these conditions at least in the short term, but it is possible to reduce daily activities on days when pollution reaches its maximum level and in environments where the amount of toxic gases exceeds the standard.
In this article, we are going to introduce you to a very attractive sensor to detect the amount of pollution in the air and how to work with it :
The module related to this sensor is shown in the figure below. As you can see, the dimensions of the sensor and module are very small, which, in addition to the possibility of being placed in small places, indicates the very low power consumption of this sensor
* Support I2C communication protocol
* The ability to detect all types of volatile gas compounds (VOC), carbon dioxide, alcohol, organic acids, ketones, aliphatics, etc.
* Optimized for performance in closed environments
* Ambient temperature detection
This module has external interrupt bases that can be triggered in two adjustable modes:
Sanction when the processing operation is finished
Stimulation when the read values exceed the limit
It is also possible to set the sensor to read values in fixed periods of time. As we can set the sensor to send the readings to the microcontroller through the I2C interface every 5 seconds, 10 seconds, 20 seconds, etc.
A 3.3V regulator is also placed on the module and you can easily apply the 5V voltage that is often used in systems to the module
You can use this module in any type of hardware that supports the required specifications of the module (including I2C). The following figure shows the connection of this sensor to the Adafruit Metro board as an example
To work with this sensor, you can get help from the data sheet information, but if you use Arduino boards, you can download the necessary library to work with this sensor from the link below and work with this sensor easily:
Note: If you are not familiar with the Arduino software environment, we suggest that you first follow the related content here.
Place this folder in the address of Arduino libraries (arduinosketchfolder / libraries).
To run the provided codes, refer to the following section in the software:
File->Examples->Adafruit_CCS811->CCS811_test
Open the serial console section in the software and set the baud rate to 9600.
If you have done the hardware and software steps correctly, you will see a screen similar to the one below. On this page, sensor information is read and updated every moment. The information presented in this form is for an environment that is almost clean of environmental pollutants
I hope you have made useful use of this project and the materials presented by the team (Qoqnus Atlas Co) in this post.
Share your opinion with us
تمامی محصولات با هدف بهبود در فرایند زیست محیطی فراهم شده است، محصولات موجود در سایت فقط برای ارائه در دو شعبه کشور ایران و عمان میباشد و قابلیت سفارش دارد. Dismiss