Electronic Brick - MQ-2 Gas Sensor Brick
  • Electronic Brick - MQ-2 Gas Sensor Brick

MQ-2 Gas Sensor Brick

0 Review
€4.29
Tax included
BE15000027

MQ-2 Gas Sensor Brick

Quantity

  • Política de segurança Política de segurança
  • Política de entrega Política de entrega
  • Política de devolução Política de devolução

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 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

 

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:

 
BE15000027

No customer reviews for the moment.

Add a review

Your email address will not be published.Required fields are marked*

Customers who bought this product also bought:

Related Products