Introduction
In this project, we have designed Alcohol Level Meter using Arduino & MQ-135 Alcohol/Gas Sensor for measuring the level of alcohol in human breathing. Simply we have interfaced the MQ-135 Gas Sensor module with Arduino and a 16*2 LCD module for display. The alcohol/Gas sensor we used is the MQ-135 sensor. This is a sensor that is not only sensitive to alcohol, particularly ethanol, which is the type of alcohol that is found in wine, beer, and liquor. Instead of MQ-135, you can use MQ2, MQ3, and MQ5 modules as well. Basically, they all have similar functions.
This type of sensor circuit can be used as a breathalyzer to check a person’s blood-alcohol level. Just as we exhale carbon dioxide when we breathe out, we also will breathe out some alcohol if we have alcohol in our blood. Any alcoholmeter device can measure this alcohol content. The more ethanol in your blood, the more there is in the air on exhalation. This alcohol content gives a good indication of if a person is drunk and how drunk they are.
The amount of alcohol exhaled into the air is proportional to the amount of alcohol that will be found in a person’s blood. Alcometers use a built-in formula to estimate blood alcohol content from the exhaled air alcohol content.
In different countries, the level of alcohol in the blood that defines a person as over the limit for driving varies. The range ranges from 0.01 to 0.10. Most countries have a limit of about 0.05. For example, Greece, Greenland, and Iceland all have limits of 0.05. Canada has a higher limit set at 0.08. For our circuit, it can function as an algometer so that we get an estimate of a person’s blood-alcohol level.
To learn more about the MQ-135 Sensor you can check this similar post: Arduino Smoke Level Detector using MQ-135 Sensor with Alarm
Components Required
For designing Alcohol Level Meter using Arduino & MQ-135 Alcohol/Gas Sensor we need the following components:
1 2 3 4 5 6 |
1. Arduino UNO Board 2. 16*2 LCD 3. MQ-135 Gas/Alcohol Sensor Module (You can use MQ2, MQ3, MQ5 as well) 4. LED 4. Breadboard 5. Connecting Jumper Wires |
Alcohol Level Meter using Arduino & MQ-135 Sensor
Now after managing these components do the following connection for designing Digital Tachometer using IR Sensor with Arduino for measuring RPM
LCD Pins 1, 3 ,5 ,16 ——— GND
LCD Pins 2, 15 ————— VCC (+5V)
LCD Pin 4 ——————– Arduino pin D7
LCD Pin 6 ——————– Arduino pin D6
LCD Pin 11 ——————- Arduino pin D5
LCD Pin 12 ——————- Arduino pin D4
LCD Pin 13 ——————- Arduino pin D3
LCD Pin 14 ——————- Arduino pin D2
MQ-135 Module Pin -GND —— GND
MQ-135 Module Pin +VCC —— VCC
MQ-135 Module Pin A0 — Arduino Pin A0
LED Pin +ve end ————- Arduino PinD10
LED Pin -ve end ————-GND
A connection diagram is given below as well. Simply assemble the circuit like this.
MQ-135 Gas/Alcohol Sensor Module
Introduction
MQ-135 Module sensor has lower conductivity in clean air. When the target combustible gas exists, the sensor’s conductivity is higher along with the gas concentration rising. Convert change of conductivity to correspond output signal of gas concentration. MQ135 gas sensor has a high sensitivity to Ammonia, Sulphide, and Benzene steam, also sensitive to smoke and other harmful gases. It is with low cost and suitable for different applications such as harmful gases/smoke detection.
Features
- Wide detecting scope
- Fast response and High sensitivity
- Stable and long-life Simple drive circuit
- Used in air quality control equipment for buildings/offices, is suitable for detecting NH3, NOx, alcohol, Benzene, smoke, CO2, etc.
- Size: 35mm x 22mm x 23mm (length x width x height)
- Working voltage: DC 5 V
- Signal output instruction.
- Dual signal output (analog output, and high/low digital output)
- ~ 4.2V analog output voltage, the higher the concentration the higher the voltage.
Working Mechanism
The MQ-135 alcohol sensor consists of tin dioxide (SnO2), a perspective layer inside aluminum oxide microtubes (measuring electrodes), and a heating element inside a tubular casing. The end face of the sensor is enclosed by a stainless steel net and the backside holds the connection terminals. Ethyl alcohol present in the breath is oxidized into acetic acid passing through the heating element. With the ethyl alcohol cascade on the tin dioxide sensing layer, the resistance decreases. By using the external load resistance the resistance variation is converted into a suitable voltage variation.
You can check more about the MQ-135 Sensor here: MQ-135 Datasheet
Arduino Source Code
So here is a source code for designing Alcohol Level Meter using Arduino & MQ-135 Alcohol/Gas Sensor. Simply copy the code and upload it to your Arduino board using Arduino IDE.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
#include <LiquidCrystal.h> LiquidCrystal lcd(7, 6, 5, 4, 3, 2); int ledPin = 10; int sensorPin = A0; int value; void setup() { Serial.begin(9600); lcd.begin(16,2); pinMode(ledPin,OUTPUT); } void loop() { int Value = analogRead(sensorPin); value = analogRead(A0); lcd.print("Alcohol Lev.:"); lcd.print(value-50); Serial.print(value); if (value-50 > 400) { digitalWrite(ledPin,HIGH); lcd.setCursor(0, 2); lcd.print("Alert....!!!"); Serial.print ("Alert"); } else { digitalWrite(ledPin,LOW); lcd.setCursor(0, 2); lcd.print(".....Normal....."); Serial.print("Normal"); } delay(500); lcd.clear(); } |
6 Comments
In which website, program or emulator did you diagram the circuit with the image?
use fritzing software
Hello sir,
I want to ask about
LCD Pins 2, 16 ————— VCC (+5V)
Do you mean 15 instead of 16??
Lcd pin 1,3,5,16 as GND
Lcd pin 2,15 as VCC (+5V)
Sir how fit the DC motor 5v for purposes on engine locking system demo…
Sir, I want engine locking system