Introduction: How to Wire the MiCs 5524 / 6814 CMOS MEMS Gas Detection Sensor
The basic principle of metal oxide sensors is the resistance of detection layer changes at the presence of the targeted gasses. Oxidizing gases such as ozone or nitrogen dioxide the resistance will increase and gases such as carbon monoxide the resistance will go down. These reactions will happen at elevated temperatures and hence. It is one of the main advantages using this sensor is the power required to heater runs are less, compare to another type of sensors, changes in resistance with a change in gas concentration are not linear response, and response can be measured and tailored to the polynomial relationship. This sensor family is best for instances or trends of gas presence rather than obtaining high accuracy such as sophisticated analytical type systems. For further readings please refer to the datasheet.
Step 1: I2C Configuration / Source Code
void setup() {
Serial.begin(9600); Serial.println(" 14CORE | MiCS 5524 / 6814 TEST CODE "); Serial.println(" Initializing ..............."); delay(2000); if (!Serial.available()) { Serial.println("Checking Serial Communication"); while (1); } Serial.println("Data Communication Ready"); Serial.println("Reading ................"); delay(1000); } void loop() { int senseval1 = analogRead(A0); int senseval2 = analogRead(A1); int senseval3 = analogRead(A2); Serial.print(" Reading A0 :"); Serial.print(senseval1); Serial.println(""); Serial.print(" Reading A1 :"); Serial.print(senseval2); Serial.println(""); Serial.print(" Reading A2 :"); Serial.print(senseval3); Serial.println(""); delay(100); }
Step 2: Connecting With SPI
Note: The sensor is sensitive to multiple gasses we cannot tell which is a specific gas type detected. Most gas sensors is all the same. You need to measure changes in a known gas density not detecting which is changing. For calibrating the sensor, you need to expose the sensor at least a minimum 24 hours is clean air to acquire the right level of measurement. If you want to obtain a range of concentration you need to carry out an exposure to get a value of constrained gasses at various points and produce a response curve for each value.





