Pollution Click Board
Pollution Click Board
Overview
The Pollution Click Board™ has a high sensitivity to organic gases such as methanol (also known as formaldehyde), benzene, alcohol, toluene, etc. The Click Board™ carries the WSP2110 VOC gas sensor with the detection range of 1-50ppm (parts per million).
The Pollution Click Board™ is designed to run on a 5V power supply. It communicates with the target MCU via the AN and RST pins on the MikroBUSline.
The Pollution Click Board™ has high sensitivity to organic gases such as methanal (also known as formaldehyde), benzene, alcohol, toluene, etc. The click carries the WSP2110 VOC gas sensor with the detection range of 1~50ppm (parts per million).
The Pollution Click Board™ is designed to run on a 5V power supply. It communicates with the target MCU over AN and RST pin on the mikroBUS™ line.
WSP2110 VOC GAS SENSOR
WSP2110 VOC gas sensor is a MOS type (metal oxide semiconductor) sensor that detects volatile organic compounds such as methanal, benzene, alcohol and other types of gases that can be harmful to one's health in high concentrations.
The concentration of the target gas affects the conductivity of the sensor. Higher concentration of the gas means the conductivity of the sensor gets higher as well.
For precise calibration, the sensor needs to preheat (once powered up, it takes 120h to reach the right temperature).
SENSOR'S SENSITIVITY
P1 potentiometer onboard is used for trimming the sensor's sensitivity. Enable the pin drive gate of heaters MOSFET switch to reduce power consumption when the click is not in use.
DETECTION RANGE
The detection range of the sensor is 1~50ppm (part per million). Parts per million is the numbers of parts of a component in 1 million parts of the gas mixture, it's the ratio of one gas to another.
VOLATILE ORGANIC COMPOUNDS
Volatile organic compounds or VOCs are organic chemicals. They have very high vapor pressure at room temperature, and some of them can be harmful to human health. As most people spend a lot of time indoors it's important to know if the quality of the air is good. With Pollution click you could always know if your indoor environment is healthy enough.
SPECIFICATIONS
Type | Gas |
Applications | Automatic exhaust devices, air cleaners, harmful gas detection devices, etc. |
On-board modules | WSP2110 VOC gas sensor |
Key Features | Detection range 1~50ppm, Sensitivity S Rs(in air)/Rs(in 10ppm toluene)≥3 |
Interface | Analog,GPIO |
Compatibility | mikroBUS |
Click board size | M (42.9 x 25.4 mm) |
Input Voltage | 5V |
PINOUT DIAGRAM
This table shows how the pinout of the Pollution Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
Analog out pin | AN | 1 | AN | PWM | 16 | NC | |
Enable sensor | RST | 2 | RST | INT | 15 | NC | |
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | NC | ||
NC | 6 | MOSI | SDA | 11 | NC | ||
NC | 7 | 3.3V | 5V | 10 | +5V | Power supply | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
Software Support
The demo first enters in calibration procedure, before measuring pollution. In order to show accurate results, calibration must be done in clean air. Because the sensor has slow response time, it needs time to stabilize and to achieve working temperature. It also measures load resistance, and shows value on the display so the user can set the desired sensitivity. After the calibration is done, the demo enters in the measuring procedure.
Calibration procedure:
- Put the sensor in clean air and adjust the click board potentiometer to max value.
- Wait for the measured value on the load resistor to stabilize.
- Press the continue button.
- Adjust the potentiometer to define the sensitivity.
- Press the continue button.
Detection range: 1ppm ~ 50ppm (parts per million).
Code examples that demonstrate the usage of GSM/GNSS click with MikroElektronika hardware are available on Libstock.
CODE SNIPPET
The function calculates the ppm value from the RS/R0 ratio. Where R0 is resistance in clean air, and RS is resistance in target gas, with different concentration. The constants are extracted from the sensitivity curve, for the sensitivity curve of alcohol given in the sensor datasheet.
01: float ratio_to_ppm(float ratio) 02: { 03: if (0.84 > ratio && ratio >= 0.53) // I segment 04: return pow((ratio/C1), (1/M1)); 05: 06: else if (0.53 > ratio && ratio >= 0.39) // II segment 07: return pow((ratio/C2), (1/M2)); 08: 09: else if (0.39 > ratio && ratio >= 0.1) // III segment 10: return pow((ratio/C3), (1/M3)); 11: 12: else if (ratio < 0.148) 13: return 50.0; 14: 15: return 1.0; 16: }
Software Support
The demo first enters in calibration procedure, before measuring pollution. In order to show accurate results, calibration must be done in clean air. Because the sensor has slow response time, it needs time to stabilize and to achieve working temperature. It also measures load resistance, and shows value on the display so the user can set the desired sensitivity. After the calibration is done, the demo enters in the measuring procedure.
Calibration procedure:
- Put the sensor in clean air and adjust the click board potentiometer to max value.
- Wait for the measured value on the load resistor to stabilize.
- Press the continue button.
- Adjust the potentiometer to define the sensitivity.
- Press the continue button.
Detection range: 1ppm ~ 50ppm (parts per million).
Code examples that demonstrate the usage of GSM/GNSS click with MikroElektronika hardware are available on Libstock.
CODE SNIPPET
The function calculates the ppm value from the RS/R0 ratio. Where R0 is resistance in clean air, and RS is resistance in target gas, with different concentration. The constants are extracted from the sensitivity curve, for the sensitivity curve of alcohol given in the sensor datasheet.
01: float ratio_to_ppm(float ratio) 02: { 03: if (0.84 > ratio && ratio >= 0.53) // I segment 04: return pow((ratio/C1), (1/M1)); 05: 06: else if (0.53 > ratio && ratio >= 0.39) // II segment 07: return pow((ratio/C2), (1/M2)); 08: 09: else if (0.39 > ratio && ratio >= 0.1) // III segment 10: return pow((ratio/C3), (1/M3)); 11: 12: else if (ratio < 0.148) 13: return 50.0; 14: 15: return 1.0; 16: }
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.