Вы находитесь на странице: 1из 33

ALCOHOL ALERT SENSING WITH ENGINE LOCK A MINI

PROJECT REPORT

Submitted by
Sahithi R (Reg no:160801086) Rekhasri S (Reg no:160801080) Vishnu priya R (Reg
no:160801120)

In partial fulfillment of the requirements for the award of the degree Of


BACHELOR OF TECHNOLOGY IN INFORMATION
TECHNOLOGY

SRI VENKATESWARA COLLEGE OF ENGINEERING An Autonomous


Institution

APRIL 2018

BONAFIDE CERTIFICATE

i
Certified that this project report “ALCOHOL ALERT SENSING WITH ENGINE

LOCK” is the bonafide work of “SAHITHI R(Reg no:160801086), REKHASRI S(Reg

no:160801080),VISHNUPRIYA R(Reg no:160801120)” who carried out the project work

under my supervision.

SIGNATURE SIGNATURE Dr.V.VIDHYA,


Ms.K.NIVETHAA SHREE,
Head of the department Supervisor, Assistant professor
Dept of Information Technology Dept of Information Technology
Sri Venkateswara College of Engineering Sri venkateswara College of Engineering
Sriperumbudur-602105 Sriperumbudur-602105

Submitted for viva voce Examination to be held at Sri Venkateswara College of Engineering
on __________

INTERNAL EXAMINER EXTERNAL EXAMINER

i
i
ABSTRACT

The influence of alcohol accounts for about 70 percent of accident fatalities in India.
The purpose of this device is to develop a system that can identify whether the person driving
the vehicle has consumed alcohol. This system provides the unique method to curb drunken
people. This system is developed by using Induino r3 with the alcohol sensor mq3.The LCD
interfaced with the Induino r3 is used to continuously displaying the status of the alcohol
sensor. The Induino r3 interfaced with the integrated chip ATmega328, LCD and alcohol
sensor. If the driver is drunk above the permissible limit and tries to start the vehicle, the
alcohol sensor fixed to the vehicle will identify the alcohol content and its output will be
triggered. The output of the sensor will be sent as an input to the Induino r3 board. Thus, the
Induino r3 immediately alerts the buzzer and stops the engine of the vehicle which makes the
driver unable to drive the vehicle. In another case, if the driver consumes alcohol while
driving the sensor still detects alcohol in his breathe and stops the engine so the vehicle would
not accelerate any further and driver can steer it to roadside. Alcohol breathe analyzer should
be installed in the vehicle. This system provides safe driving for the driver and also helps in
safeguard the life of the people sitting inside the vehicle.

ACKNOWLEDGEMENT

We thank the almighty for being with us through every walk of life. Our thanks to
Dr. S. GANESH VAIDYANATHAN, our principal for their kind support and facilities
provided to complete our work in time.

i
i
i
We wish to convey thanks and gratitude to our Dr.V.Vidhya, Head of the
Department of Information Technology and Dr.G.Sumathi, Professor, Department of
Information Technology for her continuous support.

We express sincere thanks to Ms.R.Saktheeswari, Assistant Professor and


Ms.D.Jayanthi, Assistant Professor, Department of Information Technology for her
guidance throughout the course of the project.

We are glad to express our sincere indebtedness to our supervisor


Ms.K. Nivethaa Shree, Assistant Professor, Department of Information Technology for her
guidance throughout the course of the project.

Finally we express our thanks for all teaching and non-teaching staff of Department of
Information Technology for providing us with the necessary facilities for completion of the
project.

SAHITHI.R
REKHASRI.S
VISHNU PRIYA.R TABLE OF CONTENTS

CHAPTER TITLE PAGE NO


NO.
ABSTRACT iii
ACKNOWLEDGEMENT iii
LIST OF FIGURESLIST OF ABBREVATION ix Error! Bookmark not defined.

i
v
1 INTRODUCTION 1

1.1 Purpose
2
1.2 Effects of alcohol consumption by driver 2
1.3 Need for alcohol alert sensing 3

2 LITERATURE REVIEW 4

2.1 Survey 4
2.2 Statistical study 6

3 REQUIREMENTS SPECIFICATION 7

3.1 Hardware Requirements 7


3.1.1Alcohol sensor 9
3.1.2 Induino r3 board 10
3.1.3 16x2 LCD display 12
3.1.4 DC motor 14

v
3.1.5 LED bulbs 15 3.1.6 Relay circuit

3.2 Software Requirements 16 3.2.1 Arduino compiler


16

4 DESIGN 17

4.1 Block diagram 17


4.2 Working model 18
4.2.1 Description 18

5 IMPLEMETATION 19

5.1 Interfacing LCD, MOTOR, LED with 19 Induino r3

6 CONCLUSION 21

7 FUTURE SCOPE 22

REFERENCE 23

v
i
LIST OF FIGURES

FIGURE NO. TITLE PAGE NO


1.1 Statistical survey 1
1.2 Damages caused 3
2.1 Pic 168ffA 5
2.2 Existing method 6
3.1 MQ3 sensor 7
3.2 Induino r3 9

v
i
i
3.3 16x2 LCD 10
3.4 Motor principle and 12
construction
3.5 DC motor 13
3.6 LED 14
3.7 LED working Principle 14
3.8 Relay circuit 15
3.9 Screenshot of Arduino 16
compiling
4.1 Block diagram 17
4.2 Working model 18
6.1 Future model 22

v
i
i
i
LIST OF ABBREVIATION

GSM Global system for communication


LCD Liquid-crystal display
GPS Global positioning system
WHO World health organization
LPG Liquified petroleum gas
CO2 Carbon dioxide
LED Light-emitting diode
ix

CHAPTER 1

INTRODUCTION

India had earned the dubious distinction of having more number of fatalities due to
road accidents in the world. According to a survey done by WHO almost every 90 seconds,
a person is injured in drunken and driving crash. One in three people involved in alcohol
related crash in their life time. Road safety is emerging as a major social concern around the
world especially in India.

Figure 1.1 statistic survey

1
Drinking and driving is already a serious public health problem, which is likely to
emerge as one of the most significant problems in the near future. The figure 1.1 shows the
statistical survey of number of alcohol-related deaths.

The system implemented by us aims at reducing the road accidents in the near future due
to drunken driving. The system is made as compact as possible, senses the alcohol molecules
present in the specific range and if found, fails the attempt of driver to start the engine.
Pushing the envelope and considering the actuality of the situation where the driver may not
be able to drive, the system is interfaced with widely used GSM technology to establish a
quick cellular network. Hence the system reduces the quantum of road accidents and fatalities
due to drunk driving in future.

1.1 Purpose

• To prevent accidents due to alcohol consumption by drivers.

• To measure and show the alcohol content in breathe in the LCD.

• To stop the engine when alcohol content is above the permissible limit.

• To provide safe driving.

1.2 Effects of alcohol consumption by driver


• Lack of coordination.

• Reduce concentration.

• Decrease vision.

2
• Inhibit judgement.

• Slow reaction time.

1.3 Need for alcohol alert sensing

To rectify the above effects of alcohol consumption by the driver, the Alcohol
alert sensing has to be installed in the vehicles.

Figure 1.2 Damage caused

The figure 1.2 illustrates the damage caused without this system.

3
CHAPTER 2

LITERATURE REVIEW

2.1 Survey

Nowadays, road accident’s is major problem all over the world. As report by
WHO in its first global status report (2014) 80,000 of Indian people are killed on roads due
to over speeding and drunken driving. Breathe alcohol testing were first developed for use
by the police in 1940’s.The breathe Analyzer was first invented by Indiana state police in
1954. There are lots of cause of accident of car and they are drunkenness of driver,
drowsiness of driver, unconsciousness of driver, and many time what happen driver is not
responsible for accident but their (car) neighboring car behavior also have made role to
enforce accident. There are also some system have been implemented to avoid accident
but that do not give proper solution to implement in car to avoid various accidents that they
are normally being happen.

[1] , When driver at a speed of 80 km/h the vehicle suddenly stop ignition
system which may lead to chances of dangerous accident.

4
[2] ,Usage of PIC 16876A controller, Alcohol sensor, LCD Display And
Alarm system to notify the driver only, ignition system was immediately off
when it detects alcohol.

[3] , IR sensor was used to detect obstacle which comes in front of this
sensor(vehicle), and when obstacle detected vehicle will stop. It was also
monitoring the toxic gases such as CO2,LPG, alcohol from inside area of
the vehicle .If there is high content of gases then SMS had been send to
authorized person to notify only.

[4] ,The charge-coupled-device camera’s which was equipped with active


infrared illuminators to acquire video images of the driver. Various visual cues
that typically characterize the level of alertness of a person are extracted
in real time and systematically combined to infer the fatigue level of
the driver. The visual cues employed characterize eyelid movement, gaze
movement, head movement, and facial expression. If the eye of driver is being
continuously closing it mean eye-blink frequency is beyond the normal state and
it is in sleeping condition then ignition system would be off immediately.

[5], The breath alcohol concentration exhaled by driver is detected through


the alcohol sensor MQ303A, the sensor output voltage signal through
ADC0809 after converting input to Micro-controller.

5
Figure 2.1 pic16f877A

The figure 2.1 shows the alcohol detection setup controller.

2.2 Statistical study

1. Total accidents in India (2015) is around 5,01,400.

2. People lost their life due to accidents in 2015 - 1, 46,133.

3. During 2015, death due to alcohol consumption found to be around 26000 which is 17.8%

of total death caused due to accidents.

4. India is signatory to Brazilian declaration to reduce 50%of accidents

By2020.To achieve this foot alcohol alert sensing might play a vital role.

6
Figure 2.2 Existing method

The figure 2.2 is an existing method i,e alcohol breath analyzer which is used to sense the
alcohol consumption individually by a traffic police.

CHAPTER 3
REQUIREMENTS SPECIFICATION

3.1 Hardware specification

1.MQ3 ALCOHOL SENSOR


2.INDUINO R3 BOARD
3.16x2 LCD DISPLAY
4.DC MOTOR
5.LED BULBS
6.RELAY CIRCUIT

7
3.1.1 Alcohol sensor (MQ3)

The analog gas sensor - MQ3 is suitable for detecting alcohol, this sensor can be used
in a Breathalyzer. It has a high sensitivity to alcohol and small sensitivity to Benzene. The
sensitivity can be adjusted by the potentiometer. Sensitive material of MQ-3 gas sensor is
SnO2, which with lower conductivity in clean air. When the target alcohol gas exists, the
sensor’s conductivity is higher along with the gas concentration rising, use of simple electro
circuit, convert change of conductivity to correspond output signal of gas concentration.

Figure 3.1 Alcohol sensor


The figure 3.1 shows alcohol sensor which senses the alcohol.

MQ-3 gas sensor has high sensitivity to Alcohol, and has good resistance to disturb of
gasoline, smoke and vapor. The sensor could be used to detect alcohol with different
concentration; it is with low cost and suitable for different application

The Sensitivity Adjustment of MQ3 sensor’s resistance value is difference to various


kinds and various concentration gases. So, when using these components, sensitivity
adjustment is very necessary. It is recommended to calibrate the detector for 0.4mg/L
(approximately 200ppm) of Alcohol concentration in air and use value of Load resistance
that (RL) about 200 KΩ (100KΩ to 470 KΩ). When accurately measuring, the proper alarm
point for the gas detector has to be determined after considering the temperature and
humidity influence.

8
The characteristic configuration of MQ3 sensor are o Simple drive circuit
o Long life and low cost o High sensitivity to alcohol and small
towards benzene o Fast response and High sensitivity and
stability and long life.

The Specifications of MQ3 sensor are

• Power supply needs: 5V


• Interface type: Analog
• Pin Definition: 1-Output 2-GND 3-VCC
• High sensitivity to alcohol and small sensitivity to Benzene

• Fast response and High sensitivity


• Stable and long life
• Simple drive circuit with size: 40x20mm

3.1.2 Induino R3 board

9
Figure 3.2 Induino R3 board

The Induino R3 is a low-cost Indian made clone / derivative of the popular


Arduino Board. Developer wanted the beginner to start with a single board that can deliver
maximum learning - our idea of value for money - and they ended up with the InduinoX
series of boards in 2010. The InduinoX was an Indian made clone of the Arduino
Duemilanove with a host of added features. The Induino R3 is the latest revision (2013) in
this series of InduinoX boards. The Induino R3 is a Arduino Rev3 Clone with a ATmega328
microcontroller loaded with Arduino UNO boot loader. Rev3 compatibility ensures that the
board works with the newer versions of the Arduino shields.

The Specifications of Induino R3 are

• It has 14 digital input/output pins (of which 6 can be used as PWM outputs)
• It has 6 analog inputs (can also be used for digital I/O - so a total of 20 digital I/O's)
• It has a 16 MHz crystal oscillator
• It has a USB connection,

• It has an ICSP header


• It has a reset button.

Like the Duemilanove, it contains everything needed to support the microcontroller; simply
connect it to a computer with a USB cable or power it with a AC-to-DC adapter or battery to
get started. It is completely compatible with all Arduino shields mechanically.On top of the
regular features of an Arduino Board, The Induino R3 comes with a number of onboard
peripherals and interfaces.

3.1.3 16X2 LCD display

10
Figure 3.3 16x2 LCD display

LCD (Liquid Crystal Display) screen is an electronic display module and find a wide
range of applications. A 16x2 LCD display is very basic module and is very commonly
used in various devices and circuits. These modules are preferred over seven segments and
other multi segment LEDs. The reasons being: LCDs are economical; easily
programmable; have no limitation of displaying special & even custom characters(unlike
in seven segments), animations and so on.
A 16x2 LCD means it can display 16 characters per line and there are 2 such lines.
In this LCD each character is displayed in 5x7 pixel matrix. This LCD has two registers,
namely, Command and Data.

The command register stores 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 register stores the
data to be displayed on the LCD. The data is the ASCII value of the character to be
displayed on the LCD.

Features

• 5 x 8 dots with cursor


• Built-in controller (KS 0066 or Equivalent)
• + 5V power supply (Also available for +3V)
11
• 1/16 duty cycle
• B/Ltobedrivenbypin1, pin2 or pin15, pin16 or
A.K (LED)
• N.V. optional for + 3V power supply

3.1.4 DC motor

Figure 3.4 DC motor principle and construction

DC or direct current motor works on the principal, when a current carrying


conductor is placed in a magnetic field, it experiences a torque and has a tendency to move.
This is known as motoring action. If the direction of current in the wire is reversed, the
direction of rotation also reverses.

When magnetic field and electric field interact they produce a mechanical force,
and based on that the working principle of dc motor established. The direction of rotation
of a this motor is given by Fleming’s left hand rule, which states that if the index finger,
12
middle finger and thumb of your left hand are extended mutually perpendicular to each
other and if the index finger represents the direction of magnetic field, middle finger
indicates the direction of current, then the thumb represents the direction in which force is
experienced by the shaft of the DC motor.

Structurally and construction wise a direct current motor is exactly similar to a


DC generator, but electrically it is just the opposite. Here we unlike a generator we supply
electrical energy to the input port and derive mechanical energy from the output port. We
can represent it by the block diagram shown below.

Figure 3.5 DC MOTOR

Here in a DC motor, the supply voltage E and current I is given to the electrical
port or the input port and we derive the mechanical output i.e. torque T and speed ω from the
mechanical port or output port. The input and output port variables of the direct current motor
are related by the parameter K.

13
So from the picture above we can well understand that motor is just the opposite
phenomena of a DC generator, and we can derive both motoring and generating operation
from the same machine by simply reversing the ports.

9.1.5 LED bulbs

Figure 3.6 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 color 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 1 mm2) and
integrated optical components may be used to shape the radiation pattern

14
Figure 3.7 LED working principle

3.1.6 Relay circuit

15
Figure3.8 Relay circuit

Relays are switches that open and close circuits electromechanically or


electronically. Relays control one electrical circuit by opening and closing contacts in another
circuit. As relay diagrams show, when a relay contact is normally open (NO), there is an open
contact when the relay is not energized. When a relay contact is Normally Closed (NC), there
is a closed contact when the relay is not energized. In either case, applying electrical current
to the contacts will change their state.

Relays are generally used to switch smaller currents in a control circuit and do not
usually control power consuming devices except for small motors and Solenoids that draw
low amps. Nonetheless, relays can "control" larger voltages and amperes by having an
amplifying effect because a small voltage applied to a relays coil can result in a large voltage
being switched by the contacts.

16
Protective relays can prevent equipment damage by detecting electrical
abnormalities, including overcurrent, undercurrent, overloads and reverse currents. In
addition, relays are also widely used to switch starting coils, heating elements, pilot lights
and audible alarm.

3.2 Software requirement

3.2.1 Arduino compiler

The Arduino 1.8.5 which is the most updated version of IDE used to write the
code and upload the code into the Induino R3 board. The compiler runs on windows, mac os
x and Linux.

Figure 3.9 Screenshot of Arduino compiling

The figure 3.9 show the screenshot of Arduino compiler code used in the system.

17
CHAPTER 4

DESIGN

4.1 Block diagram

Figure 4.1 Block diagram

The figure 4.1 shows the block diagram of this system.

18
4.2Working model

Figure 4.2 Working model

The figure 4.1 shows the working model of this system.

4.2.1 Description

Once the device is powered on by attaching a 12vbattery to relay circuit and the
dc motor, the motor started working then the Arduino starts running. It loads the required
Arduino libraries and initializes LCD display. The LCD show the message NO ALCOHOL
until the alcohol sensor detects the alcohol content in the breath. The relay circuit provides
the circuit switching. The led and buzzer are connected to the circuit to notify the alcohol
consumption of the driver. If the driver drives above the permissible limit the alcohol sensor
detects alcohol in his breathe then motor stops working followed by glowing of led, sound
produced by buffer and LCD display ALCOHOL detected
19
CHAPTER 5

IMPLEMENTATION

INTERFACING LCD, MOTOR, LEDWITH INDUINO R3

#include <LiquidCrystal.h>
const int rs = 8, en = 9, d4 = 10, d5 = 11, d6 =12 , d7 = 13;
Liquid Crystal lcd(rs, en, d4, d5, d6, d7);

const int AOUTpin=0;//the AOUT pin of the alcohol sensor goes into analog pin A0 of the
arduino const int DOUTpin=6;//the DOUT pin of the alcohol sensor goes into digital pin D8
of the arduino const int ledPin=7;//the anode of the LED connects to digital pin D13 of the
arduino

int limit; int


value;

void setup() { lcd.begin(16,


2);
Serial.begin(115200);//sets the baud rate pinMode(DOUTpin,
INPUT);//sets the pin as an input to the arduino pinMode(ledPin,
OUTPUT);//sets the pin as an output of the arduino }

20
void loop()
{ value= analogRead(AOUTpin);//reads the analaog value from the alcohol sensor's AOUT
pin limit= digitalRead(DOUTpin);//reads the digital value from the alcohol sensor's DOUT
pin
Serial.print("Alcohol value: ");
Serial.println(value);//prints the alcohol value
Serial.print("Limit: ");
Serial.print(limit);//prints the limit reached as either LOW or HIGH (above or underneath)
delay(100); if (limit == LOW){ lcd.setCursor(0, 0); lcd.clear(); digitalWrite(ledPin,
HIGH);//if limit has been reached, LED turns off as status indicator
lcd.print("ALCOHOL DETECTED"); delay(300);
} else{ lcd.clear(); digitalWrite(ledPin, LOW);//if threshold not
reached, LED remains on lcd.setCursor(0, 0); lcd.print("NO
ALCOHOL"); delay(400)

CHAPTER 6

CONCLUSION

” Alcohol alert sensing with engine lock” can be used to prevent accidents due to
alcohol consumption. It provides automatic safety system for all the vehicles. This method
fitted inside the interior parts of the vehicle and hence hidden from the suspects. This project
can also be used in various companies or organizations to detect alcohol consumption of
21
employees. Alcohol detector project is used in various vehicles for detecting whether the
driver consumed alcohol.

CHAPTER 7

FUTURE SCOPE

We can implement GSM technology with alcohol detector. So alcohol detection and
vehicle controlling through the text SMS will inform the relatives or owners of the vehicle

22
about the alcohol consumption. we can implement GPS technology so that once alcohol
detection is done, the system will find out the location of the vehicle.

Figure 7.1 Future model

REFERNCES

[1].Babor, AUDIT: The alcohol use disorders identification Test: Guidelines for use
in primary health care. 1992, Geneva, Switzerland: World Health Organization.
[2.]Cahalan, D., I. Cisin, and Crossley, American Drinking
Practices: A National Study of Driving Behaviour and

23
Attitudes. 1969, Rutgers University Press: New Brunswick,
NJ.
[3.]Conley, Construct validity AUDIT with multiple offenders Drunk drivers. Journal
of Substance Abuse Treatment, 2001.
[4.]Mitsubayashi, Kohji, et al. "Biochemical gas-sensor(bio sniffer) for breath analysis
after drinking." SICE 2004AnnualConference. Vol. 1. IEEE, 2004.
[5.]National Highway Traffic Safety Administration. Fatality
Analysis Reporting System (FARS). 2009 [cited 2009 June];
Available from: ftp://ftp.nhtsa.dot.gov/fars/.
[6.] https://www.sparkfun.com/datasheets/Sensors/MQ-3.pdf

24

Вам также может понравиться