Smoke 'Detector'
Intro: Smoke 'Detector'
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
21 Comments
askthecableguy 10 years ago
daryllukas 10 years ago
Hi!
Thanks for the feedback. I'm glad to answer any questions.
Taking your project off the breadboard onto something more manageable and permanent will require some soldering. You are going to need a Perfboard (
http://en.wikipedia.org/wiki/Perfboard). There are lots of tutorials on how to do it. The simplest one I've found is this one:
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.
megavaper 5 years ago
AyushA30 7 years ago
ayush.ahuja22@gmail.com
JekkyJekson21 7 years ago
COOL! gonna make it soon
muhammadr122 8 years ago
can i use atmega16 to access this sensor?
JekkyJekson21 7 years ago
can i have a schematic of the circuit
nice job otherwise
hasinul 8 years ago
Can you please provide me with the circuit diagram.
IshanP 9 years ago
hey we need to supply power just to the arduino or do we need to provide a separate power supply for the LCD.
thanks for the awesome idea
Gaige Kerns 9 years ago
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.
IshanP 9 years ago
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)
IshanP 9 years ago
since im a beginner i am not willing to spend too much.
IshanP 9 years ago
is this one ok?( http://www.ebay.in/itm/MQ-7-GAS-SENSOR-/281490388028?pt=LH_DefaultDomain_203&hash=item418a22743c)
or should i go for this (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)
since the 1st one is cheaper,i will prefer it
Gregory0 9 years ago
Why not read the spec sheet for the MQ-7 sensor? It's only 3
pages. The heater circuit should be power cycled between 5v and
1.4v.
60 seconds @ 5v, then 90 seconds @ 1.4v. The 5v is used to clean
the chemical sensing element inside. The 1.4v is used for taking a
reading.
Your method here won't get any sensible readings from the sensor.
jrenos 9 years ago
Will the code work even though I am using a different programmer that is just a copy of arduino?
geysenbach 9 years ago
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!
Bort Plate 9 years ago
I'm wondering how the MQ7 works as both a "smoke detector" and a "carbon monoxide detector". I don't quite see how that's possible.
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?
alilike16 10 years ago
Awesome Nice project
dmajor3 10 years ago
bob3030 10 years ago