• Tidak ada hasil yang ditemukan

Design and Development of an IoT Based System to Detect Drunk Drivers by Car Monitoring

N/A
N/A
Protected

Academic year: 2024

Membagikan "Design and Development of an IoT Based System to Detect Drunk Drivers by Car Monitoring"

Copied!
9
0
0

Teks penuh

(1)

Design and Development of an IoT Based System to Detect Drunk Drivers by Car Monitoring

A Thesis By

Raihan Mahmud; ID : BME1901017231 Md. Easin Nury; ID: BME1703013219

Sabbir Alam; ID: BME1902018317 Md Khairul Islam; ID: BME1902018305 Md. Mehedi Hasan; ID : BME1902018151

Department Of Mechanical Engineering SONARGAON UNIVERSITY (SU)

May 2023

(2)

Design and Development of an IoT Based System to Detect Drunk Drivers by Car Monitoring

A Thesis

By

Raihan Mahmud ID: BME1901017231

In Co-operation With

Md. Easin Nury Sabbir Alam

ID: BME1703013219 ID: BME1902018317

Md Khairul Islam Md. Mehedi Hasan

ID: BME1902018305 ID : BME1902018151

Supervisor:

Md.Navid Inan Lecturer Submitted to the

DEPARTMENT OF MECHANICAL ENGINEERING SONARGAON UNIVERSITY (SU)

In partial fulfillment of the requirements for the award of the degree of

Bachelor of Science in Mechanical Engineering

May 2023

(3)

Acknowledgment

We would like to express our gratitude to almighty Allah and thanks to our honorable teacher Md. Navid Inan sir for enabling us to complete this project on “Design and Development of an IoT-Based System to Detect Drunk Drivers by Car Monitoring”.

The guidance and inspiration of our honorable teacher Prof. Dr. Md. Mostofa Hossain, Head of the Department Of Mechanical Engineering, SONARGAON UNIVERSITY (SU), Dhaka related to the research work are greatly acknowledged.

Completing any type of project requires help from several people. We have also taken help from different people for the preparation of this project. To make this project we take help from some books and online resources. So we are also thankful to the author of them. Finally, we are also grateful to the faculty members of Mechanical Engineering, SONARGAON UNIVERSITY (SU), Dhaka for their overall support to finish the project works.

(4)

i Abstract

Drowsy and drunk driving are the leading cause of accidents worldwide. The greatest strategy to avoid accidents caused by drowsy and drunk drivers is to detect them before they fall asleep and also test their alcohol level. To demonstrate the concept, this study created and develop an IoT-based system to detect the drunk driver and car monitoring utilizing an ESP-8266 microcontroller, an alcohol sensor, IR sensors, and a DC motor. The MQ-3 alcohol sensor is used by the system to continuously monitor the blood alcohol concentration (BAC) to detect the presence of liquor in a driver's exhale. If the sensors detect alcohol on the driver's breath, the ignition will not turn on. In this alcohol measure three steps which are high drunk mood, medium drunk mood, and normal mood. If the driver becomes intoxicated while driving, the sensor will detect alcohol on his breath and authority turn off the engine so that the driver can park the car side of the road. On the other side, the DTH sensor detects the Temperature and the Humidity of the driver. Also, an Air quality measurement was read by the use of MQ135 Air Quality Sensor. Any toxic gas will present inside the vehicle the Sensor will detect the gas. The whole system monitors through IoT via mobile application.

(5)

ii

Table of Contents

Page No.

Acknowledgment i

Abstract ii

Table of Contents iii

List of Figures vi

Notations vii

Chapter 1 Introduction 1-3 1.1 General 1

1.2 Problem Statement 2

1.3 Contribution Of The Project 3

1.4 Aim Of The Project 3

1.5 Objectives 3

Chapter 2 Literature Review 4-10 2.1 Introduction 4

2.2 Back Ground 4

2.3 Conclusions 7

Chapter 3 Methodology 8-21 3.1 Introduction 8

3.2 Hardware Setup 10

3.2.1 ESP-8266 10

3.2.1.1 Pin Configuration 11

3.2.1.2 Working System 12

3.2.2 MQ-3 Alcohol Sensor 12

3.2.2.1 Specifications Of Mq-3 Sensor 13

3.2.2.2 Working System 13

(6)

3.2.3 Power Supply 13

3.2.3.1 Working System 14

iii 3.2.4 Motor 14

3.2.4.1 Specifications Of Motor 15

3.2.4.2 Working System 15

3.2.5 DHT Sensor 15

3.2.5.1 DHT11 Specifications 16

3.2.5.2 Working Principle 16

3.2.6 Single Channel Relay 17

3.2.6.1 Module Specifications 17

3.2.6.2 Working Principle 18

3.2.7 16*2 LCD Display 18

3.2.7.1 LCD Pin Diagram 19

3.2.8 I2C Module 19

3.2.9 MQ135 Air Quality Sensor 20

3.2.9.1 Specifications 20

3.2.10 Construction Design 21

Chapter 4 Hardware & Software Simulation 22-32 4.1 Introduction 22

4.2 Block Diagram 22

4.3 Hardware Design 23

4.3.1 Body Preparation 23

4.3.2 Hardware Setup 25

4.4 Software Simulation 25

4.4.1 Arduino IDE 26

4.4.2 Arduino Variable Declaration and 27

Library Include 4.4.3 Void Setup Function 28

4.4.4 Void Loop Function 28

4.5 Internet of Things 29

4.6 Firebase 30

4.6.1 Using Firebase Features In Arduino 30

(7)

Application

4.6.2 Authentication 30

iv 4.6.3 Storage of Firebase, Insertion, Read/Write 31 4.6.4 MIT App Inventor 31

4.6.5 Basic App Development Performed 32

In-App Inventor Compass Chapter 5 Conclusion 33-34 5.1 Conclusion 33

5.2 Societal and Environmental Impact 34

5.3 Future Scopes 34

References 35

Appendix 37

(8)

v List of Figures

Fig. 1.1 "Illustration of drunk driving" 1

Fig. 3.1 Methodology 9

Fig. 3.2 ESP-8266 11

Fig. 3.3 Pin diagram of ESP-8266 11

Fig. 3.4 Alcohol Sensor 12

Fig. 3.5 DC Adopter 13

Fig. 3.6 Connection Block Of MQ-3, ESP-8266, DHT 14

Fig. 3.7 DC Motor 15

Fig. 3.8 DHT Sensor 15

Fig. 3.9 Single-Channel Relay 17

Fig. 3.10 LCD Display 18

Fig. 3.11 LCD Display Pin mode 19

Fig. 3.12 I2C Module 19

Fig. 3.13 Air Quality Sensor 20

Fig. 3.14 Project Demonstration 21

Fig. 4.1 Block Diagram Of The Project 22

Fig. 4.2 Material Cutting 23

Fig. 4.3 Material Cutting 23

Fig. 4.4 Material Joining 24

Fig. 4.5 Final Joining 24

Fig. 4.6 Final Circuit And Hardware Setup 25

Fig. 4.7 Arduino IDE 26

Fig. 4.8 Arduino IDE screen Void Setup and Library Include 27

Fig. 4.9 Void Setup Function 28

Fig. 4.10 Void Loop Function 28

Fig. 4.11 Drag and drop code window 32

(9)

vi Notation

IoT - Internet of Things LCD - Liquid Crystal Display

DHT Sensor - Digital Temperature and Humidity Sensor SDL – Serial Data Pin

SCL – Serial Clock Pin

vii

Referensi

Dokumen terkait