Gases

Specials

Viewed products

Electronic Brick - MQ-2 Gas Sensor Brick View larger

Electronic Brick - MQ-2 Gas Sensor Brick

BE15000027

New product

MQ-2 Gas Sensor Brick

More details

7,00 € tax incl.

Add to wishlist

More info

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.

 

Specifications

PCB size33.0mm X 14.0mm X 1.6mm
Working voltage5V DC
Operating voltage5V DC
Compatible interfaces2.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

ParameterMin.TypicalMax.Unit
Working voltage4.555.5VDC
Analog output voltage?VCC=5V?0-5V
Working current?VCC=5V?-122-mA

 

Code:

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:

 

Accessories

Customers who bought this product also bought: