Mini
Mini
Submitted by
BACHELOR OF ENGINEERING
IN
CHENNAI,
NOVEMBER 2024
SAVEETHA ENGINEERING COLLEGE (AUTONOMOUS),CHENNAI
BONAFIDE CERTIFICATE
SIGNATURE SIGNATURE
Submitted for the ‘University Mini Project Viva Voce’ examination held on
.
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
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
buzzer, provide visual and auditory alerts to warn the driver and surrounding individuals
conventional ignition interlock devices. The system was tested extensively, showing
high sensitivity and consistent performance under controlled conditions. While some
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
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
1. INTRODUCTION
2. LITERATURE REVIEW
2.2. IID
3. PROPOSED METHOD
5. RESULT
6.
CONCLUSION AND FUTURE SCOPE
1
Here's a list of abbreviations that could be used in the report on the "Alcohol Detector and
Engine Locking System":
CHAPTER 1
INTRODUCTION
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.
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
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.
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
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.
CHAPTER 3
PROPOSED METHOD
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
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.
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
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.
CODING:
int limit1;
int value1;
#define serial
#define relay 2
#define buzzer 13
#define RLED 12
void setup()
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
#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
Serial.println("");
Serial.println(" ");
#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
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.
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.
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
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.
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
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
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
https://www.researchgate.net/publication/
341876799_Automatic_Engine_Locking_System_Through_Alcohol_Detection
https://ymerdigital.com/uploads/YMER211132.pdf
https://www.ijert.org/automatic-engine-locking-system-through-alcohol-detection
https://www.irjet.net/archives/V10/ICRTET23/IRJET-V10I450.pdf
https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4232102