Pollution Click Board
Pollution Click Board
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.
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: }
Pollution Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.