Академический Документы
Профессиональный Документы
Культура Документы
Submitted by
AJOLA TAKSHIL (180133103001)
GAMIT ANRUTA (180133103002)
CHAUDHARI KAJAL (180133103004)
October, 2019
GOVERNMENT ENGINEERING COLLEGE
BIOMEDICAL DEPARTMENT
2019
CERTIFICATE
Date:
This is to certify that mini project entitled “ALCOHOL DETECTOR “has been carried out
by AJOLA TAKSHIL under my guidance in fulfilment of the degree of Bachelor of
Engineering in Biomedical 5th semester of Gujarat Technological University, Ahmedabad
during the academic year 2019.
This is to certify that mini project entitled “ALCOHOL DETECTOR “has been carried out
by ANRUTA GAMIT under my guidance in fulfilment of the degree of Bachelor of
Engineering in Biomedical 5th semester of Gujarat Technological University, Ahmedabad
during the academic year 2019.
This is to certify that mini project entitled “ALCOHOL DETECTOR“ has been carried out
by KAJAL CHAUDHARI under my guidance in fulfilment of the degree of Bachelor of
Engineering in Biomedical 5th semester of Gujarat Technological University, Ahmedabad
during the academic year 2019.
Acknowledgement 5
Abstract 6
Table of contents 7
1Introduction 9
Chapter 2 Components 14
2.1 AT89C51 14
2.2 MQ303 alcohol sensor 14
2.3ADC0804 15
2.4 LCD 15
The main purpose behind this project is “drunk driving detection”. Now a days many
accidents are happening because of the alcohol consumption of the driver or the person who
is driving the vehicle. The drunk driving is a major reason of accident in almost all countries
all over the world. Alcohol detector in car project is designed for the safety of the people
seating inside the vehicle.
This project will sense the almost of alcohol consumed by the person and it will display same
to the LCD. This product can be used for identifying whether is person is drunk, which is
used by traffic police across many countries.
The main units of this project is an “alcohol sensor”. If the person inside car has consumed
alcohol then it is detected by the sensor. The sensor used for this purpose is MQ303A
Alcohol sensor. The sensor is connected to the ADC0804 which is future interfaced to 8050
controller. The sensed value is displayed on the 16×2 LCD.
Page |9
CHAPTER 1
BLOCK DIAGRAM
Alcohol
Adc0804 Lcd
Sensor
Microcontroller
8051
Crystal
Circuit
Power
Supply
Fig.1Block diagram
P a g e | 10
AT89c51:
The 89c51 is an 8-bit microprocessor originally designed in the 1980’s by intel that has
gained great popularity since its introduction. Its standard from includes several standard on-
chip peripheral, including timers, counters, and UART’s plus 4k bytes of on-chip program
memory and 128 bytes of data memory making single-chip implementations possible. Its
hundreds of derivatives, manufactured by several different companies include even more on-
clip peripherals, such as analog-digital converts, pulse-width modulators, I2C bus interfaces,
etc.
Features
8k byte of in system programmable (ISP) flash memory-endurance:1000 write/eras
cycle.
4.0V to 5.5V Operating range
Fully static operation:0Hz to 33MHz
Three-level program memory lock
256×8-bite internal RAM
32 programable I/O lines
Three 16-bite timer/counters
Eight interrupt sources
Full duplex UART serial channel
Low power ideal and power down modes
Interrupt recovery from power down moad
Watchdog timer
Dual data pointer
Power-off flag
ADC0804:
The output of the pressure transducer is an analog signal. To interface with the
microcontroller it is needed to change this signal in to digital value because the
microcontroller and other digital devices works on the digital data. For this purpose ADC is
used. We used an IC(ADC0804) which gave an 8 bit digital value for the input analog value
signal. ADC0804 is used to convert analog voltage produced from differential pressure
transducer to digital signal. The analog voltages from 0 to 5V are converted using ADC0804
to digital number from 0 to 255
P a g e | 11
Analog signal are very common input to embedded system-Most transducers and sensors are
analog. Special device needed to interface the analog system to digital system. ADC (analog
digital convert) is used between signal input and embedded system DAC (digital to analog
converter) between embedded system and analog signal output. An analog to digital
converter is a circuit that converts an analog voltage into a digital word. A typical ADC
consists of a signal IC with a few support components is a more complicated process and the
hardware require some conversion time, which is typically in the microsecond rang. The
conversion time required depends on the type of ADC, the applied clock frequency and the
number of bites being converted. The input V in can be any voltage between 0 V and V ref.
when V in is 0 Vdc, the output is 00000000; when Vin is Vref, the output is 11111111
(255decimal).
For input voltages between 0 and Vref the output increases linearly with Vin; therefore ,we
can develop a simple ratio for the ADC:
Solving for output gives the following :
Output =decimal output value of an 8-bit ADC
Vin =analog input voltage to the ADC
Vref =ADC reference voltage
To start the conversion process a start-conversion pulse is sent to the ADC. The ADC then
samples the analog input and converts it to binary. When completed the ADC activates the
data-ready output. This signal can be used to alert the computer to read in the binary data.
An 8-bit ADC packaged as a 20-pin DIP, this device can operate on a single 5-Vdc power
supply and requires an external resistor and capacitor to complete the ADC circuit. The start
conversion pulse is applied to pin 3 (WR)and the data-ready signal comes from pin5 (INTR).
The particular ADC can be connected in a free-running mode where it performs one
conversion after the other as fast as it can. Notice also that the pin labeled Vref /2(pin 9)must
be set at half of the actual Vref. For example if the requirement call for an analog voltage
range of 0-5 Vdc, then pin 9 would be set to 2.5 Vdc. The time to complete a conversion is
approximately 100µs(micro second) making it almost 700 times slower then the DAC0808.
MQ303 SENSOR
MQ303 is a semiconductor sensor for alcohol detection, It has good sensitivity and fast
response to alcohol, suitable for portable alcohol detector
P a g e | 12
Features
High sensitivity
Fast response and resume
Long life and low cost
Mini size
CIRCUIT DIAGRAM
Fig.2Circuit diagram
P a g e | 13
CHAPTER 2
COMPONENTS
1 AT89c51 microcontroller
The AT89c51 is an age old 8-bit microcontroller from the Atmel family. It works with the
popular 8051 architecture and hence is used by most beginners till date. It is a 40 pin IC
package with 4Kb flash memory. It has four ports and all together provide 32 Programmable
GPIO pins. It does not have in-built ADC module and supports only USART communication.
Although it can be interfaced with external ADC IC like the ADC084 or the ADC0808.
Fig.3 AT89c51
2.MQ3 Alcohol Sensor
The analogy 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. The
sensitivity can be adjusted by the potentiometer sensitive material of MQ3 gas sensor is
SnO2, which with lower conductivity in clean air. When the target alcohol gas exist, the
sensors 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.
P a g e | 14
6 ADC0804
The ADC0804 is a commonly used ADC module, for projects were an external ADC is
required. It is a 20-pin Single channel 8-bit ADC module. Meaning it can measure one ADC
value from 0V to 5V and the precision when voltage reference (Vref –pin 9) is +5V is
19.53mV (Step size). That is for every increase of 19.53mV on input side there will be an
increase of 1 bit at the output side
Fig.5 ADC0804
7. 16×2 LCD
The command registers 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 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 Display
Fig.6 LCD
P a g e | 15
CHAPTER3
FLOW CHART
Start
Alcohol
Sensor
Detect Amount Of
Alcohol Consumed
YES
If Alcohol
Detected Vehicle start
NO
P a g e | 16
ADVANTAGES
1. “Alcohol detector project “ can be used in the various vehicles for detecting whether
the driver has consumed alcohol or not.
2. The project can also be used in various companies or organization to detect alcohol
consumption of employees.
3. Alcohol detection system in an automobile is a must feature which every cab or bus
should have.
4. To prevent accident due to drunk and driving.
5. Easy and efficient to test the alcohol content in the body. 3.
6. Quick and accurate results.
7. Helpful for police and provides and automatic safety systems for cars and other
vehicles as well.
P a g e | 17
CONCLUSION
In this method the circuit sense the presence of alcohol from the breath of drivers and curtail
the catastrophic effects it can have on peoples’ lives. The system was designed and
implemented successfully via the use of AT89c51 microcontroller and MQ-3 sensor.
REFERENCES
Babur, AUDIT: The alcohol use disorders identification Test: Guidelines for use in
primary health care. 1992, Geneva, Switzerland: World Health Organization
Altaf SV, Abhinay S, Ansari E, Kaunain Md, Anwer R. Alcohol Detection and Motor
Locking System.
International Journal of Advanced Research in Electrical, Electronics and
Instrumentation Engineering.
Shah S, Nawgaje DD. ARM Based Drunk Driver Identification with Tracking
System. International
P a g e | 18
Apendix1
P a g e | 19
Apendix2
P a g e | 20