Sensores Gases

Promoções

Produtos visualizados

Electronic Brick - MQ-2 Gas Sensor Brick Ver maior

Electronic Brick - MQ-2 Sensor de gas

BE15000027

Novo produto

MQ-2 Gas Sensor Brick

Mais detalhes

7,00 € com IVA

Adicionar à Lista de desejos

Mais informaçã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:

 

Acessórios

Clientes que compraram este produto também compraram: