0% found this document useful (0 votes)
57 views6 pages

Wa0003.

Uploaded by

Kalyanam A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
57 views6 pages

Wa0003.

Uploaded by

Kalyanam A
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

International Journal of Research in Computer and ISSN (Online) 2278- 5841

Communication Technology, Vol 3, Issue 1, January- 2014 ISSN (Print) 2320- 5156

Alcohol Detection System

Nimmy James Aparna C Teena P John


M.E VLSI Design M.E VLSI Design M.E VLSI Design
ECE Department ECE Department ECE Department
Sri Ramakrishna Engineering Sri Ramakrishna Engineering Sri Ramakrishna Engineering
College, Coimbatore College, Coimbatore College, Coimbatore
Tamilnadu,India Tamilnadu,India Tamilnadu,India
[email protected] [email protected] [email protected]

Abstract This system provides a unique method automatically switches off the car which will stop the
to curb drunken people. The system has an drink driving offenders. Thus we can reduce alcohol
alcohol sensor embedded on the steering of the related road accidents and hence these kinds of
car. Whenever the driver starts ignition, the detectors have a great relevance. It can also be used
sensor measures the content of the alcohol in his in schools, colleges, offices and some public places
breath and automatically switches off the car if he such as hospitals, libraries etc.
is drunken. In this system the sensor delivers a
current with a linear relationship to the alcohol
molecules from zero to very high concentration.
The output of the sensor is fed to the pic- II. BLOCK DIAGRAM
microcontroller for comparison. If the measured
value reaches the threshold, relay cut off
automatically and the buzzer produces sound. ALCOHOL
MICROCONTROLLER
SENSOR
(PIC 16F877A)
Keywords PIC16F877A, CMOS, MQ-3 gas
sensor
RELAY
I. INTRODUCTION

This system detects the content of alcohol in the


breath and thus it attempts to clamp down alcoholics. BUZZER
This system uses PIC16F877A, LCD display, MQ-3
gas sensor, relay and buzzer. The output of the sensor
is directly proportional to the content of alcohol Fig. 1 Block diagramof the proposedalcohol detection
consumed. Nowadays alcohol sensor play a system
significant role in our society and it has vast
applications. Fig.1 shows the block diagram of the proposed
alcohol detection system. Itconsists of an alcohol
This type of sensors in cars is a great safety factor
sensor, a microcontroller, a relay and a buzzer.
which can be embedded in the steering of the cars.
When the driver starts the ignition, sensor measures
the content of the alcohol in his breath and

www.ijrcct.org Page 59
International Journal of Research in Computer and ISSN (Online) 2278- 5841
Communication Technology, Vol 3, Issue 1, January- 2014 ISSN (Print) 2320- 5156

III. SCHEMATIC DIAGRAM

Fig. 2 Schematic diagramof the proposedalcohol detection system

Fig. 2 shows the schematic diagramof the gas sensors. It costs $6.90. Typically, it is used as
proposedalcohol detection system. The details of part of the breathalyzers or breath testers for the
each part will be described in the following sections. detection of ethanol in human breath.

IV.SCHEMATIC DESCRIPTION

A.Gas Sensor

This is an alcohol sensor, which detects


ethanol in the air. It is one of the straight forward gas
sensors so it works almost the same way with other

www.ijrcct.org Page 60
International Journal of Research in Computer and ISSN (Online) 2278- 5841
Communication Technology, Vol 3, Issue 1, January- 2014 ISSN (Print) 2320- 5156

Fig.3 MQ-3 Gas Sensor controller has 14 Pins and LCDs with 2 controller
has 16 Pins (two pins are extra in both for back-
Basically it has 6 pins, the cover and the light LED connections).
body. Even though it has 6 pins, we can use only 4 of
them. 2 of them are for heating system and other 2 Above is the quite simple schematic. It
are for connecting power and ground. A little tube is consists of 16 pins (8 data lines, 3 control lines, 2
placed inside the sensor. This tube is a heating power lines, 1 contrast line and 2 pins for back light
system that is made of aluminium oxide and tin LED connection). Data line and control line are
dioxide and inside of it there are heater coils, which connected to the microcontroller. The LCD panel's
practically produce the heat. Two pins are connected Enable and Register Select is connected to the
to the heater coils and others are connected to the Control Port. The Control Port is an open collector /
tube. open drain output. When connecting LCD module
to a parallel I/O device, the burden of ensuring
The core system is the cube. Basically, it is proper operation falls on the software. While most
an Alumina tube cover by SnO2, which is tin dioxide. Parallel Ports have internal pull-upresistors, there is
And between them there is an Aurum electrode. a few which don't. Therefore by incorporating the
Basically, the alumina tube and the coils are the two 10K external pull up resistors, the circuit is
heating system. more portable for a wider range of computers, some
of which may have no internal pull up resistors.
If the coil is heated up, SnO2 ceramics will
become the semi - conductor, so there are more At the interface of LCD module, there are
movable electrons, which means that it is ready to three power supply terminals- Vdd, GND, Vo. The
make more current flow. Then, when the alcohol LCD is driven by a voltage which is determined by
molecules in the air meet the electrode that is Vdd-Vo.
between alumina and tin dioxide, ethanol burns into
acetic acid then more current is produced. So the The data bus lines are DB7-DB0.When the
more alcohol molecules there are the more current we enable signal is at the low level, this data bus
will get. Because of this current change, we get the terminals will remain in a high impedance state.
different values from the sensor. When the data bus is open it produces a high output
voltage. When the busy flag is at a high level, it
indicates that the controller is in the internal
operation mode and the next instruction will not be
B.Display Unit accepted. The next instruction must be written after
the busy flag goes low. The delay should be
suitable for most machines. If the LCD panel is not
initializing properly, you can try increasing the
delays.

The LCD module is automatically initialized


or reset when the power is turned on using the
internal reset circuit. The busy flag holds 1 and
does not accept instructions until initialization ends.
The busy state lasts for 15 minutes after Vdd rises
to 4.5 volts. When power supply restrictions are not
met, the internal reset circuit will not operate
Fig.4 Liquid Crystal Display normally and the initialization will not be
performed. In this case, the controller should be
LCD display is used for displaying the initialized by the MPU according to initializing by
message that sent from the remote location. The instruction .
LCD module is a dot- matrix liquid crystal display
that displays alphanumeric, kana (Japanese
characters) and symbols. The CMOS technology
makes the device ideal for applications in hand-held
portable and other battery-powered instruments
with low power applications. Most LCDs with 1

www.ijrcct.org Page 61
International Journal of Research in Computer and ISSN (Online) 2278- 5841
Communication Technology, Vol 3, Issue 1, January- 2014 ISSN (Print) 2320- 5156

11-18 are the outputs (Pin 1 drives Pin 18, Pin 2


drives 17, etc.).

C. Relay
D. Microcontroller

A microcontroller is used for controlling


entire circuits and to maintain timings. Here a
microcontroller named PIC16F877A from Microchip
corporation is used for this purpose. It is a 16 bit
microcontroller and has 40 pins arranged in 4 I/O
ports, that ports are used here for connecting LCD
module and to interface with the load.

Fig.5 ULN 2803

A ULN2803 is an Integrated Circuit (IC)


chip with a High Voltage/High Current Darlington
Transistor Array. The chip takes low level signals
(TLL, CMOS, PMOS, NMOS - which operate at low
voltages and low currents) and acts as a relay of sorts
itself, switching on or off a higher level signal on the
opposite side.
Fig.6 PIC16F877A
A TTL signal operates from 0-5V, with
everything between 0.0 and 0.8V considered "low" or As shown in the above figure microcontroller
off, and 2.2 to 5.0V being considered "high" or on. is wired with a crystal for clock and each pin of
The maximum power available on a TTL signal crystal is connected to ground through capacitors to
depends on the type, but generally does not exceed avoid noise pulse in the clock. Here a 4MHz crystal
25mW (~5mA @ 5V), so it is not useful for is used that gives 4MHz clock for the microcontroller
providing power to something like a relay coil.
Computers and other electronic devices frequently
E.Power supply and voltage regulator
generate TTL signals. On the output side the
ULN2803 is generally rated at 50V/500mA, so it can
operate small loads directly. Alternatively, it is
frequently used to power the coil of one or more
relays, which in turn allow even higher
voltages/currents to be controlled by the low level
signal. In electrical terms, the ULN2803 uses the low
level (TTL) signal to switch on/turn off the higher
voltage/current signal on the outputside.

The ULN2803 comes in an 18-pin IC configuration


and includes eight (8) transistors. Pins 1-8 receive the
low level signals; pin 9 is grounded (for the low level
signal reference). Pin 10 is the common on the high
side and would generally be connected to the positive
of the voltage you are applying to the relay coil. Pins
Fig.7 Power supply and voltage regulator

www.ijrcct.org Page 62
International Journal of Research in Computer and ISSN (Online) 2278- 5841
Communication Technology, Vol 3, Issue 1, January- 2014 ISSN (Print) 2320- 5156

The circuit diagram of the power supply unit is V. RESULTS AND DISCUSSIONS
shown above.It mainly consists of a voltage regulator
(here it is 7805). The voltage regulator plays an The circuit has an alcohol sensor. This sensor
important role in a power supply unit. Output of the measures the content of alcohol from the breath of
power supply unit is always dc which is given to the drunken people. The sensor delivers a current with
controller. linear relationship to the alcohol molecules from zero
to very high concentrations. Output of the sensor is
The primary purpose of the regulator is to directly proportional to the alcohol content. When the
aid the rectifier and filter circuit in providing a alcohol molecules in the air meet the electrode that is
constant dc voltage to the device. Power supplies between alumina and tin dioxide in the sensor,
without regulators have an inherent problem of ethanol burns into acetic acid then more current is
changing of dc voltage values due to variations in the produced. So the more alcohol molecules more will
load or due to fluctuations in the input voltage. With be the current produced. Because of this current
regulator connected to the dc output, the voltage can change, we get the different values from the sensor.
be maintained with a close tolerant region of desired Output of the sensor is then fed to the microcontroller
output. for comparison.

The output of the sensor is in the analog


nature which should be converted into digital format.
This is done by the analog to digital converter of the
microcontroller unit. The microcontroller controls the
entire circuit. When the measured value reaches the
threshold (here it is 255) the microcontroller switches
the ignition ON. Then relay cuts off automatically
and buzzer produces sound. The LCD displays the
message that sent from the microcontroller unit.

The working conditions and various


constraints were properly studied before carrying out
further steps. The components were purchased and
the circuit was initially set on the breadboard. The
PCB was fabricated as per the requirement and was
soldered with components, taking proper care to
avoid shorting between various connections. The
output was verified on the PCB. The circuit worked
successfully.

Fig. 8 Flow chart of proposedalcohol detection


system Fig. 9 PCB layout of proposedalcohol detection
system
V. RESULTS AND DISCUSSIONS

www.ijrcct.org Page 63
International Journal of Research in Computer and ISSN (Online) 2278- 5841
Communication Technology, Vol 3, Issue 1, January- 2014 ISSN (Print) 2320- 5156

In this system alcohol sensor is embedded


on the steering of the car. Whenever the driver starts
the ignition the sensor measures the content of
alcohol in his breath and automatically switches off
the car if he is drunk.

VI. CONCLUSION

Our project Alcohol Detection Systemwas


implemented successfully. This device provides
much advanced facilities in now a days life as it can
be easily implemented in vehicles. Thus we can
reduce alcohol related road accidents and hence these
kinds of detectors have a great relevance. It can also
be used in schools, colleges, offices and some public
places such as hospitals, libraries etc.

Through this project we present hardware


programming of microcontroller to facilitate as
alcohol sensor.

VII. FUTURE ENHANCEMENT

The project can be extended to an improved


version for preventing drunk drivers from getting on
the road with new concept car filled with alcohol-
detection sensors. These new sensors check a
person s odours, sweat, and driver awareness to see if
they are capable of driving their car. If they re not
quite sober, the car locks up the ignition system
thereby preventing the driver from getting on the
road. In this project we embedded the sensor on the
steering of the car. In addition to the breathalyzers,
skin sensors can also be provided for more safety.

REFERENCES

[1] Dr. Charles Kim,Embedded computing with pic


16F877A

[2] Martin Jawitz,Printed circuit board materials


hand book

[3] www.alldatasheets.com

www.ijrcct.org Page 64

You might also like