Sidharth Report File 6th Semester
Sidharth Report File 6th Semester
Sidharth Report File 6th Semester
SIWAN
UNDER DEPT. OF SCIENCE AND TECHNOLOGY
GOVT. OF BIHAR
MAJOR PROJECT II
ON
ALCHOL DECTECTOR
SESSION (2020-2023)
SUBMITTED BY SUBMITTED TO
SIDHARTH KUMAR [611492120014] Mr. DEEPAK KUMAR GIRI
AMRESH KUMAR [611492120009] (H.O.D),
ALOK KUMAR [611492120016] DEPT. OF ELECTRONICS ENGG.
AHSAN ALAM [611492120024] GOVT.POLYTECHNIC, SIWAN
----------------------------- ---------------------------
Mr. Deepak Kumar Giri Mr. Deepak Kumar Giri
Lecturer, Lecturer and H.O.D
Department of Electronic Engg. Department of Electronic Engg.
Government Polytechnic Siwan Government Polytechnic Siwan
AKWOLEDGEMENT
The satisfaction that accompanies the successful completion of the task
would be put Incomplete without the mention of the people who made it
possible, whose constant guidance and encouragement crown all the
efforts with success.
It Is my greatest pleasure to thank Prof. Deepak Kumar Head of
Department of Electronics Engg. Government Polytechnic Siwan for
providing us heart full encouragement support and allowing us to work in
such a resourceful lab of this esteemed institute & thereby fulfilling one
of my dreams.
I whole heartedly thank my project guide Prof. Deepak Kumar for his
consistent guidance, expert academic and support throughout the project,
without his great concepts & inspiration it would have been impossible.
I thank my parents for their emotional and financial support which they
provided during this project.
We show gratitude to our Honourable Principal Er. Rampukar Chaudhary
for having provided all the facilities and support.
Sidharth Kumar
611492120014
ABSTRACT
The identification of alcohol with the locking mechanism of the engine
decreases the spike of road accidents caused by drivers' extreme alcohol
intake. The device controls alcohol in the driver's exhaled breath to
activate the engine locking system. Alcohol sensor Arduino Mega
microcontroller, DC motor, is used for system creation. The car engine is
switched off, and the emergency siren is blown as soon as alcohol is
detected, minimizing the likelihood of any potential mishaps. The
prototype is also useful for preventing a catastrophic driver-induced crash.
Previously, there was no technology to lock the vehicle engine after the
alcohol was detected. Driver alcohol consumption too much, which was
the main cause of the accident. It was the same manual checks after a
particular distance on streets or freeways, but they will never be enough
to halt the malfunctions. Driving any vehicle in a developing country like
Malaysia takes great dedication, rapid thought, and drivers' judgment
talents to help stop traffic accidents. Getting drunk alcohol beyond a
certain quantity distorts a driver's standard brain function and mentality,
which often leads to accidents that impact not only the driver but also his
fellow passengers and people nearby. In turn, the family members may
also suffer from fatal trauma. The proposed device would measure the
many conditions that can cause an alarm to signify the driver's drunk or
sober state when fitted on a steering wheel within the car. For the
recommendation to improve the project in the future, particularly in
preventing system cheats and device damage. Concerning anti-cheating,
one common approach to cheating the device is to request another person
to take a clean sample of a breath when starting the car. The recommended
advancement and generations to work to mitigate this problem involve a
face lock application for security to ensure that the car is the authorized
driver taking the check procedure.
CONTENT
CHAPTER 1: INTRODUCTION
1.01 OVERVIEW
1.02 ADVANTAGES
1.03 APPLICATIONS
1.03 FUTURE ENHANCEMENT
CHAPTER 2: LITERATURE REVIEW
2.01 PROBLEM STATEMENT
2.02 PROPOSED SYSTEM
CHAPTER 3: REVIEW OF COMPONENTS USED
3.01 ARDUINO UNO
3.02 LCD (16*2)
3.03 MQ3 SENSOR
3.04 BUZZER
3.05 LED
3.06 JUMPER WIRE
3.07 WHEEL
3.08 CHASSIS
3.09 DC MOTOR
3.10 POTENTIOMETER
3.11 RESISTOR
3.12 L298N MOTOR DRIVER
3.13 BATTERY (3.7v)
FEATURES
Microcontroller ATmega328
Operating Voltage 5V
A 16*2 LCD means it can display 16 characters per line and there are 2
such lines. In this LCD each character is displayed in 5*7-pixel matrix.
This LCD has 2 registers, namely command and data.
The command registers store the command instructions given to the LCD.
A command is an instruction given to LCD to do a predefined task like
initializing it, clearing its screen, setting the cursor position, controlling
display etc. the data registers stores the data to be display on the LCD. the
data is the ASCII value of the character to be displayed on the LCD.
3.03 MQ3 SENSOR
The analog gas sensor- MQ3 is suitable for alcohol detecting, this sensor
can be used in a breath analyser. It has a high sensitivity to alcohol and
small sensitivity to benzene.
Features:
1. The PS series are high performance buzzers that employ uni-morph
piezoelectric elements and are designed for easy incorporation into
various circuits.
2.They feature extremely low power consumption in comparison to
electromagnetic units.
3. Because these buzzers are designed for external excitation, the same
part can serve as both a musical tone oscillator and a buzzer.
4. They can be use with automated inserters, moisture- resistant models
are also available
3.05 LED
A light-emitting diode (LED) is a two-lead semiconductor light source. It
is a p-n junction diode that emits light when activated. When a suitable
current is applied to the leads, electrons are able to recombine with
electron holes within the device, releasing energy in the form of photons.
This effect is called electroluminescence, and the colour of the light
(corresponding to the, energy of the photon) is determined by the energy
band gap of the semiconductor. LEDs are typically small-(less than I
mm2) and integrated optical components may be used to shape the
radiation pattern.
Fig : LED
Specification:-
➢ Operating Voltage (VDC) : 3 ~ 12V
➢ Shaft Length (mm) : 8.5
➢ Shaft Diameter (mm) : 5.5
➢ No Load Current (mA) : 40-180mA.
➢ Rated Speed After Reduction (RPM) : 100
➢ Rated Torque (Kg-Cm) : 0.35
➢ Weight (gm) : 30
➢ Dimensions in mm (LxWxH): 70x35x22
➢ Gearbox Shape : Straight
3.10 POTENTIOMETER
This is a single turn 10K Ohms Preset Potentiometer, which can provide
variable resistance on adjusting the knob with a screwdriver. Because of
its breadboard friendly and easy PCB mounting nature, it commonly used
by hobbyists as well as by professionals. The pot can also be called as
Trimpot or Trimmer Pot.
High Accuracy
Good high-frequency characteristics
Resistance: - 1K Ohm
Rated Power: - 2W
Tolerance: - ± 5%
3.12 L298N MOTOR DRIVER
A microcontroller that normally operates on 5V or 3.3V cannot be directly
used to control a DC motor operating on higher voltage and current rating.
This is why we commonly use Motor Driver modules like the L293D
Motor Driver Module and the L298N Motor Driver Module. While the
L293D motor driver module can be used for basic low current application
the L298N Motor driver module is a high current motor driver with some
additional features that are commonly used with Arduino and Raspberry
Pi for Robotics applications.
The L298N Motor Driver module is based on the L298 Dual Full-Bridge
Driver IC and can control the speed and direction of two DC motors
(Motor A and Motor B) simultaneously. The voltage rating of these
motors can be between 5V to 35V and the peak current value can be up to
2A. The pinout diagram of the L298N Motor Driver Module is shown
below.
The pins Enable A and Enable B are used to set the speed of the motor.
By default, there will be jumper pins connected to both Enable A and B
to make them high (5V), this way the motors will rotate at maximum
speed. You can adjust the speed of the motors by removing the jumper
and providing a variable voltage between 0V to 5V by using a PWM
signal.
Finally, the four input pins Input 1, 2, 3, and 4 are used to control the
direction of the motor. For example, if Input 1 and Input 2 are made High
and Low, respectively, then Motor A will rotate in clockwise. If they are
made Low and High, then the motor will rotate counter clockwise. The
same logic applied for Input 3 and 4 with Motor B.
Specifications:
➢ Cell Type: 18650 - NMC Lithium
➢ Voltage: 3V to 4.2V
➢ Charge Current - 1A
➢ Max. Discharge Current: 2.6A
Application:
➢ DC Supply
➢ Music Speaker
➢ Electronic Projects
➢ Bluetooth Speakers
➢ Toy Cars etc.
CHAPTER 4:
SYSTEM FLOW CHART
flow chart of the system wherein when alcohol sensor detects the presence
of alcohol the ignition will start simultaneously the LCD panel will show
the presence of alcohol and buzzer will start ringing. In the absence of
alcohol content detection, the ignition will start and the buzzer will be
silent.
CHAPTER 5:
BLOCK & CIRCUIT DIAGRAM
The complete system uses the Arduino Uno (Based on ATMEGA 328) .
The practical blocks diagram of the arrangement is presented. MQ3
module, LCD display, buzzer, relay is handled by Arduino Uno. All the
modules are interface and programmed in a way to wok the entire module
in synchronization . The panel can be linked to the personal computer and
the programming of the microcontroller can be done for sensor to work
and can sense breathe. The reading will be demonstrated on the LCD
board which is interfaced with the Arduino Uno board. Once the sensor
detects it transfer the information to car ignition system which will not
start the engine of the vehicle.
CIRCUIT DIAGRAM:
CHAPTER 6:
METHODOLOGY
A flowchart of the proposed methodology is presented in Briefly, in
order to detect drunk drivers: alcohol presence in the vehicle is measured
and stored using seven alcohol sensors,the measurements are standardized
according to the sensor-specific sensibility and its longitudinal behaviour,
statistical features are extracted from the normalized signals, a genetic
algorithm is used to train several models in order to find the optimal subset
of features within the dataset, and a model that accurately classifies drunk
and non-drunk drivers is constructed. Each stage is further detailed in the
following subsections.
6.01 WORKING:
As the code starts it initializes the pin to which the sensor sends its data. Then
is setup we define the type of function we want on the initialized pins like
input or output. Then in the loop, we read the data available on pin 3 and then
print that value on our monitor. We also check for the condition of sensor
data to be either high or low and according to the condition led glows and
turns off.
In the buzzer code, we also initialize the buzzer pin to pin 13 and set pin
mode to OUTPUT in the setup section. In the loop section along with the led
we switch Buzzer also high and low.
When MQ3 detect alcohol, the LCD will show “Drunk “otherwise it will
show “NORMAL “.
When the sensor detects normal then the engine of vehicle start or in working
condition but when it show drunk or the set ppm level increase then on
immediate basis it will stop the engine of car.
And buzzer start producing sound of beep with red led blinking
6.02 CODE:
#include <LiquidCrystal.h>
#define sensorDigital 10
#define LED 6
#define buzzer 13
#define sensorAnalog A0
const int rele = 7;
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
int valor_gas;
void setup()
{
lcd.begin(16,2);
pinMode(rele, OUTPUT);
pinMode(sensorDigital, INPUT);
pinMode(sensorAnalog, INPUT);
pinMode(LED, OUTPUT);
pinMode(buzzer, OUTPUT);
Serial.begin(9600);
}
void loop(){
valor_gas = digitalRead(sensorDigital);
int analog = analogRead(sensorAnalog);
if(valor_gas==0)
{
digitalWrite(LED, LOW);
digitalWrite(buzzer, LOW);
lcd.setCursor (5,0);
lcd.print("Sober");
lcd. display();
digitalWrite(rele, LOW);
}
else
{
digitalWrite(LED, HIGH);
digitalWrite(buzzer, HIGH);
digitalWrite(rele,HIGH);
lcd.setCursor (5,0);
lcd.print("Alert");
lcd. display();
delay(500);
}
delay(500);
lcd.clear();
}
CHAPTER 7:
RESULTS & DISCUSSION
RESULT:
DISCUSSION:
The design of an alcohol detection using Arduino with motor locking was
carried out to decrease car crashes. Two scenarios in this project for
alcohol concentration are from 50 to 100 and 150 to 400. Keep in mind
that the Liquid crystal display (LCD) also shows the concentration of
alcohol even there no alcohol was detected. The 'NORMAL' condition
indicates a blood alcohol concentration of between under When the
alcohol concentration level is less than 150, the buzzer will sound,
indicating that the car's driver has consumed a small amount of alcohol.
A driver, however, is still permitted to start the car. If the alcohol detector
reading exceeds the set value of 150, a message stating" DRUNK" will be
displayed. This proves that the driver consumed an excessive amount of
alcohol. Nonetheless, the driver could not start the engine and drive at this
point. Additionally, the driver must wait until the level of alcohol in their
exhaled breath has decreased.
CHAPTER 8:
CONCLUSION
We have provided a very effective solution to develop an intelligent
system for vehicles for alcohol detection whose core is Arduino. Since
sensor has fine sensitivity range around 2 meters, it can suit to any vehicle
and can easily be hidden from the suspects. The whole system has also an
advantage of small volume and more reliability.
This paper defines a very real solution to cultivate an smart system for
alcohol detection which mainly based on Arduino. The advantage of this
system is its range of detection which can be customized as per the
requirement of the vehicle and can be placed without getting noticed from
accused.
The whole embedded system is connected to the vehicle electronic system
which will disable the car ignition system when it is detected that driver
is drunk. This is one of the best solutions to reduce number of accidents.
The system can be further improved by using other more accurate type of
sensors better specifications of microcontroller, stability system,
temperature sensors, LEDs to glow and better sound system.
This system has various other advantages like small volume, small size or
compact in nature and more trustworthiness. This arrangement advances
the care of human being and hence providing the actual growth in the
industry concerning to reduce the accidents source due to alcohol. The
legislation instead of putting more police such systems can be inbuilt in
the vehicle by the vehicle manufacturers so that driver or person driving
the vehicle is alert and make himself responsible.
CHAPTER 9:
REFERENCES
➢ http://www.arduino.cc/
➢ Activity_Card_1-Alcohol_detection.pdf (aim.gov.in)
➢ (PDF) Alcohol Detecting and Notification System for Controlling
Drink Driving (researchgate.net)
➢ www.ijetajournal.org/volume-2/issue-2/IJETA-V2I2P14.pdf
➢ Lee, Assessing the Feasibility of Vehicle-Based Sensors to Detect
Alcohol Impairment. 2010, National Highway Traffic Safety
Administration: Washington, DC.
➢ Conley, Construct validity AUDIT with multiple offenders’ Drunk
drivers. Journal of Substance Abuse Treatment, 2001.
➢ Vignesh M, Kavin T P, A. F. G. G. C. R. K. S. (2020). Accident
Detection and Alerting System Using GPS & GSM. International
Journal of Advanced Science and Technology, 29(3), 3598 - 3601.
Retrieved from http://sersc.org/journals /index.php
/IJAST/article/view/5037
➢ Vehicle Accident Detection and reporting system using GPS and
GSM Module.", International Journal of Emerging Technologies
and Innovative Research (www.jetir.org | UGC and issn Approved),
ISSN:2349-5162, Vol.2, Issue 5, page no. pp1433-1436, May-2015,
Available at http://www.jetir.org/papers/JETIR1505018.pdf
➢ P. Ranjana, R. Mukesh, A. Kumar, N. N. S. S. Sujith, and C. H.
Sathyasai, "Vehicle engine lock system for theft and alcohol
detection," Int. J. Recent Technol. Eng., vol. 7, no. 5, pp. 363–367,
2019.