0% found this document useful (0 votes)
93 views35 pages

Nischita Paudel

This document is a system development report for an "alcohol detector with vehicle locking system" project. The project uses an Arduino Uno, MQ3 alcohol sensor, relay module, and DC motor. The goal is to ensure passenger safety by preventing intoxicated driving. The system detects a driver's blood alcohol level using MQ3 sensors and stops the vehicle's engine if alcohol is detected, which could help reduce accidents. The report describes developing the system, testing it, and potential future improvements.

Uploaded by

Nissita Pdl
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)
93 views35 pages

Nischita Paudel

This document is a system development report for an "alcohol detector with vehicle locking system" project. The project uses an Arduino Uno, MQ3 alcohol sensor, relay module, and DC motor. The goal is to ensure passenger safety by preventing intoxicated driving. The system detects a driver's blood alcohol level using MQ3 sensors and stops the vehicle's engine if alcohol is detected, which could help reduce accidents. The report describes developing the system, testing it, and potential future improvements.

Uploaded by

Nissita Pdl
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/ 35

Module Code & Module Title

CC5068NI– Cloud Computing & IoT

“Alcohol Detector with vehicle locking system”

Assessment Type
40% System Development Report

Semester
2022 Spring
Group members
London Met ID Student Name
20049186 Nischita Paudel
20049230 Saurav Khadka
20049162 Keshab Saru
20049445 Jay Kumar Yadav

Assignment Due Date: 5/9/2022


Assignment Submission Date: 5/9/2022
Word Count: 2673
I confirm that I understand my coursework needs to be submitted online via Google Classroom under the
relevant module page before the deadline in order for my assignment to be accepted and marked. I am
fully aware that late submissions will be treated as non-submission and a mark of zero will be awarded.
CC5068NI Cloud Computing and Internet of Things

Acknowledgement
Foremost, we would like to express our gratitude to our module leader Mr. Sugat Man
Shakya, and our class tutor Mr. Umesh Nepal sir for providing us this great opportunity to
work on this IOT project. Secondly, we are grateful towards our parents for being
motivator and financially helping into our project. Last but not the least, we are very
thankful to the senior students for giving the idea about how we should work as team.

1|Page
CC5068NI Cloud Computing and Internet of Things

Abstract

The main purpose of this project is to develop an "alcohol detector with vehicle locking
system." The Arduino Uno, MQ3 Alcohol sensor, Relay Module, and DC motor is among
the hardware components used in the project. Many accidents currently occur because
of the driver or someone operating the car being under the influence of alcohol. As a
result, in practically every country, intoxicated driving is a leading cause of accidents. The
goal of the Alcohol Detector program is to ensure passenger safety in cars. The Alcohol
Detection with Vehicle Locking System assists us in vehicle control when a driver has
consumed alcohol. The MQ3 sensors in the steering detect the driver's blood alcohol level
and stops the engine of the vehicle which will help us in controlling road accidents. These
reports include the process of developing the project, testing of the project and what could
be the changes in the project in future.

2|Page
CC5068NI Cloud Computing and Internet of Things

Table of Contents
1. Introduction .............................................................................................................. 6
1.1. Current scenario ................................................................................................... 7
1.2. Problem Statement and Project as a Solution ..................................................... 7
1.3. Aims and Objectives: ............................................................................................ 8
1.3.1 Aim .................................................................................................................. 8
1.3.2 Objectives ....................................................................................................... 8
2. Background ............................................................................................................ 10
2.1 System Overview ................................................................................................. 10
2.2 Design Diagram ............................................................................................... 11
2.2.1 System Architecture ...................................................................................... 11
2.2.2 Flowchart....................................................................................................... 12
2.2.3 Circuit Diagram ............................................................................................. 13
2.3 Requirement Analysis .......................................................................................... 13
2.3.1 Hardware Components ................................................................................. 13
2.3.2 Software’s ..................................................................................................... 16
3. Development ............................................................................................................. 17
Step 1: The design and the planning ......................................................................... 17
Step 2: Resource collection ....................................................................................... 18
Step 3: System Development. ................................................................................... 18
Step 4: Pins connection to each other components. .................................................. 21
Step 5: Writing program to run the project. ................................................................ 22
4. Results and Findings ................................................................................................. 23
4.1 Testing ................................................................................................................. 23
5. Future works ............................................................................................................. 27
6. Conclusion ................................................................................................................ 28
7. References ................................................................................................................ 29
8. Appendix ................................................................................................................... 30
8.1 Source code......................................................................................................... 30
8.2 Block Diagram ..................................................................................................... 31
8.3 Individual Contribution ......................................................................................... 32

3|Page
CC5068NI Cloud Computing and Internet of Things

Table of Figures
Figure 1: Statistics of Drink and drive cases deaths (Bankrate, 2022) ............................ 8
Figure 2: System Architecture ....................................................................................... 11
Figure 3: Flowchart........................................................................................................ 12
Figure 4: Circuit diagram ............................................................................................... 13
Figure 5: Arduino uno .................................................................................................... 14
Figure 6: Breadboard .................................................................................................... 14
Figure 7: MQ3 Alcohol Sensor ...................................................................................... 15
Figure 8: Relay Module ................................................................................................. 15
Figure 9: Motor with propeller ........................................................................................ 16
Figure 10: Connection of Arduino 5v pin and ground pin to breadboard ....................... 18
Figure 11: connecting MQ3 sensor to bread board and Arduino ................................... 19
Figure 12: Connection battery, motor and relay module................................................ 20
Figure 13: Connecting relay module, breadboard and Arduino ..................................... 21
Figure 14: Writing program for the project. .................................................................... 22
Figure 15: Motor is running ........................................................................................... 24
Figure 16: Output of the program .................................................................................. 26
Figure 17: Motor stopped working ................................................................................. 26
Figure 18: block diagram of the project. ........................................................................ 32

4|Page
CC5068NI Cloud Computing and Internet of Things

Table of Tables

Table 1: Pins connection to each other components ..................................................... 21


Table 2: test if the motor runs or not.............................................................................. 23
Table 3: Test 2: test if the alcohol sensor detects the alcohol, then the motor will be
stopped or not. .............................................................................................................. 25
Table 4 : Individual Contribution .................................................................................... 34

5|Page
CC5068NI Cloud Computing and Internet of Things

1. Introduction
Internet Of Things (IOT) based projects are developed to solve problems
and make things easier, safer, and more comfortable. Sensors, software,
microcontrollers, and other technologies are merged and managed to create new
technologies or concepts; the creation of such technology is referred to as an IOT.
The Internet of Things is a major topic with significant technical, social, and
economic aspects. Consumer items, durable goods, automobiles and trucks,
industrial and utility components, sensors, and other ordinary objects are being
integrated with Internet connectivity and powerful data analysis capabilities to
change the way we work, live, and play. The impact of IoT on the Internet and
economy has been estimated to be as high as 100 billion linked IoT devices and a
global economic impact of more than $11 trillion by 2025, according to some
evaluations (Society, 2015).

We have been assigned the task of developing practical IoT projects. The
project's name was chosen as “Alcohol Detector with Vehicle Locking System”.
We propose an improved alcohol detection system based on Arduino for use in a
vehicle engine locking system in this project. The Arduino Uno, Alcohol sensor,
and dc motor as the vehicle's engine are the major components. Alcohol-related
accidents are on the rise these days, which is concerning because alcohol is a key
contributor to the rise in the number of automobile accidents. Every year, an
estimated 2.3 million people die prematurely because of driving while drinking. The
requirement of this project is considered to reduce such events.

6|Page
CC5068NI Cloud Computing and Internet of Things

1.1. Current scenario


In Nepal, it is illegal for drivers to drink and drive. The alcohol
detection sensor is used by traffic cops to determine whether the driver is
drunk. According to the Metropolitan Traffic Police Division (MTPD), police
have acted against 3,300 persons this year who have been found guilty of
intoxicated driving, or Ma Pa Se. Around 35 surprise checkpoints are set up
around the Valley every night, with the number of checkpoints increasing
during the weekends and Holiday season, when individuals are more likely
to drink. Officers on duty examine drivers, occasionally using breathalysers,
but primarily by smelling their breath for alcohol. (Republica, 2021).

1.2. Problem Statement and Project as a Solution


A huge number of accidents take place due to drink and drive
condition which has caused the sudden demise of many people. It has not
only affected the life of people it has also questioned the traffic system. The
police are not able to control these with their Ma Pa Se system. The
percentage of alcohol in a person's blood that raises with each drink
consumed is known as blood alcohol content (BAC). Different countries
employ different BAC values to identify drunk driving, but Nepal maintains
a zero-tolerance policy, which means the police will arrest us if we have
even a trace of alcohol on our breath. Violators must pay a Rs 1,000 fine
and have their license seized until they complete a required hour-long
officer’s lesson on the risks of driving drunk (Pandey, 2014). Not only in
Nepal, but this problem is also considered as a global problem. The below
statistic of the USA shows about every 30 % people who die on road
accident died from drink and drive cases.

7|Page
CC5068NI Cloud Computing and Internet of Things

Figure 1: Statistics of Drink and drive cases deaths (Bankrate, 2022)

This system is a combination of an Arduino Uno board, a Mq-3


alcohol sensor. In the case of a licensed driver, the alcohol content is under
the specified range, and the car will operate normally, as indicated by the
motor rotating; however, in the case of a drunk driver, the alcohol content is
higher than the recommended limit, which is detected by the alcohol sensor
and the Arduino controller, which will stop the motor. The Alcohol Detection
with Vehicle Locking System helps in the reduction of accidents caused by
drunk driving. The presence of alcohol in the environment is detected by the
MQ-3 sensor as soon as sensor detects the alcohol it prevents the driver
from starting the vehicle by locking the engine of the vehicle. Since the
vehicle will not be able to run, we can assume it will prevent the possibility
of the happening an accident.

1.3. Aims and Objectives:


1.3.1 Aim
The major goal of this project is to prevent road accidents caused by alcohol
drinking, which have resulted in the deaths of many individuals.

1.3.2 Objectives
• The combination of an alcohol detection system with an engine locking
system can help to avoid accidents caused by drunk driving.
• For cops, the alcohol detection system combined with the engine lockout
system can be extremely useful. Since, they don’t have to check every
vehicle.
• To save the driver financially by protecting their vehicle.

8|Page
CC5068NI Cloud Computing and Internet of Things

• To improve the safety ratings of the vehicle, as it builds the trust issues
between the customer and the vehicle provider.

9|Page
CC5068NI Cloud Computing and Internet of Things

2. Background
2.1 System Overview
This study developed an efficient method for reducing the number of cases
of road accidents caused by excessive alcohol consumption by drivers
on roadways. In our project, we solve this problem by creating a system that
analyses the alcohol level of a person's breath and switches off the car engine
automatically whenever a specific quantity of alcohol is detected. This alcohol level
indicates whether or not a person is drunk or not. The presence of alcohol in the
atmosphere is detected by the MQ-3 sensor.

In this prototype, the project is to develop the system of an alcohol detection


and engine locking system by using an Arduino Uno microcontroller interfaced with
an alcohol sensor along with a DC motor to demonstrate the concept. The MQ-3
alcohol sensor is used by the system to continuously monitor the blood alcohol
concentration (BAC) in order to detect the presence of liquor in a driver's exhale.
Our device can continuously assess the alcohol content in the driver's breath by
mounting the sensor on the steering wheel. If the sensors detect alcohol in the
driver's breath, as soon as the driver starts the engine, the engine get stopped.
This prototype used DC motor which plays the role for the engine of the
automation. When ethanol is placed near the sensor, then it detects the presence
of alcohol and the DC motor with propeller turns off.

10 | P a g e
CC5068NI Cloud Computing and Internet of Things

2.2 Design Diagram


2.2.1 System Architecture

Figure 2: System Architecture

11 | P a g e
CC5068NI Cloud Computing and Internet of Things

2.2.2 Flowchart

Figure 3: Flowchart

12 | P a g e
CC5068NI Cloud Computing and Internet of Things

2.2.3 Circuit Diagram

Figure 4: Circuit diagram

2.3 Requirement Analysis


2.3.1 Hardware Components
➢ Arduino Uno
Arduino Uno is a microcontroller or can be considered as the CPU of a
complete circuit which is used to process the command and provides output
accordingly. The Arduino performs a variety of functions, including
microcontrollers, computer circuit units, and primarily small computers that
run simple software package programs (javatpoint, 2022).

13 | P a g e
CC5068NI Cloud Computing and Internet of Things

Figure 5: Arduino uno

➢ Breadboard
A breadboard is a rectangular plastic board with several tiny holes in it.
These holes make it simple to place electronic components into an
electronic circuit, such as this one with a battery, switch, resistor, and LED,
to prototype (create and test an early version of) (light-emitting diode).

Figure 6: Breadboard

14 | P a g e
CC5068NI Cloud Computing and Internet of Things

➢ MQ3 Alcohol Sensor


It simply detects alcohol and sends information to Analog digital converter
of the microcontroller for the further process.

Figure 7: MQ3 Alcohol Sensor

➢ Relay Module
The relay module is an electrically controlled switch that can be turned on
or off, allowing or denying current flow (seeedstudio, 2022). It is required to
turn on/off the vehicle engine(motor) as it receives the high/low signals.

Figure 8: Relay Module

15 | P a g e
CC5068NI Cloud Computing and Internet of Things

➢ DC motor with propeller


Lastly, we use the motor with propeller as a vehicle engine to demonstrate
how the vehicle engine stops if it detects the alcohol.

Figure 9: Motor with propeller

Also, some of the wires is required to connect this above hardware


components.

2.3.2 Software’s
➢ Arduino IDE 1.8.19
The Arduino open-source software (Arduino IDE 1.8.19) is needed to write
a program and upload it to the microcontroller (arduino, 2022). Therefore,
the other components act accordingly the uploaded program.
➢ Tinker cad
It is used to make a working IOT project virtually.
➢ Draw.io
It is used to make system architecture and block diagram for the
documentation.
➢ Ms Word
It is simply used for writing the report or the proposal of the project.

16 | P a g e
CC5068NI Cloud Computing and Internet of Things

3. Development
The development section includes process of development of the IOT project.

Step 1: The design and the planning


Firstly, the design is done in the tinker cad software which helps to build the
project virtually. There were five major hardware components required for this
project. As it mentioned earlier, the hardware components are Arduino Uno, Bread
Board, MQ3 alcohol sensor, Relay module, and a DC motor with a 9v battery. Due
to unavailable of MQ3 alcohol sensor and Relay module, this thing is replaced by
Gas Sensor and a relay respectively in the tinker cad circuit diagram. After
dropping all the hardware components in the circuit diagram, the connection was
made between them by the wire.

We planned to put connection of a ground and 5 voltage power pins in


between bread board and an Arduino. Since bread board got connection of a
ground and 5 voltage pins. We started giving power to every required hardware
component by connecting ground and 5 voltage pins of a bread board to the ground
and voltage pins of the hardware components. Relay and a sensor are being given
a power connection. Similarly, the output pin for Relay is chosen as digital pin of
9. While input pin for sensor is being chosen as analogue pin of 0. Lastly, we made
a connection of relay with a motor and battery so, relay module will be able to send
the output signals to the motor when it is necessary. We are able to understand
the concept and the working mechanism of this project by making connection in
tinker cad so, we were easily and comfortably able to make connection in real life
project and write program for the project.

17 | P a g e
CC5068NI Cloud Computing and Internet of Things

Step 2: Resource collection


The Resources to develop this IOT project were collected from the different
areas. We wrote an application letter to get the available resource from the IT
resource department of the college. The resources that are collected from the IT
resource department are Arduino uno, relay module, jumpier wire, bread board.
The other half of the resource were collected from some local stores and a well-
known site i.e., Himalayan IT solution. MQ3 Alcohol sensor, Battery, DC motor,
battery cap, and some led lights are collected from the local stores and Himalayan
IT solution site.

Step 3: System Development.


Phase 1: The system development process is done same as process done to
develop this project in tinker cad. Firstly, we made a connection between bread
board and Arduino uno by establishing ground and a 5 voltage pins of an Arduino
to the negative and positive terminals of the bread board respectively.

Figure 10: Connection of Arduino 5v pin and ground pin to breadboard

18 | P a g e
CC5068NI Cloud Computing and Internet of Things

Phase 2: In this phase, the connection MQ3 sensor is made. The ground pin of
the MQ3 sensor is connected with ground pin of bread board and the vcc pin of
the MQ3 sensor is connected with the 5-volt pin of the bread board. These pins
were connected to supply the power to the MQ3 sensor. Meanwhile, DO pin of the
MQ3 sensor is connected with the analogue pin of A0 in the Arduino to provide
input signals.

Figure 11: connecting MQ3 sensor to bread board and Arduino

19 | P a g e
CC5068NI Cloud Computing and Internet of Things

Phase 3: Relay module is connected with the 9v battery and dc motor in this phase
in order to receive output signals for the motor. The output signals will act in the
motor accordingly to the written program. 9v battery is simply connected to provide
power to the motor in order to run.

Figure 12: Connection battery, motor and relay module

20 | P a g e
CC5068NI Cloud Computing and Internet of Things

Phase 4: Lastly, we connect the other part of the relay module to the bread board
and the Arduino. The ground pin and the vcc pin of the relay module is connected
to the ground pin and the 5v pin of the bread board. The IN pin of the relay module
is connected to the digital pin of 9 in order to provide output signals to the dc motor.

Figure 13: Connecting relay module, breadboard and Arduino

Step 4: Pins connection to each other components.

Arduino I/O pins Bread Board


MQ3 Sensor VCC 5v
GND GND
DO A0
Relay Module VCC 5v
GND GND
IN Digital 9

Table 1: Pins connection to each other components

21 | P a g e
CC5068NI Cloud Computing and Internet of Things

Step 5: Writing program to run the project.

Figure 14: Writing program for the project.

22 | P a g e
CC5068NI Cloud Computing and Internet of Things

4. Results and Findings


After all the completion of the development process, the project is finish and ready
to run for the purpose of reducing an accident. This system is able of detecting the alcohol
and stopping the motor. The program is done in such a way if the sensor does not detect
the alcohol that means the value of the digital signal will be 0, then the motor runs
continuously without any interference. Similarly, If the sensor detects the alcohol which
means the value of the digital signal will be 1, then the motor suddenly stops. In this case,
we supposed the motor as engine of the car. The project can be fit in the driver steering
and can be run as soon as the driver starts the engine of the vehicle. The sensor will be
able to detect the smell of the driver and the system can find out if the driver had been
drinking or not. If it detects the alcohol, the engine will suddenly stop and if it’s doesn’t
detect, the engine will be on, and the vehicle can run.

4.1 Testing
Test 1: Test if the motor runs or not

Test 1

Objective: To test if the motor runs or not after giving the power.

Activity: Connecting Arduino with the laptop and running the code.

Expected The motor should start running.


Result

Actual The message started running.


Result

Conclusion The test is successful.

Table 2: test if the motor runs or not

23 | P a g e
CC5068NI Cloud Computing and Internet of Things

Figure 15: Motor is running

Test 2: Test if the alcohol sensor detects the alcohol, then the motor will be stopped
or not.

24 | P a g e
CC5068NI Cloud Computing and Internet of Things

Test 2

Objective: To test if the alcohol sensor detects the alcohol, then the motor will
be stopped or not.

Activity: Providing alcohol to the MQ3 sensor

Expected The motor should stop.


Result

Actual The motor stopped.


Result

Conclusion The test is successful.

Table 3: Test 2: test if the alcohol sensor detects the alcohol, then the motor will be stopped or not.

25 | P a g e
CC5068NI Cloud Computing and Internet of Things

Figure 16: Output of the program

Figure 17: Motor stopped working

26 | P a g e
CC5068NI Cloud Computing and Internet of Things

5. Future works
This system can be regarded as fully functional though there are many
things which can be improved to make things easier, comfortable, and more
accurate. In future work, the display can be added to make things easier for driver,
why his /her vehicle has been stopped. Another thing that can be added into this
system is the GSM module to send messages to the driver’s close one if alcohol
gets detected in the system. This system can be implemented in the vehicle, where
ignition on of an engine will start this system and detect if the driver is drunk or not.
Since, the sensor will be in the steering, it will only be able to detect the alcohol
level of the driver.

27 | P a g e
CC5068NI Cloud Computing and Internet of Things

6. Conclusion
To sum up, this is one of first group project which really tests the ability and the
quality of student to work in team. The project is designed to solve some specific
problem that’s been existed in our environment. We considered drink and drive as
a problem which cause accidents. To reduce the number in drink and drive
accidents, we come up with an idea to make Alcohol detector and Vehicle locking
system that helps to detect if the driver had drunk an alcohol or not, if it detects the
alcohol, vehicle engine will automatically be locked.

28 | P a g e
CC5068NI Cloud Computing and Internet of Things

7. References
arduino, 2022. arduino-ide-v1-basics. [Online]
Available at: https://docs.arduino.cc/software/ide-v1/tutorials/arduino-ide-v1-basics
[Accessed 17 4 2022].
Bankrate, 2022. 2022 drunk driving statistics. [Online]
[Accessed 8 5 2022].
javatpoint, 2022. arduino-uno. [Online]
Available at: https://www.javatpoint.com/arduino-uno
[Accessed 17 4 2022].
Pandey, H. B. a. S., 2014. Getting over the influence, kathmandu: Nepali Times.
Republica, 2021. Traffic Police collects cash fine of Rs 3.30 million in drink-driving
penalty in single day of Vijaya Dashami, Kathmandu: Republica.
seeedstudio, 2022. Arduino Relay Tutorial: Control High Voltage Devices with Relay
Modules. [Online]
Available at: https://www.seeedstudio.com/blog/2020/01/03/arduino-tutorial-control-
high-voltage-devices-with-relay-
modules/#:~:text=The%20relay%20module%20is%20an,or%205V%20like%20your%20
Arduino.
[Accessed 17 4 2022].
Society, I., 2015. The Internet of Things (IoT): An Overview, Reston, VA 20190: Internet
Society.

29 | P a g e
CC5068NI Cloud Computing and Internet of Things

8. Appendix
8.1 Source code

#define sensorDigital A0
#define Motor 9

void setup() {

pinMode(sensorDigital, INPUT);

pinMode(Motor, OUTPUT);

Serial.begin(9600);

void loop() {

bool digital = digitalRead(sensorDigital);

Serial.print("Digital value :");

Serial.println(digital);

If (digital == 0) {

30 | P a g e
CC5068NI Cloud Computing and Internet of Things

digitalWrite(Motor, LOW);
Serial.print("NO !! Alcohol detected");

} else {

digitalWrite(Motor,HIGH);
Serial.print("Alcohol detected ||| ");

8.2 Block Diagram

Alcohol Mq3 detects the alcohol and sends information to the Arduino UNO.
After the detection of alcohol, Arduino sends signals to the relay module which will
turn off the motor if it detects alcohol and turn on the motor if it does not detect
alcohol.

31 | P a g e
CC5068NI Cloud Computing and Internet of Things

Figure 18: block diagram of the project.

8.3 Individual Contribution


Student Name Role Contribution

Saurav Khadka Proposal: Requirement 25%


Analysis and Individual
contribution plan
System Development
Report: Development,
Results and Finding
Application
Implementation:
Writing Code to execute
the connection between
different components
Presentation:
Development and testing
of the project.

32 | P a g e
CC5068NI Cloud Computing and Internet of Things

Nischita Poudel Proposal: Abstract, 25%


Introduction, aims and
objective of the proposal.
System Development
Report: Abstract,
Introduction, aims and
objective. Design and
Diagram of the flowchart.
Application
Implementation:
Setting up Arduino IDE
and making connection
between different
components
Presentation: Purpose
and objectives of the
project.

Keshab Saru Proposal: Expected 25%


Outcomes and
deliverables and System
Architecture of the
proposal.
System Development
Report: System overview,
Requirement analysis,
Design of Hardware
architecture and Circuit
Diagram.

33 | P a g e
CC5068NI Cloud Computing and Internet of Things

Application
Implementation:
Setting up Arduino IDE
and making connection
between different
components
Presentation:
Requirement analysis and
system overview

Jay Kumar Yadav Proposal: Conclusion and 25%


the acknowledgement of
the proposal.
System Development
Report: Future works and
the conclusion.
Application
Implementation:
Reviewing the code and
improving it.
Presentation: Future work
and the exception of the
project.
Table 4 : Individual Contribution

34 | P a g e

You might also like