Mq3 Alcohol Detector Gas Sensor
Rs. 89.00 Rs. 98.00
- Brand: https://www.hwsensor.com/
- Product Code: SEN-GAS
- SKU -
- Availability: In Stock
- Price in reward points: 1
- For Bulk Order 9962060070
Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered
SPECIFICATIONS | |
Operating Voltage | 5V ±0.1 |
Current Consumption | 150mA |
Operation Temperature | -10°C ~ +70°C |
Concentration | 0.05 mg/L ~ 10 mg/L Alcohol |
Load resistance | 200 kΩ |
OVERVIEW | |
Power requirements | 5 VDC @ ~165 mA (heater on) / ~60 mA (heater off). |
Current Consumption | 150mA. |
DO output | 0.1 and 5V. |
AO output | 0.1- 0.3 V (relative to pollution), the maximum concentration of a voltage of about 4V |
Detecting Concentration | 0.05-10mg/L Alcohol. |
PACKAGE INCLUDES:
1 PCS x Mq 3 Alcohol Gas Sensor
https://www.hwsensor.com/
//SOURCE CODE TAKEN FROM BELOW LINK
//https://create.arduino.cc/projecthub/yashikibrahim/alcohol-detection-sensor-dc32cd
/* MQ-3 Alcohol Sensor Circuit with Arduino */
/*SHUBHAM GUPTA - EMBEDDED ENGINEER*/
const int AOUTpin=A0;//the AOUT pin of the alcohol sensor goes into analog pin A0 of the arduino
const int ledPin=13;//the anode of the LED connects to digital pin D13 of the arduino
int i,alco_high,alco_low,mapped,data[200];
void setup() {
Serial.begin(115200);//sets the baud rate
pinMode(AOUTpin, INPUT);//sets the pin as an input to the arduino
for(i=2;i<=5;i++)
{
pinMode(i,OUTPUT);//sets the pin as an output of the arduino
}
}
void loop()
{
alco_high=0; // initially alcohol level is zero
alco_low = 1023; // low threshold is 1023
for(i=200; i>0; i--){
data[i] = data[i-1]; // decrement of data
if(data[i]>alco_high)
alco_high=data[i];
if(data[i]<alco_low)
alco_low=data[i];
}
data[0]= analogRead(AOUTpin);//reads the analaog value from the alcohol sensor's AOUT pin
mapped=map(data[0],0,1023,0,600);
Serial.print("Alcohol value: ");
Serial.println(mapped);//prints the alcohol value
delay(100);
if((alco_high-alco_low)>150){
if(data[0] > (alco_high-.95*(alco_high-alco_low)))//this is true if the read is greater than 95% of the span
digitalWrite(2, HIGH);
else
digitalWrite(2,LOW);
if(data[0] > (alco_high-.9*(alco_high-alco_low)))
digitalWrite(3, HIGH);
else
digitalWrite(3,LOW);
if(data[0] > (alco_high-.8*(alco_high-alco_low)))
digitalWrite(4, HIGH);
else
digitalWrite(4,LOW);
if(data[0] > (alco_high-.7*(alco_high-alco_low)))
digitalWrite(5, HIGH);
else
digitalWrite(5,LOW);
}
else
{
for(i=2;i<=5;i++)
digitalWrite(i,0);
}}
15 days