MQ-2 : SMOKE DETECTION SENSOR
MQ-2 : SMOKE DETECTION SENSOR
The MQ-2 is a flammable gas and smoke sensor. It
detects the concentrations of combustible gas in the air and outputs its
reading as an analog voltage. The MQ-2 gas sensor is sensitive to LPG,
i-butane, propane, methane, alcohol, Hydrogen and smoke. They are used in gas
leakage detecting equipments in family and industry and in portable gas
detector. We can interface MQ 2sensor with Arduino to detect the smoke
Application:
- The MQ-2 Gas sensor can detect or measure Smoke.
- To avoid fire accidents.
- To monitor level of different gases and smoke.
Sample Project With Arduino:
In this we going to turn ON the LED whenever the MQ-2 sensor detects the gases like LPG, i-butane, propane,smoke etc,.
Material required:
- MQ-2 gas sensor
- Arduino UNO
- Red LED
- Jumper wires
Circuit:
int sensorpin = 8;
int LED = 13;
void setup() {
Serial.begin(9600);
pinMode(sensorpin, INPUT);
pinMode(LED,
OUTPUT);
digitalWrite(LED, LOW);
Serial.println("MQ");
}
void loop() {
if(digitalRead(sensorpin) == LOW)
{
digitalWrite(LED, HIGH);
Serial.println("Detected");
delay(500); }
else {
digitalWrite(LED, LOW);
Serial.println("Not Detected");
delay(500);
}}
Comments
Post a Comment