Ks0041 keyestudio Analog Alcohol Sensor: Difference between revisions
Jump to navigation
Jump to search
Keyestudio (talk | contribs) |
Keyestudio (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
<br> | <br> | ||
==Specification== | ==Specification== | ||
*Power Supply: 5V | *Power Supply: 5V | ||
Line 22: | Line 21: | ||
<br> | <br> | ||
==Sample Code == | ==Sample Code == | ||
<pre> | <pre> | ||
///Arduino Sample Code | ///Arduino Sample Code | ||
Line 46: | Line 44: | ||
<br> | <br> | ||
==Resources == | ==Resources == | ||
Line 57: | Line 54: | ||
<br> | <br> | ||
==Buy from == | ==Buy from == | ||
Revision as of 10:20, 27 May 2019
Introduction
This analog gas sensor - MQ3 is suitable for detecting alcohol. It can be used in a breath analyzer.
It has good selectivity because it has higher sensitivity to alcohol and lower sensitivity to Benzine.
The sensitivity can be adjusted by rotating the potentiometer.
Specification
- Power Supply: 5V
- Interface Type: Analog
- Quick response and High sensitivity
- Simple drive circuit
- Stable and long service life
Connection Diagram
Sample Code
///Arduino Sample Code void setup() { Serial.begin(9600); //Set serial baud rate to 9600 bps } void loop() { int val; val=analogRead(0);//Read Gas value from analog 0 Serial.println(val,DEC);//Print the value to serial port delay(100); }
Result
Done wiring and powered up, upload well the code, then open the serial monitor and set the baud rate as 9600, you will see the analog value. When detecting the alcohol gas, the value will make a change.
Resources
- Video
http://video.keyestudio.com/ks0041/
- PDF and Code
https://drive.google.com/open?id=1pj450X_-swexzKBbjfFT9Qg9lGpdsnMh