Ks0132 keyestudio EASY plug Analog Alcohol Sensor: Difference between revisions
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
[[image:ks0132图.jpg|thumb|600px|right|Keyestudio EASY plug Analog Alcohol Sensor]] | |||
==Introduction== | ==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 | 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. | ||
Note: this module | The sensitivity can be adjusted by a blue potentiometer on the sensor.<br> | ||
<span style="color: red">'''Note: ''' this module should be used together with EASY plug control board.<br> | |||
<br> | |||
==Specification== | ==Specification== | ||
* | * Connector: Easy plug | ||
* Power supply: 5V | * Power supply: 5V | ||
* Sensor type: Digital and Analog | * Sensor type: Digital and Analog | ||
* Simple drive circuit | * Simple drive circuit | ||
* Stable and long service life | * Stable and long service life | ||
* | * Quick response and High sensitivity | ||
== | ==Technical Details== | ||
* Dimensions: 56mm*20mm*18mm | |||
* Weight: 7.5g | |||
<br> | |||
==Connect It Up == | |||
Connect the EASY Plug analog alcohol sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable. | |||
<br>[[File:ks0132.jpg|500px|frameless|thumb]]<br> | |||
== | <br> | ||
==Upload the Code== | |||
Copy and paste below code to [http://wiki.keyestudio.com/index.php/How_to_Download_Arduino_IDE Arduino IDE] and upload. | |||
<pre> | <pre> | ||
int gas_din= | int gas_din=2; | ||
int gas_ain= | int gas_ain=A7; | ||
int led=13; | int led=13; | ||
int ad_value; | int ad_value; | ||
Line 53: | Line 58: | ||
} | } | ||
</pre> | </pre> | ||
<br> | |||
==What You Should See== | |||
Done uploading the code, open the serial monitor and set the baud rate to 9600. If the sensor detects the alcohol in the air, you should see the value change. | |||
<br>[[File:ks0132 Result.gif|500px|frameless|thumb]]<br> | |||
<br> | |||
==Resources == | ==Resources == | ||
'''PDF'''<br> | |||
'''PDF''' | |||
https://drive.google.com/open?id=1gmQEiYVBBGhconDRPIVlk7cxvtV65L-S | https://drive.google.com/open?id=1gmQEiYVBBGhconDRPIVlk7cxvtV65L-S | ||
<br> | |||
==Buy from == | ==Buy from == | ||
'''Official Website''' | '''Official Website'''<br> | ||
http://www.keyestudio.com/keyestudio-easy-plug-analog-alcohol-sensor-mq-3-for-arduino-starter.html | |||
[[category:EASY Plug]] | [[category:EASY Plug]] |
Revision as of 13:07, 16 November 2018
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 a blue potentiometer on the sensor.
Note: this module should be used together with EASY plug control board.
Specification
- Connector: Easy plug
- Power supply: 5V
- Sensor type: Digital and Analog
- Simple drive circuit
- Stable and long service life
- Quick response and High sensitivity
Technical Details
- Dimensions: 56mm*20mm*18mm
- Weight: 7.5g
Connect It Up
Connect the EASY Plug analog alcohol sensor to control board using an RJ11 cable. Then connect the control board to your PC with a USB cable.
Upload the Code
Copy and paste below code to Arduino IDE and upload.
int gas_din=2; int gas_ain=A7; 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); }
What You Should See
Done uploading the code, open the serial monitor and set the baud rate to 9600. If the sensor detects the alcohol in the air, you should see the value change.
Resources
PDF
https://drive.google.com/open?id=1gmQEiYVBBGhconDRPIVlk7cxvtV65L-S
Buy from
Official Website
http://www.keyestudio.com/keyestudio-easy-plug-analog-alcohol-sensor-mq-3-for-arduino-starter.html