This sensor is designed for comprehensive monitor over indoor air condition. It's responsive to a wide scope of harmful gases, as carbon monixide, alcohol, acetone, thinner, formaldehyde and so on. Due to the measuring mechanism, this sensor can not output specific data to describe target gases' concentrations quantitatively. But it's still competent enough to be used in applications that require only qualitative results, like auto refresher sprayers and auto air cycling systems.

Dependencies:   Grove_Air_Quality_Sensor_Library mbed

Fork of Seeed_Grove_Air_Quality_Sensor_Example by Austin Blackstone

Files at this revision

API Documentation at this revision

Comitter:
mbedAustin
Date:
Fri Sep 05 03:39:31 2014 +0000
Child:
1:888328032581
Commit message:
Grove Air Quality sensor example application. Test the air quality every 5 seconds and report. Score quality from 0-100 like the daily weather report.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Sep 05 03:39:31 2014 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+
+AnalogIn sensor(A0);
+
+int main() {
+    float sensorValue;
+    while (true) {
+        sensorValue = sensor.read();
+        printf("\r Air Quality score = %3.2f",100 - (sensorValue*100));
+        wait(5);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Sep 05 03:39:31 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9327015d4013
\ No newline at end of file