Surilli
Published © GPL3+

Integration of Surilli WiFi with MQ7 Gas Sensor

Visualize the changing values of CO in air using MQ7 Gas Sensor and Surilli WiFi.

BeginnerFull instructions provided15 minutes546
Integration of Surilli WiFi with MQ7 Gas Sensor

Things used in this project

Hardware components

Surilli WiFi
Surilli WiFi
×1
MQ7 Gas Sensor
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

MQ7 with Surilli WiFi

Code

MQ7_SurilliWiFi

C/C++
const int AOUTpin = 0; // The AOUT pin of the CO sensor goes into analog pin A0 of Surilli WiFi
const int DOUTpin = 12; // The DOUT pin of the CO sensor goes into digital pin 12 of Surilli WiFi

int limit;
int value;

void setup() 

{
  
      Serial.begin(115200); // Sets the baud rate
      pinMode(DOUTpin, INPUT); // Sets the pin as an input to the Surilli WiFi
  
}

void loop()

{
   
      value= analogRead(AOUTpin); // Reads the analaog value from the CO sensor's AOUT pin
      limit= digitalRead(DOUTpin); // Reads the digital value from the CO sensor's DOUT pin
      Serial.print("CO value: ");
      Serial.println(value); // Prints the CO value
      Serial.print("Limit: ");
      Serial.println(limit); // Prints the limit reached as either LOW or HIGH (above or underneath)
      delay(1000);
      
}

Credits

Surilli

Surilli

196 projects • 62 followers
Surilli is a premiere Internet of Things centric Technology Company aimed at providing cutting edge innovative solutions.

Comments