Summary of Environmental Alert System
The Environmental Alert System is a DIY gas-sensing unit using four MQ gas sensors (methane, propane, CO, and general combustible/smoke) connected to an Intel Edison for wireless monitoring and alerts. Sensors feed analog inputs, thresholds are set via potentiometers and toggled inputs, and user feedback includes a DotStar LED strip and a buzzer. The system runs from a 5V 3A supply, uses an NPN transistor to drive the buzzer, and is intended as a hobbyist project for detecting gaseous releases, not a commercial safety device.
Parts used in the Environmental Alert System:
- Intel Edison with Arduino Breakout Board
- 4x 10K rotary panel-mount potentiometer
- 4x 1/4 inch slot knob
- DotStar strip (cut into four 10-LED segments)
- MQ-2 gas and smoke sensor
- MQ-4 methane sensor
- MQ-6 propane sensor
- MQ-7 carbon monoxide sensor
- 4x gas sensor breakout
- 3x 20K resistor
- 10K resistor
- 1K resistor
- 330 ohm resistor
- Toggle switch (mini)
- Panel-mount power jack
- Panel-mount LED holder
- 5mm green LED
- 5V buzzer
- 2N3904 NPN transistor
- 5V 3A power supply
- 1/4 inch plywood
- 1/8 inch acrylic
- 12x 1 inch 4-40 standoff
- 24x 1/2 inch 4-40 screw
What’s that smell? It’s noxious gas of course! If you’re in an environment where there’s a possibility of gaseous release of which you’d rather not breathe, why not build an automatic system for sensing and alerting you? The design for the Environmental Alert System is driven by my motivation to understand the concentrations of different chemicals in the air. The unit consists of an array of four gas sensors (one each for methane, propane, carbon monoxide, and smoke) connected to an Intel Edison for wireless detection and alerting. While no substitute for a proper commercial chemical detection system, the EAS makes for a great weekend project!
Step 1: Parts and Materials
Intel Edison with Arduino Breakout Board
(4x) 10K rotary panel-mount potentiometer
(4x) 1/4″ slot knob
MQ-2 (flammable gas and smoke)
MQ-4 (methane)
MQ-6 (propane)
MQ-7 (carbon monoxide)
(4x) gas sensor breakout
(3x) 20K resistor
10K resistor
1K resistor
330 ohm resistor
panel-mount LED holder
5mm green LED
5V buzzer
2N3904 NPN transistor
1/4″ plywood
1/8″ acrylic
(12x) 1″ 4-40 standoff
(24x) 1/2″ 4-40 screw
Step 2: Electrical Design
Power
The entire system is powered from a 5V 3A power supply. Each of the four sensors draws upwards of 150 mA, the Edison around 500 mA, and the DotStar LEDs (at full white brightness) up to 2400 mA. Since the DotStar strip will never be fully on or set to white, the 3 amp supply should work just fine. The entire system is switched on via a mini toggle switch. A single green LED is connected via a 330 ohm resistor to the 5V rail to show the power status.
Control
An Intel Edison runs the show for the Environmental Alert System. The Edison is mounted on an Arduino breakout board, which makes it easy to read the analog signals from the sensors and potentiometers. The Edison is connected to the 5V rail via a micro usb cable. The Edison has a built-in Wi-Fi radio, which allows it to connect to the internet without the need for any additional hardware.
Sensors
The system has four sensors that connect the Edison. Each sensor is directly powered from the 5V rail and has its signal pin connected respectively to A0 through A3 on the Edison breakout board. The sensors also each have a sensitivity adjustment resistor; the MQ-7 has a 10K ohm resistor and the rest each have a 20K resistor. The MQ-2 is a combustible gas sensor (liquified petroleum gas, propane, hydrogen, and methane) that outputs an analog voltage proportional to the concentration from 300 to 10,000 parts per million. The MQ-4 is a methane gas sensor and has a equivalent concentration to voltage response. The MQ-6 is an LPG, isobutane, propane sensor. The MQ-7 is a carbon-monoxide sensor.
User Input
There are two potentiometers and two toggle switches for user input. The toggle switches are connected between the digital pins on the Edison (pulled high via software) and allow selection between the two “threshold” adjustment potentiometers. The potentiometers are connected across the 5V rail and have their wipers connected to the remaining analog inputs on the Edison (A4 and A5).
User Feedback
The Edison connects and controls a single strip of DotStar LEDs via SPI. Each strip is cut into four segments of 10 LEDs each and then connected in series to form a single strip, which makes for simpler software control. The system also has a buzzer for immediate auditory feedback if any of the sensors detects a value above the set threshold. The buzzer is connected to 5V and is controlled via a single NPN transistor that is driven by one of the Edison’s GPIO pins.
For more detail: Environmental Alert System
- What sensors does the Environmental Alert System use?
It uses MQ-2, MQ-4, MQ-6, and MQ-7 gas sensors. - How is the system powered?
The system is powered from a 5V 3A power supply with a mini toggle switch to turn it on. - Which microcontroller runs the system?
An Intel Edison mounted on an Arduino breakout board runs the system. - How are sensor signals read by the Edison?
Each sensor's signal pin connects to analog inputs A0 through A3 on the Edison breakout board. - How are threshold adjustments made?
Two potentiometers provide thresholds with toggle switches selecting between them; potentiometer wipers connect to analog inputs A4 and A5. - How does the system provide visual feedback?
It controls a DotStar LED strip segmented into four 10-LED sections via SPI from the Edison. - How is the buzzer controlled?
The 5V buzzer is driven through a 2N3904 NPN transistor controlled by an Edison GPIO pin. - What are the resistor values used for sensor sensitivity?
The MQ-7 uses a 10K resistor and the other sensors each use a 20K resistor for sensitivity adjustment.
