sumitbranfigoprashantksahgaurishsingla10
Published © GPL3+

Hazardous Gas leak detection

Hazardous Gas leak detection system employ an audible alarm to alert people and lock all the air tight gates.

IntermediateFull instructions provided11,554
Hazardous Gas leak detection

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
Gas Detection Sensor, Hydrogen
Gas Detection Sensor, Hydrogen
×1
DC Motor, 12 V
DC Motor, 12 V
×4

Software apps and online services

Arduino IDE
Arduino IDE
Tinkercad
Autodesk Tinkercad

Story

Read more

Schematics

Hazardous Gas leak detection

I am using Arduino, a gas sensor and four electric motors for air tight gates.

Hazardous Gas leak detection

This is the video of the working project

Code

Hazardous Gas leak detection

C/C++
When Hazardous Gas detect then a warning is displayed on LCD and automatic air tight doors are locked to control emissions of hazardous gases.
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 10, 11, 12, 13);

int Gas_Sensor_Value = 0;
int Gas_sensor = A0;
int Piezo = 3;
int electric_motor_1 = 4 ;
int electric_motor_2 = 5 ;
int electric_motor_3 = 6 ;
int electric_motor_4 = 7 ;


 

void setup() 
{
  lcd.begin(16, 2); // set up the LCD's number of columns and rows:
  pinMode(Gas_sensor, INPUT);
  pinMode(Piezo, OUTPUT);
  pinMode(electric_motor_1, OUTPUT);
  pinMode(electric_motor_2, OUTPUT);
  pinMode(electric_motor_3, OUTPUT);
  pinMode(electric_motor_4, OUTPUT);
}
void loop() 
{
   lcd.clear();
   Gas_Sensor_Value = analogRead(A0);

   if( Gas_Sensor_Value >= 700)
   {
    digitalWrite(Piezo, HIGH);
    digitalWrite(electric_motor_1, HIGH);
    digitalWrite(electric_motor_2, HIGH);
    digitalWrite(electric_motor_3, HIGH);
    digitalWrite(electric_motor_4, HIGH);
    lcd.print("Caution:Gas leak"); // Print a message to the LCD.
     
   delay(1000);
   }
  else
  {
   digitalWrite(Piezo, LOW);
   digitalWrite(electric_motor_1, LOW);
   digitalWrite(electric_motor_2, LOW);
   digitalWrite(electric_motor_3, LOW);
   digitalWrite(electric_motor_4, LOW);
   lcd.print("The environment"); // Print a message to the LCD.
   lcd.setCursor(0,1); 
   lcd.print("is Safe"); 
    delay(1000);
  }
  }

Credits

sumitbranfigo

sumitbranfigo

7 projects • 6 followers
prashantksah

prashantksah

1 project • 3 followers
gaurishsingla10

gaurishsingla10

1 project • 3 followers

Comments