Gas

Promociones especiales

Productos más vistos

Electronic Brick - MQ-2 Gas Sensor Brick Ver más grande

Electronic Brick - MQ-2 sensor del gas

BE15000027

Nuevo producto

MQ-2 Gas Sensor Brick

Más detalles

7,00 € impuestos inc.

Más

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:

 

Accesorios

Los clientes que adquirieron este producto también compraron: