ALCOHOL DETECTOR AND ENGINE LOCKING SYSTEM
A MINI PROJECT REPORT
Submitted by
KEERTHANA S AND JAGADEESWARI D
in partial fulfillment for the award of the
degree of
BACHELOR OF ENGINEERING
IN
ELECTRONICS AND COMMUNICATION ENGINEERING
SAVEETHA ENGINEERING COLLEGE(AUTONOMOUS),
CHENNAI,
ANNA UNIVERSITY, CHENNAI 600 025
NOVEMBER 2024
SAVEETHA ENGINEERING COLLEGE (AUTONOMOUS),CHENNAI
ANNA UNIVERSITY, CHENNAI – 600 025
BONAFIDE CERTIFICATE
Certified that this project report “ALCOHOL DETECTOR AND ENGINE
LOCKING SYSTEM” is the bonafide work of “ KEERTHANA S AND
JAGADEESWARI D ” who carried out the project work under my/our supervision.
SIGNATURE SIGNATURE
[Link] Joice,M.E., M.B.A Dr. P. Vinayagam,M.E,Ph.D
Dean STLC, SUPERVISOR
Professor & Deputy Head, Assistant Professor
Department of Electronics Department of Electronics
and Commucation and Communication Engineering,
Saveetha Engineering College, Saveetha Engineering College,
Thandalam, Chennai- 602 105, Thandalam, Chennai – 602 105.
Submitted for the project viva-voce examination held on
INTERNAL EXAMINER EXTERNAL EXAMINER
MINI PROJECT APPROVAL SHEET
The Mini project sheet “ ALCOHOL DETECTOR AND ENGINE LOCKING
SYSTEM” submitted bY ‘ KEERTHANA S (212223060122) and
JAGADEESWARI D (212223060093)’ is approved for submission, as partial
requirement for the award of the Degree of Bachelor of Engineering in
Electronics and Communication, Anna University during the academic year
2024-2025
Submitted for the ‘University Mini Project Viva Voce’ examination held on
.
INTERNAL EXAMINER EXTERNAL EXAMINER
ABSTRACT
The "Alcohol Detector and Engine Locking System" is designed to enhance vehicle
safety by preventing drunk driving. This system uses an MQ3 alcohol sensor connected
to an Arduino Uno microcontroller to detect the presence of alcohol in the driver’s
breath. If the sensor detects alcohol levels above a predetermined threshold, the system
activates a 5V relay to lock the vehicle’s ignition, effectively preventing the vehicle from
starting. Additional components, including a BC547 transistor, LED indicators, and a
buzzer, provide visual and auditory alerts to warn the driver and surrounding individuals
of detected alcohol levels. This project offers a cost-effective, reliable solution to
mitigate the risk of DUI-related accidents, providing a proactive alternative to
conventional ignition interlock devices. The system was tested extensively, showing
high sensitivity and consistent performance under controlled conditions. While some
limitations, such as environmental sensitivity, were observed, the system’s effectiveness
in detecting alcohol and responding quickly highlights its potential for real-world
application. The project lays the groundwork for further improvements, including remote
connectivity and data logging, to expand its utility in enhancing road safety and reducing
alcohol-impaired driving incidents.
ACKNOWLEDGEMENT
We convey our sincere thanks to [Link] - President(SMET)
and Chancellor-SIMATS, Saveetha Amaravathi University, [Link], Director
- Saveetha Engineering College and Dr. V. Saveetha Rajesh – Director, Saveetha
Medical College and Hospital for providing us with the facilities for the
completion of our project. We are grateful to our Principal,Dr. V. Vijaya
Chamundeeswari for her continuous support and encouragement in carrying out
our project work. We are deeply indebted to our beloved Head of the Department,
[Link]. S. Nath, M.E., Ph.D., Department of Electronics and
Communication, for giving us the opportunity to display our professional skills
through this project.
We are greatly thankful to our Mini Project Coordinator, Mr. [Link]
and our Mini Project Guide, for their valuable guidance and motivation which
helped to complete our project on time.
We thank all our teaching and non- teaching faculty members of the
Department of Electronics and Communication for their passionate support, for
helping us to identify our mistakes and for the appreciation they gave us. We
heartily thank our library staff and the management for their extensive support in
providing the resources and information that helped us to complete the project
successfully. Also, we would like to record our deepest gratitude to our parents for
their constant encouragement and support, which motivated us a lot to complete
our project work.
1
TABLE OF CONTENTS
CHP NO. TITLE PAGE NO
1. INTRODUCTION
1.1. BACKGROUND AND MOTIVATION
1.2. PROBLEM STATEMENT
1.3 . PROJECT OBJECTIVES
1.4. SCOPE OF THE PROJECT
2. LITERATURE REVIEW
2.1. OVERVIEW OF ALCOHOL DETECTION TECH.
2.2. IID
2.3. MICROCONTROLLER AND SENSOR BASED
SYSTEM
2.4. LIMITATION AND TECHNOLOGICAL GAP
3. PROPOSED METHOD
3.1. SYSTEM OVERVIEW
3.2. BLOCK DIAGRAM
3.3. CIRCUIT DESIGN AND SCHEMATICS
3.4. WORKING PRINCIPLE AND FLOW CHART
3.5. COMPONENT SELECTION
3.6. SOFTWARE AND CODING
2
4. IMPLEMENTATION AND TESTING
4.1. EXPERIMENTAL SETUP
4.2. CALIBRATION AND SENSOR SENSITIVITY
TESTING
4.3. TEST CASES AND SCENARIO
4.4. DATA ANALYSIS
4.5. ERROR HANDLING AND TROUBLESHOOTING
5. RESULT
6.
CONCLUSION AND FUTURE SCOPE
1
LIST OF SYMBOLS AND ABBREIVATIONS
Here's a list of abbreviations that could be used in the report on the "Alcohol Detector and
Engine Locking System":
1. **DUI** - Driving Under the Influence
2. **WHO** - World Health Organization
3. **MQ3** - Metal Oxide Semiconductor Alcohol Sensor Model 3
4. **IID** - Ignition Interlock Device
5. **LED** - Light Emitting Diode
6. **BC547** - Bipolar Junction Transistor Model 547
7. **UNO** - Universal Serial Bus Native Output (specifically referring to Arduino Uno)
8. **V** - Voltage
9. **mV** - Millivolts
10. **μA** - Microampere
11. **µg/dL** - Micrograms per Deciliter (alcohol concentration unit)
12. **IR** - Infrared
13. **GND** - Ground
14. **GSM** - Global System for Mobile Communications
15. **WiFi** - Wireless Fidelity
16. **BJT** - Bipolar Junction Transistor
17. **AI** - Artificial Intelligence
18. **Hz** - Hertz
19. **KHz** - Kilohertz
20. **I/O** - Input/Output
21. **R&D** - Research and Development
22. **EEPROM** - Electrically Erasable Programmable Read-Only Memory
23. **LCD** - Liquid Crystal Display
24. **PIR** - Passive Infrared
2
25. **mA** - Milliampere
26. **IDE** - Integrated Development Environment
27. **PCB** - Printed Circuit Board
28. **ADC** - Analog-to-Digital Converter
29. **PWM** - Pulse Width Modulation
30. **GND** - Ground
1
CHAPTER 1
INTRODUCTION
1.1 Background and Motivation
Driving under the influence of alcohol has remained a critical road safety issue
worldwide. According to the World Health Organization, drunk driving accounts for
over a million fatalities annually. The effects of alcohol on a driver’s physical and
cognitive abilities are well-documented, including delayed reaction times, impaired
judgment, and reduced motor control. Governments have implemented various
deterrents, such as strict DUI laws and public awareness campaigns, yet DUI incidents
continue to contribute significantly to road accidents. This project addresses the need
for a preventive, affordable, and easily integrable system that could deter individuals
from driving under the influence.
1.2 Problem Statement
Despite the existence of traditional Ignition Interlock Devices (IID) for repeat DUI
offenders, these systems are often expensive and require calibration by specialized
personnel, making them unsuitable for widespread use. Additionally, existing devices
are designed reactively, being implemented only after a DUI offense. This project aims
to create an affordable, easily implementable system that uses an alcohol sensor and
Arduino microcontroller to actively prevent vehicle ignition when alcohol is detected,
potentially preventing incidents before they occur.
2
1.3 Project Objectives
The primary objective of this project is to design a system that detects the presence of
alcohol in a driver’s breath and subsequently locks the vehicle’s ignition system if the
alcohol level exceeds a safe threshold. Key goals include maximizing the accuracy of
alcohol detection, achieving low power consumption, and ensuring the system is cost-
effective, so it can be used in various vehicle types. The system also aims to provide
immediate alerts to the driver and surrounding individuals if alcohol is detected,
enhancing its preventive capability.
1.4 Scope of the Project
This alcohol detection and engine locking system is designed to be adaptable for
different types of vehicles, including cars, trucks, and motorcycles. Its components are
carefully selected to be affordable and accessible, with minimal maintenance
requirements. Beyond individual applications, the system has the potential to influence
broader public safety measures by encouraging responsible behavior and reducing road
accident rates linked to impaired driving. It also paves the way for technological
innovations in vehicle safety systems.
1
CHAPTER 2
LITERATURE SURVEY
2.1 Overview of Alcohol Detection Technologies
Alcohol detection devices have evolved significantly, beginning with simple
breathalyzers and progressing to advanced semiconductor and fuel cell-based systems.
Semiconductor sensors, such as the MQ3 sensor used in this project, have become
popular due to their affordability, accuracy, and ease of integration with
microcontrollers like Arduino. These sensors respond to ethanol levels by outputting a
voltage proportional to the concentration, allowing for a reliable detection system. Fuel
cell sensors, though highly accurate, are cost-prohibitive for widespread
implementation in consumer vehicles.
2.2 Ignition Interlock Devices (IID)
2
IID systems are widely used in legal settings to prevent repeat DUI offenders from
operating vehicles. These systems require the driver to pass a breathalyzer test before
the vehicle can start. However, they typically cost several hundred dollars to install and
require regular calibration, limiting their practicality for everyday use. While effective
in reducing repeat offenses, IIDs are typically court-mandated and not accessible to the
general public, creating a gap that this project aims to fill with a more economical,
proactive solution.
2.3 Microcontroller and Sensor-Based Systems
Recent research on microcontroller-based detection systems highlights their potential in
DIY and custom applications. Microcontrollers like Arduino provide a low-cost,
flexible platform for alcohol detection, allowing for real-time analysis and response.
This project leverages the Arduino’s ease of programming and compatibility with
various sensors, enabling it to process signals from the MQ3 sensor and control other
components, such as relays, to lock the engine effectively.
3
2.4 Limitations and Technological Gaps
Despite advances in alcohol detection, challenges remain in creating affordable, low-
maintenance systems that are accurate enough for critical applications like vehicle
ignition control. Issues such as sensor drift, environmental sensitivity, and the need for
periodic recalibration have limited the reliability of alcohol sensors in harsh conditions.
This project seeks to address some of these limitations by optimizing the MQ3 sensor’s
threshold calibration and integrating components that maintain consistent performance
in varying temperatures and humidity levels.
1
CHAPTER 3
PROPOSED METHOD
3.1 System Overview
The alcohol detection and engine locking system combines the functionality of the
MQ3 sensor, Arduino Uno microcontroller, and a relay circuit to lock the vehicle’s
engine when alcohol is detected. The sensor outputs an analog voltage proportional to
the ethanol concentration, which is processed by the Arduino. If the measured level
exceeds a safe threshold, the Arduino activates the relay, cutting off the engine’s
ignition circuit and preventing the vehicle from starting.
3.2 Block Diagram and Functional Modules
3
2
The system comprises several key modules, including the MQ3 alcohol sensor, the
Arduino microcontroller, a relay, a transistor switch, LED indicators, and a buzzer.
Each component is strategically integrated to ensure effective communication and
response. The MQ3 sensor is highly sensitive to ethanol, making it ideal for breath
analysis. The relay circuit, controlled by the Arduino, acts as an on/off switch for the
ignition system, and the LED and buzzer provide visual and audio alerts, respectively.
3.3 Circuit Design and Schematics
The circuit consists of a sensor input, microcontroller processing, and relay control,
allowing for an efficient system setup. The MQ3 sensor connects to the analog pin of
the Arduino, which reads the voltage output and processes it using programmed
thresholds. The relay is controlled via a BC547 transistor to handle higher current for
the ignition circuit. Detailed diagrams show each component’s role, including resistor
placement, to limit current and protect the microcontroller.
3
3.4 Working Principle and Flowchart
The system works by continuously monitoring the breath alcohol concentration near the
sensor. If the concentration surpasses the programmed limit, the Arduino outputs a
HIGH signal to the relay circuit, cutting power to the ignition. A detailed flowchart
illustrates this logic, from initial alcohol detection to locking the engine, providing a
clear process flow for real-time implementation.
3.5 Component Selection
Each component is carefully chosen based on factors such as power requirements,
compatibility, and cost. The MQ3 sensor is selected for its ethanol sensitivity and
affordability, while the Arduino Uno provides sufficient processing power and memory.
The relay is chosen for its durability in automotive applications, and resistors protect
each part from overcurrent.
4
3.6 Software and Coding
CODING:
const int DOUTpin1 = 3;
int limit1;
int value1;
#define serial
#define relay 2
#define buzzer 13
#define RLED 12
void setup()
[Link](9600);//sets the baud rate
pinMode(buzzer, OUTPUT);
pinMode(RLED, OUTPUT);
digitalWrite(buzzer, LOW);
digitalWrite(RLED, LOW);
pinMode(relay, OUTPUT);
digitalWrite(relay, HIGH);
}
5
void loop()
/..........GAS (MQ6)........../
value1 = analogRead(A0);
limit1 = digitalRead(DOUTpin1);
#ifdef serial
[Link]("MQ6 value: ");
[Link](value1);//prints the gas value
[Link](" Limit: ");
[Link](limit1);/*prints the limit reached as either LOW or HIGH (above or underneath) */
#endif
delay(200);
if(limit1 == 0)
digitalWrite(buzzer, HIGH);
digitalWrite(RLED, HIGH);
digitalWrite(relay, HIGH);
delay(1000);
else
{
6
digitalWrite(buzzer, LOW);
digitalWrite(RLED, LOW);
digitalWrite(relay, LOW);
delay(1000);
#ifdef serial
[Link]("");
[Link](" ");
#endif
delay(800);
The Arduino code reads the analog value from the MQ3 sensor, converts it into an
alcohol concentration level, and compares it to a predefined threshold. If the threshold
is exceeded, the code sends a signal to activate the relay. The code structure is modular,
with separate functions for reading sensor input, calculating alcohol levels, and
controlling output responses like LED, buzzer, and relay activation.
1
CHAPTER 4
IMPLEMENTATION AND TESTING
4.1 Experimental Setup
For testing, the system was set up in a controlled environment with simulated vehicle
ignition circuitry. Alcohol levels were introduced near the sensor to test detection
accuracy, and the Arduino’s response was measured for different levels.
4.2 Calibration and Sensor Sensitivity Testing
Calibration of the MQ3 sensor was performed by testing it with various ethanol
concentrations and adjusting the threshold in the code accordingly. This process
ensured that the sensor accurately identified a hazardous level of alcohol, reducing false
positives.
4.3 Test Cases and Scenarios
Test cases involved exposure to different levels of alcohol vapor, including safe levels
and concentrations that would impair driving. The system was tested for different
response times, sensor sensitivity, and performance under variable conditions such as
temperature and humidity.
2
4.4 Data Analysis
Data was collected from multiple test runs, with results plotted in graphs to show the
system’s response times and accuracy rates. The relay’s response time was also tested
to ensure that the system effectively locked the ignition within seconds of detecting
unsafe alcohol levels.
4.5 Error Handling and Troubleshooting
Troubleshooting included addressing issues like sensor drift, where calibration was
repeated to maintain accuracy. Measures for error handling included programming the
Arduino to reset the system if fluctuating values persisted, ensuring stability.
1
CHAPTER 5
RESULT
The final result of the "Alcohol Detector and Engine Locking System" report confirms
that the developed system successfully achieves its objective of detecting alcohol in the
driver’s breath and preventing vehicle ignition when unsafe levels are detected.
Through the integration of the MQ3 alcohol sensor, Arduino Uno, 5V relay, and
supporting components such as a transistor, LED, and buzzer, the system provides a
reliable and immediate response to detected alcohol presence, effectively enhancing
vehicle safety.
During testing, the system demonstrated accurate and consistent readings, activating the
engine lock within seconds when alcohol concentration exceeded the pre-set threshold.
Calibration of the MQ3 sensor was essential in minimizing false positives and ensuring
that the device responded precisely to varying ethanol levels. The LED and buzzer
provided immediate visual and audio feedback, alerting both the driver and bystanders
to the detected alcohol level, adding an extra layer of safety and awareness.
Moreover, the Arduino-controlled relay mechanism effectively cut off the ignition
circuit when triggered, successfully preventing engine start-up. This feature performed
reliably across multiple trials and under varying environmental conditions. While the
system achieved its primary goal, limitations were noted, including the need for
2
periodic recalibration to maintain accuracy and the influence of environmental factors
such as temperature and humidity on sensor sensitivity.
The overall outcome suggests that with minor improvements, such as adding
connectivity features for remote alerts or refining sensor sensitivity, the system could
be made even more robust. This project shows significant potential for adoption in
vehicles as an affordable solution to combat drunk driving, especially in regions with
high rates of alcohol-related traffic incidents.
1
CHAPTER 6
CONCLUSION AND FUTURE SCOPE
Conclusion
The "Alcohol Detector and Engine Locking System" effectively demonstrates the
potential of using microcontroller-based alcohol detection to enhance vehicle safety.
The system successfully detects alcohol levels through the MQ3 sensor and prevents
vehicle ignition when unsafe concentrations are present, thus addressing a critical issue
in road safety—drunk driving. Through careful calibration and integration with the
Arduino Uno, 5V relay, and other components, the system achieved reliable
performance, consistently detecting and responding to varying alcohol levels. While the
device fulfilled its primary objectives, certain environmental factors, such as
temperature and sensor drift, highlighted areas for potential improvement. Overall, this
project shows that such technology can offer a proactive approach to preventing DUI
incidents, providing a practical, low-cost alternative to existing ignition interlock
devices and contributing positively to public safety.
Future Scope
Future enhancements to this system could focus on refining its accuracy, adaptability,
and convenience for real-world applications. Integrating additional environmental
sensors, such as temperature and humidity, could further stabilize performance, while
adding wireless connectivity (e.g., GSM or WiFi) would enable remote alerts to family
members or authorities when alcohol is detected. Another potential advancement is
incorporating data logging and analytics capabilities, which could track and analyze
2
repeated instances of alcohol detection, allowing for predictive insights and more
personalized prevention strategies. Additionally, implementing machine learning
algorithms could improve detection accuracy by analyzing usage patterns and
environmental conditions. As automotive technology advances, this system could be
adapted to work seamlessly with other in-vehicle safety features, making it a
comprehensive safety solution in the automotive industry. These enhancements would
make the system more robust, user-friendly, and effective in combating drunk driving
on a larger scale.
1
REFERENCE
[Link]
341876799_Automatic_Engine_Locking_System_Through_Alcohol_Detection
[Link]
[Link]
[Link]
[Link]