Difference between revisions of "MQ - 2 Gas Sensor Brick"

From ITEAD Wiki
Jump to: navigation, search
(Specifications)
m (Features)
 
(6 intermediate revisions by one other user not shown)
Line 2: Line 2:
  
 
[[File:Gas sensor.jpg|thumb|400px|right]]
 
[[File:Gas sensor.jpg|thumb|400px|right]]
 +
 +
What is an electronic brick? An electronic brick is an electronic module which can be assembled like Lego bricks simply by plugging in and pulling out. Compared to traditional universal boards and circuit modules assembled with various electronic components, electronic brick has standardized interfaces, plug and play, simplifying construction of prototype circuit on one’s own. There are many types of electronic bricks, and we provide more than twenty types with different functions including buttons, sensors, Bluetooth modules, etc, whose functions cover from sensor to motor drive, from Ethernet to wireless communication via Bluetooth, and so on. We will continue to add more types to meet the various needs of different projects.
 +
 
The electronic brick of gas sensor can be used in fire protection systems to detect hydrogen, isobutane, liquefied petroleum gas, methane, carbon monoxide, alcohol, smoke, propane and other harmful gases.
 
The electronic brick of gas sensor can be used in fire protection systems to detect hydrogen, isobutane, liquefied petroleum gas, methane, carbon monoxide, alcohol, smoke, propane and other harmful gases.
 +
 +
Go shopping [http://imall.iteadstudio.com/im120710024.html MQ - 2 Gas Sensor Brick (IM120710024)]
  
 
==Features==
 
==Features==
 
1. Plug and play, easy to use. Compatible with the mainstream 2.54 interfaces and 4-Pin Grove interfaces in the market.
 
1. Plug and play, easy to use. Compatible with the mainstream 2.54 interfaces and 4-Pin Grove interfaces in the market.
 +
 
http://imall.iteadstudio.com/media/wysiwyg/Products/ElectronicBrick/IM120710024_2.jpg
 
http://imall.iteadstudio.com/media/wysiwyg/Products/ElectronicBrick/IM120710024_2.jpg
  
 
2. With use of M4 standard fixed holes, compatible with M4-standard kits such as Lego and Makeblock.
 
2. With use of M4 standard fixed holes, compatible with M4-standard kits such as Lego and Makeblock.
 +
 
http://imall.iteadstudio.com/media/wysiwyg/Products/ElectronicBrick/IM120710024_3.jpg
 
http://imall.iteadstudio.com/media/wysiwyg/Products/ElectronicBrick/IM120710024_3.jpg
  
Line 26: Line 33:
  
 
==Electrical Characteristics==
 
==Electrical Characteristics==
 +
{| class="wikitable"
 +
|-
 +
| align="center" style="background:#f0f0f0;"|'''Parameter'''
 +
| align="center" style="background:#f0f0f0;"|'''Min.'''
 +
| align="center" style="background:#f0f0f0;"|'''Typical'''
 +
| align="center" style="background:#f0f0f0;"|'''Max.'''
 +
| align="center" style="background:#f0f0f0;"|'''Unit'''
 +
|-
 +
| Working voltage||4.5||5||5.5||VDC
 +
|-
 +
| Analog output voltage(VCC=5V)||0||-||5||V
 +
|-
 +
| Working current(VCC=5V)||-||122||-||mA
 +
|}
 +
 +
http://imall.iteadstudio.com/media/wysiwyg/Products/ElectronicBrick/IM120710024_4.jpg
 +
 +
The sensitive characteristics of MQ-2 to various gases
  
 
==Demo==
 
==Demo==
 +
Connect S port of electronic brick of gas sensor to A0 port of Arduino board, and we will use the following program to read the analog value. When the analog value exceeds the threshold, LED lamp will flash.
 +
 +
  const int ledPin =  13;      // the number of the LED pin
 +
  const int thresholdvalue=400; //The threshold to turn the led on
 +
  void setup() {
 +
    pinMode(ledPin, OUTPUT);
 +
  }
 +
  void loop() {
 +
  int sensorValue = analogRead(A0); //use A0 to read the electrical signal
 +
  if(sensorValue>thresholdvalue)
 +
  digitalWrite(ledPin,HIGH); //if the value read from A0 is larger than 400,then light the LED
 +
  delay(200);
 +
  digitalWrite(ledPin,LOW);
 +
  }
  
 
==Download==
 
==Download==
 +
[ftp://imall.iteadstudio.com/Electronic_Brick/IM120710024/DS_IM120710024.pdf Datasheet for MQ - 2 Gas Sensor Brick]
 +
 +
[ftp://imall.iteadstudio.com/Electronic_Brick/IM120710024/SCH_IM120710024.pdf Schematic for MQ - 2 Gas Sensor Brick]
 +
 +
[ftp://imall.iteadstudio.com/Electronic_Brick/IM120710024/DEMO_IM120710024.zip Demo code for MQ - 2 Gas Sensor Brick]
  
 
==Useful Links==
 
==Useful Links==

Latest revision as of 07:06, 22 May 2015

Overview

Gas sensor.jpg

What is an electronic brick? An electronic brick is an electronic module which can be assembled like Lego bricks simply by plugging in and pulling out. Compared to traditional universal boards and circuit modules assembled with various electronic components, electronic brick has standardized interfaces, plug and play, simplifying construction of prototype circuit on one’s own. There are many types of electronic bricks, and we provide more than twenty types with different functions including buttons, sensors, Bluetooth modules, etc, whose functions cover from sensor to motor drive, from Ethernet to wireless communication via Bluetooth, and so on. We will continue to add more types to meet the various needs of different projects.

The electronic brick of gas sensor can be used in fire protection systems to detect hydrogen, isobutane, liquefied petroleum gas, methane, carbon monoxide, alcohol, smoke, propane and other harmful gases.

Go shopping MQ - 2 Gas Sensor Brick (IM120710024)

Features

1. Plug and play, easy to use. Compatible with the mainstream 2.54 interfaces and 4-Pin Grove interfaces in the market.

IM120710024_2.jpg

2. With use of M4 standard fixed holes, compatible with M4-standard kits such as Lego and Makeblock.

IM120710024_3.jpg

Specifications

PCB size 33.0mm X 14.0mm X 1.6mm
Working voltage 5V DC
Operating voltage 5V DC
Compatible interfaces 2.54 3-pin interface and 4-pin Grove interface(1)

Note 1: S for analog output port, V and G for voltage at the common collector and ground respectively

Electrical Characteristics

Parameter Min. Typical Max. Unit
Working voltage 4.5 5 5.5 VDC
Analog output voltage(VCC=5V) 0 - 5 V
Working current(VCC=5V) - 122 - mA

IM120710024_4.jpg

The sensitive characteristics of MQ-2 to various gases

Demo

Connect S port of electronic brick of gas sensor to A0 port of Arduino board, and we will use the following program to read the analog value. When the analog value exceeds the threshold, LED lamp will flash.

 const int ledPin =  13;      // the number of the LED pin
 const int thresholdvalue=400; //The threshold to turn the led on
 void setup() {
    pinMode(ledPin, OUTPUT); 
 }
 void loop() {
 int sensorValue = analogRead(A0); //use A0 to read the electrical signal
 if(sensorValue>thresholdvalue)
 digitalWrite(ledPin,HIGH); //if the value read from A0 is larger than 400,then light the LED
 delay(200);
 digitalWrite(ledPin,LOW);
 }

Download

Datasheet for MQ - 2 Gas Sensor Brick

Schematic for MQ - 2 Gas Sensor Brick

Demo code for MQ - 2 Gas Sensor Brick

Useful Links