Neil Hardy / Mbed 2 deprecated Gas_Sensor_Array

Dependencies:   4DGL-uLCD-SE mbed

Fork of Gas_Sensor_best_copy by Neil Hardy

Revision:
0:bd3708b85a8b
Child:
1:fec4764e82cb
diff -r 000000000000 -r bd3708b85a8b GasArray.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/GasArray.h	Thu Jun 16 21:59:31 2016 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"
+#include "uLCD_4DGL.h"
+#include <string>
+
+class GasArray
+{
+    public:
+        GasArray(int, float[], float, float[], AnalogIn[], float[], string[], string[]);
+        void read();                        // Returns voltage values
+        void display_init(uLCD_4DGL *uLCD); // Prints sensor types and gases
+        void display_cont(uLCD_4DGL *uLCD); // Prints response and gas percentages
+    private:
+        int number;                         // Number of sensors
+        float * baseR;                      // Base resistance of sensors
+        float pwrV;                         // Store total voltage across divider
+        float * dividerR;                   // Voltage divider resistors
+        AnalogIn * pins;                    // Pins 15-20
+        float * responseV;                  // Store sensors' response voltages
+        float * sensorR;                    // Store sensors' responses
+        float * InverseSensitivity;         // Inverse sensitivity matrix
+        string * types;                     // Sensor types
+        string * gases;                     // List of gas for display
+        float * percentages;                // Store gas percentages
+};
\ No newline at end of file