Sensores Gases

Promoções

Produtos visualizados

MQ-3 Alcohol Ethanol

BE15000312

Novo produto

7,34 € com IVA

Adicionar à Lista de desejos

Mais informação

  • Dual signal output (analog output, and TTL level output);
  • TTL output valid signal is low, can be connected directly to the microcontroller
  • 0 ~ 5V analog output voltage, the higher the concentration the higher the voltage
  • The gas, natural gas, city gas, smoke better sensitivity.
  • Has a high sensitivity and good selectivity to ethanol vapor;
  • Has a long life and reliable stability;
  • Rapid response recovery characteristics
  • Size: 32mm X22mm X22mm length * width * height
  • The main chip: LM393, MQ-3 gas sensor
  • Operating voltage: DC3-5V

 

Conection to Arduino:

 

http://www.learningaboutelectronics.com/images/MQ3-alcohol-sensor-circuit-with-arduino.png

 

Arduino Code:

 

/* MQ-3 Alcohol Sensor Circuit with Arduino */

const int AOUTpin = 0; //the AOUT pin of the alcohol sensor goes into analog pin A0 of the arduino
const int DOUTpin = 8; //the DOUT pin of the alcohol sensor goes into digital pin D8 of the arduino
const int ledPin = 13; //the anode of the LED connects to digital pin D13 of the arduino

int limit;
int value;

void setup() {
  Serial.begin(115200);//sets the baud rate
  pinMode(DOUTpin, INPUT);//sets the pin as an input to the arduino
  pinMode(ledPin, OUTPUT);//sets the pin as an output of the arduino
}

void loop()
{
  value = analogRead(AOUTpin); //reads the analaog value from the alcohol sensor's AOUT pin
  limit = digitalRead(DOUTpin); //reads the digital value from the alcohol sensor's DOUT pin
  Serial.print("Alcohol value: ");
  Serial.println(value);//prints the alcohol value
  Serial.print("Limit: ");
  Serial.print(limit);//prints the limit reached as either LOW or HIGH (above or underneath)
  delay(100);
  if (limit == HIGH) {
    digitalWrite(ledPin, HIGH);//if limit has been reached, LED turns on as status indicator
  }
  else {
    digitalWrite(ledPin, LOW);//if threshold not reached, LED remains off
  }
}

Acessórios