Ks0132 keyestudio EASY plug Analog Alcohol Sensor: Difference between revisions

From Keyestudio Wiki
Jump to navigation Jump to search
(Created page with "==EASY plug Analog Alcohol Sensor== <br>500px|frameless|thumb<br> ==Introduction== This analog gas sensor - MQ3 is suitable for detecting alcohol. It ca...")
 
No edit summary
Line 53: Line 53:
}
}
</pre>
</pre>
==Resources ==
'''Datasheet'''
http://www.keyestudio.com/files/index/download/id/1464246420/
==Buy from ==
http://www.keyestudio.com/keyestudio-easy-plug-analog-alcohol-sensor-mq-3-for-arduino-starter.html


[[category:Module]]
[[category:Module]]

Revision as of 11:41, 16 February 2017

EASY plug Analog Alcohol Sensor


thumb

Introduction

This analog gas sensor - MQ3 is suitable for detecting alcohol. It can be used in a Breath analyzer. Also it has high sensitivity to alcohol and low sensitivity to Benzine. The sensitivity can be adjusted by the potentiometer.
Note: this module needs to be used together with EASY plug control board.


Specification

  • Interface: Easy plug
  • Power supply: 5V
  • Sensor type: Digital and Analog
  • Quick response and High sensitivity
  • Simple drive circuit
  • Stable and long service life
  • Size: 56*15mm
  • Weight: 8g


Connection Diagram


thumb


Sample Code

int gas_din=18;
int gas_ain=A5;
int led=13;
int ad_value;
void setup()
{
  pinMode(led,OUTPUT);
  pinMode(gas_din,INPUT);
  pinMode(gas_ain,INPUT);
  Serial.begin(9600);
}
void loop()
{ 
  ad_value=analogRead(gas_ain);
  if(digitalRead(gas_din)==LOW)
  { 
    digitalWrite(led,HIGH);
    Serial.println("Alcohol leakage ");
    Serial.println(ad_value);
  }
  else
  {
    digitalWrite(led,LOW);
Serial.println("Alcohol not leak");
Serial.println(ad_value);
  }
  delay(500);
}

Resources

Datasheet

http://www.keyestudio.com/files/index/download/id/1464246420/

Buy from

http://www.keyestudio.com/keyestudio-easy-plug-analog-alcohol-sensor-mq-3-for-arduino-starter.html