Call Girls Colaba Mumbai ❤️ 9920874524 👈 Cash on Delivery
ADAELS .docx
1. 1 | P a g e
PROJECT REPORT
ON
ALCOHOL DETECTION AND ENGINE LOCKING SYSTEM
SUBMITTED IN PARTIAL FULFILLLMENT OF THE REQUIREMENT FOR THE
AWARD OF THE DEGREE OF
BACHELOR OF TECHNOLOGY
(ELECTRICAL ENGINEERING)
AUG-DEC 2022
UNDER THE GUINDANCE OF: SUBMITTED BY:
PROF.NAVNEET KAUR AMRIT SINGH (1900778)
ANISH GAUTAM (1900779)
ANKIT KUMAR (1900780)
ROHIT KUMAR (1900794)
Department of Electrical Engineering
Baba Banda Singh Bahadur Engineering College,
Fatehgarh Sahib – 140407, Punjab (INDIA)
2. 2 | P a g e
BABA BANDA SINGH BAHADUR ENGINEERING COLLEGE,
FATEHGARH SAHIB
CANDIDATE’S DECLERATION
We hereby certify that the work which is being presented in the Project entitled "
ALCOHOL DETECTION AND ENGINE LOCKING SYSTEM by AMRIT SINGH,
ANISH GAUTAM, ANKIT KUMAR, ROHIT KUMAR ” in partial fulfillment of
requirements for the award of degree of B. Tech (Electrical Engineering) submitted to the
Department of Electrical Engineering at BABA BANDA SINGH BAHADUR ENGINEERING
COLLEGE, FATEHGARH SAHIB is an authentic record of our own work carried out during a
period from AUGUST 2022 to DECEMBER 2022. The matter presented in this project has not
been submitted by us or anybody else in any other University for the awardof B. Tech Degree.
Signature of students
This is to certify that the above statement made by the candidate’s is correct to the best of our own
knowledge.
(Signature of Project Guide/Guides)
The Major Project Viva-Voice Examination of ___________________ 2022 (7th Semester)
has been held on ___________________
Signature of Internal Examiner Signature of External Examiner
3. 3 | P a g e
ACKNOWLEDGEMENT
It is a great privilege for us to express our profound gratitude to our respected teacher Dr. Rajni
Bala, Assistant Professor under the department of Electrical Engineering, Baba Banda Singh
Bahadur Engineering College for permitting us to pursue the project, for her constant guidance,
valuable suggestions, supervision and inspiration throughout the course work without which it
would have been difficult to complete the work within scheduled time.
We would like to express our gratitude towards Prof. Navneet Kaur for her kind co - operation
and encouragement which helped us in completion of this project.
We would like to take this opportunity to thank all the respected teachers of this department for
being a perennial source of inspiration and showing the right path at the time of necessity.
4. 4 | P a g e
TABLE OF CONTENT
CHAPTER
No.
CONTENT PAGE
No.
01 INTRODUCTION 07
02 LIST OF COMPONENTS:
i. ARDUINO UNO
ii. MQ3 SENSOR
iii. BUZZER
iv. BO MOTOR
v. LED
vi. SWITCH
vii. 5V RELAY
viii. BREADBOARD
08
09
13
14
15
16
17
18
19
03 CODE 20
04 CIRCUIT DIAGRAM 21
05 WORKING 22
06 APPLICATION
ADVANTAGE
DISADVANTAGE
FUTURE SCOPE
23
07 CONCLUSION 24
08 REFERENCE 25
5. 5 | P a g e
LIST OF FIGURES
FIGURE
NO.
FIGURE NAME PAGE
NO.
01 ALCOHOL DETECTION AND ENGINE LOCKING SYSTEM 07
02 ARDUINO UNO 10
03 MQ3 SENSOR 13
04 BUZZER 14
05 BO MOTOR 15
06 LED 16
07 SWITCH 17
08 5V RELAY 18
09 BREADBOARD 19
10 CIRCUIT DIAGRAM 21
6. 6 | P a g e
ABSTRACT
Preparing Project is an important phase of Student’s life. A well planned, properly executed and
evaluated project helps a lot in developing a professional attitude. It develops an awareness of
industrial approach to problem solving, based on broad understanding of process and mode of
operation of project. During a period of project making most of the theoretical knowledge that has
been gained during the course of studies is put to test.
The Introduction to different parts of the project that helped me to get familiar with the electrical
and electronic part use. In this project we learn how to work on IOT based components and system.
7. 7 | P a g e
CHAPTER 1
INTRODUCTION:
The current scenario shows that the most of the road accidents are occurring due to drunk-driving.
The drivers who drink alcohol are not in an stable condition and so, rash driving occurs on highway
which can be risky to the lives of the people on road.
So here we propose an innovative system to eliminate such cases. Our proposed system would be
constantly monitoring the driver breath by placing it on the driver wheel or somewhere the drivers
breath can be constantly monitored by it. So if a driver is drunk and tries to drive the system detects
alcohol presence in his/her breath and locks the engine so that the vehicle fails to start. In another
case if the driver is not drunk while he starts the vehicle and engine is started but he/she drinks while
driving the sensor still detects alcohol in his breath and stops the engine so that the car would not
accelerate any further and driver can steer it to roadside.
Figure 01 (ADAELS)
The Alcohol Detection with Engine Locking system helps to reduce accidents which are occurring
due to drunk driving. MQ-3 sensor detects the presence of alcohol in the surroundings. The sensor
provides output on the basis of the concentration of the alcohol, if the alcohol concentration is higher
the conductivity of MQ-3 sensor increases which in turn gives the reading to ARDUINO. If the
reading is greater than the threshold level, ARDUINO will stop the BO motor.
8. 8 | P a g e
CHAPTER 2
LIST OF COMPONENTS:
1.) ARDUINO UNO
2.) MQ3 SENSOR
3.) BUZZER
4.) BO MOTOR
5.) LED
6.) SWITCH
7.) 5V RELAY
8.) BREADBOARD
9. 9 | P a g e
1.) ARDUINO UNO:
Arduino is an open - source electronics platform based on easy - to - use hardware and software.
Arduino was born at the Interaction Design Institute (IDII) in IVREA, ITALLY. We are using
Arduino UNO, a microcontroller based on ATmega328. It comprises 14 digital input/output pins,
6 analogue inputs, a USB connector for power supply and a reset button.
Over the years Arduino has been the brain of thousands of projects, from everyday objects to
complex scientific instruments. A worldwide community of makers - students, hobbyists, artists,
programmers, and professionals - has gathered around this open - source platform, their
contributions have added up to an incredible amount of accessible knowledge that can be of great
help to novices and experts alike .
There are many other microcontrollers and microcontroller platforms available for physical
computing Parallax Basic Stamp, Net media's BX - 24, Phidgets, MIT's Handy board, and many
others offer similar functionality All of these tools take the messy details of microcontroller
programming and wrap it up in an easy - to - use package . Arduino also simplifies the process of
working with microcontrollers, but it offers some advantage for teachers, students, and interested
amateurs over other systems:
Inexpensive: Arduino boards are relatively inexpensive compared to other microcontroller
platforms. The least expensive version of the Arduino module can be assembled by hand, and even
the pre - assembled Arduino modules cost less than $ 50
Cross - platform: The Arduino Software (IDE) runs on Windows, Macintosh OSX, and Linux
operating systems. Most microcontroller systems are limited to Windows .Simple, clear
programming environment: The Arduino Software (IDE) is easy - to - use for beginners, yet
flexible enough for advanced users to take advantage of as well. For teachers, it's conveniently
based on the Processing programming environment, so students learning to program in that
environment will be familiar with how the Arduino IDE works.
Open source and extensible software: The Arduino software is published as open sourcetools,
available for extension by experienced programmers. The language can be expanded throughC ++
libraries , and people wanting to understand the technical details can make the leap from Arduino
to the AVR C programming language on which it's based .Similarly , you can add AVR
- C code directly into your Arduino programs if you want to.
Open source and extensible hardware: The plans of the Arduino boards are published under a
Creative Commons license, so experienced circuit designers can make their own version of the
module, extending it and improving it. Even relatively inexperienced users can build the
breadboard version of the module in order to understand how it works and save money.
10. 10 | P a g e
Figure 02 (Arduino Uno)
SPECIFICATIONS:
Microcontroller: ATmega328
Operating Voltage: 5V
Voltage (recommended): 7-12V
Input Voltage (limits): 6-20V
Digital I / OPins: 14 (of which 6 provide PWM output)
Analog Input Pins: 6
DC Current perl / OPin: 40mA
DC Current for 3.3VPin: 50mA
Flash Memory: 32 KB of which 0.5 KB used Boot loader
SRAM: 2KB
EEPROM: 1KB
Clock Speed: 16MHz 16
11. 11 | P a g e
General Pin functions:
LED: There is a built - in LED driven by digital pin 13. When the pin is HIGH value, the LED is
on, when the pin is LOW, it's off
VIN: The input voltage to the Arduino / Genuine board when it's using an external power source
(as opposed to 5 volts from the USB connection or other regulated power source). You can supply
voltage through this pin or if supplying voltage via the power jack, access it through this pin.
5V: This pin outputs a regulated 5V from the regulator on the board. The board can be supplied
with power either from the DC power jack (7-20V), the USB connector (SV) or the VIN pin of
the board (7-20V). Supplying voltage via the SV or 3.3V pins bypasses the regulator, and can
damage the board. A 3.3volt supply generated by the on - board regulator Maximum current draw
is 50mA.
GND: Ground pins IOREF: This pin on the Arduino / Genuine board provides the voltage
reference with which the microcontroller operates. A properly configured shield can read the
IOREF pin voltage and select the appropriate power source or enable voltage translators on the
outputs to work with the 5V or 3.3V.
Reset: Typically used to add a reset button to shields which block the one on the board. Special
Pin Functions.
Each of the 14 digital pins and 6 Analog pins on the Uno can be used as an input or output, using
pin Mode (), digital Write (), and digital Read () functions. They operate at 5 volts. Each pin can
provide or receive 20 mA as recommended operating condition and has an internal pull - up resistor
(disconnected by default) of 20-50k ohm. A maximum of 40mA is the value that must not be
exceeded on any I / O pin to avoid permanent damage to the microcontroller. The Uno has 6 analog
inputs, labeled A0 through A5, each of which provide 10 bits of resolution (i.e1024 different
values). By default they measure from ground to 5 volts, though is it possible to change the upper
end of their range using the AREF pin and the analog Reference () function.
Serial: Pins 0 (RX) and 1 (TX) Used to receive (IX) and transit CTX) TTL serial data. These pins
are connected to the corresponding pins of the ATmega8U / 2 USB - to - TTL Serial chip.
External Interrupts: pins 2 and 3. These pins can be configured to trigger an interrupt on a low
value, a rising or falling edge, or a change in value.
(Pulse Width Modulation) 3, 5, 6, 9, 10, and 11 Can provide 8 - bit PWM output with the analog
Write () function.
SPI: (Serial Peripheral Interface) 10 (SS), 11 ( MOSI ) , 12 ( MISO ) , 13 ( SCK ) . These pins
support SPI communication using the SPI library .TWI (Two Wire Interface): A4 or SDA pin and
A5 or SCL pin. Support TWI communication using the Wire library.
12. 12 | P a g e
Communication:
The Arduino/ Genuino Uno has a number of facilities for communicating with a computer,
anotherArduino /Genuino board, or other microcontrollers. The ATmega328 provides
UART TIL (SV) serial communication, which is available on digital pins 0 (RX) and I
(TX). An ATmega16U2 onthe board channels this serial communication over USB and
appears as a virtual com port to software on the computer. The 16U2 firmware uses the
standard USB COM drivers, and no external driver is needed. However, on Windows, a int
file is required. The Arduino Software (IDE) includes a serial monitor which allows simple
textual data to be sent to and from the board.The RX and TX LEDs on the board will flash
when data is being transmitted via the USB - to - serial chip and USB connection to the
computer ( but not for serial communication on pins 0 and 1 ) . A Software Serial library
allows serial communication on any of the Uno's digital pins.
Automatic (Software) Reset:
Rather than requiring a physical press of the reset button before an upload, the Arduino /
Genuino Uno board is designed in a way that allows it to be reset by software running on a
connected computer. One of the hardware flow control lines (DTR) of the ATmega8U2 /
16U2 is connectedto the reset line of the ATmega328 via a 100 nanofarad capacitor.
13. 13 | P a g e
2.) MQ3 SENSOR:
It is a low cost Metal Oxide Semiconductor sensor which can detect the presence of alcohol
gases at concentrations from 0.05 mg/l to 10 mg/l. The sensitive material used for this sensor
is SnO2, whose conductivity is lower in clean air. It’s conductivity increases as the
concentration of alcohol gas increases. It has high sensitivity to alcohol and has a good
resistance to disturbances due to smoke, vapor and gasoline. This module provides both
digital and analog outputs. MQ3 alcohol module can be easily interfaced with
Microcontrollers, Arduino Boards, Raspberry Pi etc.
This alcohol sensor is suitable for detecting alcohol concentrations on your breath, just like
your common breathalyzer. It has a high sensitivity and fast response time. Sensor provides
an analog resistive output based on alcohol concentrations. The drive circuit is very simple,
all it needs is one resistor. The MQ3 sensor operates on 5V DC and consume approximately
800mW. It can detect alcohol concentrations ranging from 25 to 500 ppm.
Figure 03 (MQ3 SENSOR)
14. 14 | P a g e
3.) BUZZER:
An audio signaling device like a beeper is known as buzzer. It may be electromechanical
or mechanical type. The main function of this is to convert the signal from audio to sound.
Generallyit is powered through DC voltage and used in timers, alarm device, mobile phones
etc. Based on various design it can generate different sounds like alarm, music, bell, siren.
Figure 04 (Buzzer)
It includes two pins namely positive and negative. Thepositive terminal of this is represented
withthe ‘+’ symbol or longer terminal. This terminal is power through 6volts whereas the
negative terminal is represented with ‘-’ symbol or short terminal and is connected to
ground terminal.
15. 15 | P a g e
4.) BO MOTOR:
Bo motor (Battery Operated) lightweight DC geared motor which gives good torque and rpm
at lower voltages. Here you can get bo motor with varying rated speed. This motor can run at
approximately 200 rpm when driven by a single Li-Ion cell. Great for battery operated
lightweight robots.
The motor has the ability to operate with minimum or no lubrication, due to inherent
lubricity. The motor is ideal for DIY enthusiasts. This motor set is inexpensive, small, easy to
install.
Figure 05 (BO Motors)
16. 16 | P a g e
5. LED:
A light-emitting diode (LED) is a semiconductor device that emits light when an electric
current flows through it. When current passes through an LED, the electrons recombine with
holes emitting light in the process. LEDs allow the current to flow in the forward direction and
block the current in the reverse direction.
Figure 06 (LED)
Light-emitting diodes are heavily doped p-n junctions. Based on the semiconductor material
used and the amount of doping, an LED will emit a coloured light at a particular spectral
wavelength when forward biased. As shown in the figure, an LED is encapsulated with a
transparent cover so that emitted light can come out.
The LED symbol is the standard symbol for a diode, with the addition of two small arrows
denoting the emission of light.
17. 17 | P a g e
5.) SWITCH:
In electrical engineering, a switch is an electrical component that can connect or disconnect.
The conducting path in electrical circuit, interrupting the electric current or diverting it from
one conductor to another. The most common type of switch is an electromechanical device
consistingof one or more set of movable electrical contacts connected to circuit. When a
pair of contacts is touching current can pass between them, while when the contacts are
separated no current can flow.
Figure 07 (Switch)
18. 18 | P a g e
6.) 5V RELAY:
Relay is one kind of electro-mechanical component that functions as a switch. The relay coil
is energized by DC so that contact switches can be opened or closed. A single channel 5V
relay module generally includes a coil, and two contacts like normally open (NO) and
normally closed (NC). The input voltage of the relay signal ranges from 0 to 5V.
Figure 08 (5V Relay)
The pin configuration of the 5V relay module is shown below. This module includes
6-pins where each pin and its functionality are discussed below.
Normally Open (NO): This pin is normally open unless we provide a signal to the
relay modules signal pin. So, the common contact pin smashes its link through the
NC pin to make a connection through the NO pin
Common Contact: This pin is used to connect through the load that we desire to switch by
using the module.
Normally Closed (NC): This NC pin is connected through the COM pin to form a closed
circuit. However, this NC connection will break once the relay is switched through providing
an active high/low signal toward the signal pin from a microcontroller.
Signal Pin: The signal pin is mainly used for controlling the relay. This pin works in two
cases like active low otherwise active high. So, in active low case, the relay activates once we
provide an active low signal toward the signal pin, whereas, in an active high case, the relay
will trigger once we provide a high signal toward the signal pin.
However, these modules generally work on an active high signal which will strengthen the
relay coil to make contact with the common terminal with the normally open terminal.
5V VCC: This pin needs 5V DC to work. So 5V DC power supply is provided to this pin.
Ground: This pin connects the GND terminal of the power supply.
19. 19 | P a g e
7.) BREADBOARD:
A breadboard is a solderless device for temporary prototype with electronics and test circuit
designs. Most electronic components in electronic circuits can be interconnected by inserting
their leads or terminals into the holes and then making connections through wires where
appropriate. The breadboard has strips of metal underneath the board and connect the holes
on the top of the board.
Figure 09 (Breadboard)
The connections are not permanent, so it is easy to remove a component if you make a
mistake, or just start over and do a new project. This makes breadboards great for beginners
who are new to electronics. You can use breadboards to make all sorts of fun electronics
projects, from different types of robots or an electronic drum set, to an electronic rain
detector to help conserve water in a garden, just to name a few.
Most breadboards have a backing layer that prevents the metal clips from falling out. The
backing is typically a layer of sticky, double-sided tape covered by a protective layer of
paper. If you want to permanently "stick" the breadboard to something (for example, a robot),
you just need to peel off the paper layer to expose the sticky tape underneath.
20. 20 | P a g e
CHAPTER 3
CODE:
#define sensorDigital A0
#define Motor 9
#define buzzer 8
void setup() {
pinMode(sensorDigital, INPUT);
pinMode(Motor, OUTPUT);
pinMode(buzzer, OUTPUT);
Serial.begin(9600);
}
void loop() {
bool digital = digitalRead(sensorDigital);
Serial.print("t");
Serial.print("Digital value :");
Serial.println(digital);
if (digital == 0) {
digitalWrite(Motor, LOW);
digitalWrite(buzzer, HIGH);
} else {
digitalWrite(Motor, HIGH);
digitalWrite(buzzer, LOW);
}
}
22. 22 | P a g e
CHAPTER 5
WORKING:
Most of these days, we hear lot of accidents due to drunken driving. Drunken drivers will not
be in stable condition and so the rash driving is the inconvenience for other road users and
also question of life and death for the drunken driver and for others.
The Alcohol Detection system works on a simple principle, if a driver has been drinking, the
Alcohol Breath analyzer Sensor will detect the level of Alcohol in driver’s Breath and if it
crosses a set Threshold, an alert will come and the Vehicle Engine will stop Immediately.
In this project, we are developing an Engine Lock System using Arduino UNO, MQ3 alcohol
sensor and 5V Relay. Alcohol sensor is firstly interfaced to Arduino UNO. While alcohol
wafers smelled by the sensor. Sensor sends the input voltage to Arduino. If there are any
traces of Alcohol above the set limit, then Arduino will send the signal to Relay and later
relay tripped the circuit and the system will lock the Engine, at the same time it gives a
buzzer sound. In this way whole system is working. By using this system on a vehicle, any
kind of loss of life or damage to property can be avoided.
23. 23 | P a g e
CHAPTER 6
APPLICATION:
1.) “Alcohol Detector Project” can be used in various vehicles for detecting whether the
driver has consumed alcohol or not.
2.) This project can also be used in various companies or organization to detect alcohol
consumption of employees.
ADVANTAGE:
1.) The chance of loss of life and property due to drunken driving is minimized.
2.) Low Implementation Cost.
3.) Hardware requirement is less.
4.) Very simple to implement.
DISADVANTAGE:
1.) The Sensor can detect every type of alcohol like deodorant, hand sanitizer, mouth
freshener etc.
2.) The project detects the alcohol only after certain level.
FUTURE SCOPE:
1.) We can implement GSM technology with an alcohol detector. So Alcohol detection &
vehicle controlling through text SMS will inform the relatives or owners of the
vehicle about the alcohol consumption.
2.) We can implement GPS technology so that once alcohol detection is done, the system
will find out the location of the vehicle. This project is called GPS tracker and alcohol
detector with engine locking system using GSM.
24. 24 | P a g e
CHAPTER 7
CONCLUSION:
In this project we have developed a real time model that can automatically lock the engine
when a drunken driver tries to drive a car. Now-a-days car accidents are mostly seen. By
fitting this alcohol sensor into the car, we can safeguard the life of driver and also the
remaining passengers. It is very simple application. The life time of the project is high. It has
low or zero maintenance cost and of course low power consumption. By implementing this
design a safe car journey is possible decreasing the accident rate due to drinking.
Government must enforce laws to install such circuit in every car and must regulate all car
companies to preinstall such mechanism while manufacturing the car itself. If this is achieved
the death rate due to drunken drivers can be brought to minimum level.
25. 25 | P a g e
CHAPTER 8
REFERENCE:
https://www.elprocus.com/5v-relay-module/
https://en.wikipedia.org/wiki/Switch
https://www.elprocus.com/buzzer-working-applications/
https://en.wikipedia.org/wiki/Arduino_Uno
https://www.slideshare.net/hemanthprudhvijidugu/alcohol-sensing-alert-with-engine-
locking-project-90586502
https://www.slideshare.net/hiteshkumarsingh10/project-report-on-vehicle-accident-
and-alcohol-sensing-alert-with-engine-locking-system
https://www.researchgate.net/publication/341876799_Automatic_Engine_Locking_S
ystem_Through_Alcohol_Detection