Safety Device Used in Labs and Kitchen
by hemeshlikeselectronics in Circuits > Arduino
1735 Views, 4 Favorites, 0 Comments
Safety Device Used in Labs and Kitchen
This is a safety device which is used in labs and in kitchen.This is an Arduino project which can save many lives. It has a gas sensor which can detect any smoke or gas leaks. An alcohol sensor which can detect the presence of any alcohol. It has a temperature sensor to detect high temperatures and a fire alarm to detect fire. I will be showing you a detailed tutorial on how to make it.
Watch the Video
Watch this video for more information on this project
Materials Required :
Connecting the Outputs to the Arduino
Buzzer :-
Connect the buzzer to the D12 pin of the Arduino Nano. This will be the Siren of our Project.
LED 1 ( LED for the Gas sensor) :-
Connect this red LED to the D6 pin of the Arduino Nano. This will help us to identify that the gas sensor is be alerted.
LED 2 (LED for the alcohol sensor) :-
Connect this red LED to the D9 pin of the Arduino Nano. This will help us to identify that the alcohol sensor is be alerted.
LED 3 (LED for the temperature sensor) :-
Connect this red LED to the D4 pin of the Arduino Nano. This will help us to identify that the temperature sensor is be alerted.
Connecting the Gas Sensor MQ2 to the Arduino Nano
Connect the VCC or 5V pin of the sensor to the 5V pin of the Arduino Nano. This will give us power to the sensor.
Connect the GND pin of the sensor to the GND pin of the Arduino Nano.
Connect the AO pin of the sensor to the A0 pin of the Arduino Nano.
If you have any problems later controlling the sensor connect the DO pin of the sensor to any of the Digital pin.
Connecting the Alcohol Sensor MQ3 to the Arduino Nano
Connect the VCC or 5V pin of the sensor to the 5V pin of the Arduino Nano. This will give us power to the sensor.
Connect the GND pin of the sensor to the GND pin of the Arduino Nano.
Connect the AO pin of the sensor to the A1 pin of the Arduino Nano.
If you have any problems later controlling the sensor connect the DO pin of the sensor to any of the Digital pin.
Connecting the LM35 Temperature Sensor to the Arduino Nano
Connect the VCC or 5V pin of the sensor to the 5V pin of the Arduino Nano. This will give us power to the sensor.
Connect the GND pin of the sensor to the GND pin of the Arduino Nano.
Connect the AO pin of the sensor to the A2 pin of the Arduino Nano.
If you have any problems later controlling the sensor connect the DO pin of the sensor to any of the Digital pin.
Uploading the Code
Copy this code to your Arduino IDE , but you need to change the threshhold value according to the sensitivity of your sensor :-
int gaspin = A0;
int alpin = A1; int tempPin = A2; int gasread; int alread; int tempread; int temp; int gasLED = 6; int alLED = 9; int tempLED = 4; int buzzPin = 12;
void setup() {
pinMode(gasLED,OUTPUT);
pinMode(alLED,OUTPUT);
pinMode(tempLED,OUTPUT);
pinMode(buzzPin,OUTPUT);
Serial.begin(9600);
}
void loop() {
gasread = analogRead(gaspin);
alread = analogRead(alpin);
tempread = analogRead(tempPin);
temp = tempread * 0.48828125;
delay (250);
Serial.print(gasread);
Serial.println(" GAS");
Serial.print(alread);
Serial.println(" AL");
Serial.print(temp);
Serial.println(" .C");
if(temp>55){ \\ change the threshold value accordingly
digitalWrite(tempLED,HIGH);
digitalWrite(buzzPin,HIGH);}
else{
digitalWrite(tempLED,LOW);
digitalWrite(buzzPin,LOW);
}
if (gasread>320){ \\ change the threshold value accordingly
digitalWrite(gasLED,HIGH);
digitalWrite(buzzPin,HIGH);
}
else{
digitalWrite(gasLED,LOW);
digitalWrite(buzzPin,LOW);
}
if (alread>1000){\\ change the threshold value accordingly
digitalWrite(alLED,HIGH);
digitalWrite(buzzPin,HIGH);
}
else{
digitalWrite(alLED,LOW);
digitalWrite(buzzPin,LOW); } }
Making the Fire Alarm
Take a tube light starter apart. You will find a capacitor and a chamber. We only need the chamber so remove the capacitor. The chamber will now act as a switch to detect fire. You will observe that it has to untouched points , but when fire is applied to it , the points will come in contact and will trigger the circuit. Build the circuit above in the image consisting of a buzzer,9volts battery and the fire detector.
Combine Both of Them
Attach both of the projects most notably on a clear plastic box so you can debug any of the errors and connect a 9volts battery to the GND - Negative and VIN - Positive Terminals of the battery.
There You Go !
There you go !
This project needs to be installed on top of the room as the gas flows upwards and may not be used outdoors.
So when there is a gas leak or smoke the LED1 will glow and the buzzer will buzz.
So when there is a presense of alcohol in the room the LED2 will glow and the buzzer will buzz.
So when there is a high temperature in the room the LED3 will glow and the buzzer will buzz.
So when there is a fire the buzzer will buzz.
THIS ARDUINO PROJECT IS VERY USEFUL AS IT CAN SAVE MANY LIVES