Arduino LPG and Flame Detector

by shazf in Circuits > Arduino

5326 Views, 12 Favorites, 0 Comments

Arduino LPG and Flame Detector

DSC_0103.jpg
DSC_0104.jpg
DSC_0108.jpg
DSC_0106.jpg
DSC_0107.jpg
Arduino basedLPG and Flame detector

This project is an Arduino based LPG and Flame detector. I got the idea to build this project because these days I've got my vacation and I've always wanted to make an innovative and unique project.Hope you'll like it.

Collecting the Necessary Parts...

ArduinoUno_R3_Front_450px.jpg
1521002-1.jpg
sku_152020_1.jpg
$_577.JPG
$_35.jpg
ux_a12070600ux0583_ux_g03.jpg
acrylic_sheets_clear-xl.jpg
Male-to-Female-Jumper-Wire-(25-pack)-600x600.jpg
ledir.jpg
Toggle-switch-pic.png
1321-00.jpg
  1. Arduino UNO
  2. Toggle switch
  3. 12v buzzer
  4. MQ2 LPG sensor
  5. Flame sensor
  6. Relay Connectivity (https://www.instructables.com/id/Arduino-Relay-conn...
  7. Red LEDs (2)
  8. Green LEDs (2)
  9. Acrylic Sheet
  10. 9v battery or 7.4v (two 18650 batteries in series)
  11. 2mm Acrylic sheet
  12. Jumper wires (Female to Male)

Extra Tools:

  • Pen Knife (to cut Acrylic)
  • Ruler
  • Drill
  • Grinding machine

​Constructing the Acrylic Box...

DSC_0001.jpg

Take the acrylic sheet and cut the following sizes

  • 10.2cm x 10.2cm 1Pc
  • 10cm x 10cm 1Pc
  • 10cm x 4cm 2Pcs
  • 10.5cm x 4 cm 2Pcs

Allign all the pieces exept the (10.2cm x 10.2cm) piece into a square shaped box and glue it using either superglue or suing hot glue.

It should look something like the pic above

Connections to the Arduino

Capture.PNG

Initially we haev to connect the MQ2 Sensor to the board by connecting:

  • the VCC pin to the 5v pin of the Arduino
  • the GND pin to the GND pin of the Arduino
  • the AO pin to the A0 pin of the Arduino

Next the Flame Sensor:

  • the VCC pin to the 5v pin of the Arduino
  • the GND pin to the GND pin of the Arduino
  • the DO pin to the digital pin 2 of the Arduino

Next the relay connection.I have used the same relay for both the sensor output Buzzer.Therefore i used two separate digital pins for the same relay connectivity by soldering two wires to the same circuit board as in the picture which is shown above.

Next is connecting the LEDs. I connected two RED LEDs to digital pin 2 and digital pin 12,the one on digital pin 2 being the output for the flame sensor and the one on the digital pin 12 being the output for the LPG sensor.

Preparing the Acrylic Box for the Project to Fit In...

20151214_230008.jpg

Initially i drilled two holes for the two RED LEDs and a small hole to add the buzzer wires.

Next up i drilled a large hole to add the LPG sensor and glued it up using hot glue and a small led size hole for the flame sensor's LED.

Finally i sanded the edges of the acrylic box and if you'll have an acrylic buffer machine you'll could use it to polish out the edges to have a well polished finish!!!

Coding...

The code has been uploaded below. Upload the code and power on the project and check it!!

This code is entirely my work you'll can edit it if you'll want.

Other Connections...

Arduino basedLPG and Flame detector

Moreover i added the DC jack to the project to charge my (18650 LI-ion) batteries. Afterwards i added a toggle switch in between the positive wire for the power supply of the arduino so that the toggle switch powers on and off the system!

Hope this project helped you'll and i hope you would give me a "like or rather favorite"

Thank you guys!!