loading

This instructable explains how to make a simple smoke detector using and Arduino and a Carbon Monoxide Sensor. The sensor is one of the MQ series gas sensors. Check out the demo here.

Featuring a solar charger kit from Voltaic Systems.

Step 1: The Parts and Tools

This is a fairly simple project. You will need the following:

  • 1x Arduino (I was using an Arduino Uno)
  • 1x MQ-7 Carbon Monoxide Sensor
  • 1x Breadboard
  • Connecting wire
  • 1x 10K Resistor
  • 1x 220 Resistor
  • 1x 16x2 LCD
  • Soldering Iron + Wire
  • +5V Power supply
  • (Optional) A lighter and a pack of cigarettes

Step 2: Solder Wires to Sensor

Solder 4 wire onto the sensor. Two wires on the both H pins, one wire on one of the A pins (any) and another on any of the B pins.

Step 3: Wiring the Sensor

To connect the sensor, you have to connect one of the H pin to +5V Supply and the other one to Ground GND).
Pin A is connected to the 5V pin. And the B pin is connect to the GND Pin and Pin A0 as shown on the pictures.

Once you have the circuit in place, upload the attached code onto the Arduino and open the serial monitor of the IDE.

Step 4: Adding the LCD

Modify the circuit to add an LCD as shown in the picture. Edit the code so that it uses the screen as output.

Step 5: Demo

All done! Power up you circuit and give it a try.

Here is a demo of the project. It is powered using a Voltaic 6W Solar Charger Kit. If you don't have one, you can use any 5V power supply. But I recommend you get one. It's perfect for Arduino Porjects

i found this to be such a great idea. I've been wanting to do something like this for a while. I have many questions. i am new at this ki d of stuff. How do you take your project off of the bread board and into something more manageable? Can you add your own custom tones depending on the levels of smoke that its , detecting
<p>Hi!</p><p>Thanks for the feedback. I'm glad to answer any questions.</p><p>Taking your project off the breadboard onto something more manageable and permanent will require some soldering. You are going to need a Perfboard (</p><p><a rel="nofollow">http://en.wikipedia.org/wiki/Perfboard). </a> There are lots of tutorials on how to do it. The simplest one I've found is this one:</p><p><iframe allowfullscreen="" frameborder="0" height="281" src="//www.youtube.com/embed/LcVNhUeP2LQ" width="500"></iframe><br>As for adding custom tones depending on the levels of smoke, it seems doable. A little programming logic is required but it seems pretty easy. I haven't had a chance to experiment with playing audio with the Arduino but I'm guessing you will need an SD card module to store the sound files. Then have the Arduino play them, ofcourse depending on the value from the sensor.</p>
Can I have The circuit diagram pls...<br>ayush.ahuja22@gmail.com
<p>COOL! gonna make it soon</p>
<p>can i use atmega16 to access this sensor?</p>
<p>can i have a schematic of the circuit</p><p>nice job otherwise</p>
<p>Can you please provide me with the circuit diagram.</p>
<p>hey we need to supply power just to the arduino or do we need to provide a separate power supply for the LCD.</p><p>thanks for the awesome idea</p>
<p>You need to supply to both if you wanna PCB this and use it. But you'd Also Need A voltage regulator for the power going through your ATMGEA328P and then just wire everything up.</p>
<p>sorry for so many questions but i wanted to ask if i can use a 9v battery or a 6v battery pack(4 aa batteries)</p>
<p>since im a beginner i am not willing to spend too much. </p>
<p>is this one ok?( <a href="http://www.ebay.in/itm/MQ-7-GAS-SENSOR-/281490388028?pt=LH_DefaultDomain_203&hash=item418a22743c" rel="nofollow">http://www.ebay.in/itm/MQ-7-GAS-SENSOR-/281490388028?pt=LH_DefaultDomain_203&amp;hash=item418a22743c</a>)</p><p>or should i go for this (<a href="http://www.ebay.in/itm/MQ-7-High-Sensitivity-CO-Carbon-Monoxide-Sensor-Detector-Module-fr-Arduino-AVR-/131395243042?pt=LH_DefaultDomain_203&hash=item1e97c44c22" rel="nofollow">http://www.ebay.in/itm/MQ-7-High-Sensitivity-CO-Carbon-Monoxide-Sensor-Detector-Module-fr-Arduino-AVR-/131395243042?pt=LH_DefaultDomain_203&amp;hash=item1e97c44c22</a>)</p><p>since the 1st one is cheaper,i will prefer it</p>
<p>Why not read the spec sheet for the MQ-7 sensor? It's only 3 <br>pages. The heater circuit should be power cycled between 5v and <br>1.4v.</p><p>60 seconds @ 5v, then 90 seconds @ 1.4v. The 5v is used to clean <br>the chemical sensing element inside. The 1.4v is used for taking a <br>reading.</p><p>Your method here won't get any sensible readings from the sensor.</p>
<p>Will the code work even though I am using a different programmer that is just a copy of arduino?</p>
<p>Hi! I was wondering if the values printed on the LCD were really the parts per million (ppm) value. In the code I didn't see what would be converting the voltage values into ppm. I was wondering if anyone had a similar problem/question. Thanks!</p>
<p>I'm wondering how the MQ7 works as both a &quot;smoke detector&quot; and a &quot;carbon monoxide detector&quot;. I don't quite see how that's possible.<br><br>If I want a device that detects both, do I have to use two MQ7 sensors, one calibrated for smoke and one calibrated for CO? </p>
<p>Awesome Nice project</p>
Very well made project but no one likes the annoying sounds of smoke detectors going off when there isn't even a real fire.
Great learning tool. Thanks for sharing.
<p>Awesome! Great project, clever too!</p>

About This Instructable

55,957views

121favorites

License:

Bio: Geek
More by daryllukas:Power Outage Notifier Sugrufy Your Xbox Controller Toilet Paper Tube Torch 
Add instructable to: