Professional Documents
Culture Documents
Mini-Project report
on
“ANTI SLEEP ALARM FOR DRIVERS USING ARDUINO
NANO”
Submitted by
2022-2023
GOVERNMENT ENGINEERING COLLEGE
HAVERI - 581 110
(Affiliated to Visvesvaraya Technological University)
Certificate
This is to certify that the Mini-project work entitled “ANTI SLEEP ALARM FOR
DRIVERS USING ARDUINO NANO” carried out by VINAYAK K MANNUR 2GO20EC052
is bonafide student of Government Engineering College, Haveri in partial fulfillment for the
award of Bachelor of Engineering in Electronics and Communication Engineering of the
Visvesvaraya Technological University, Belgaum during the year 2022-2023. The Mini project
report has been approved as it satisfies the academic requirements in respect of the Mini project
work prescribed for the said Degree.
.................................................. ..................................................
Signature of Guide Mini-Project Coordinator
Prof. PRASHANTHI. H. J M.Tech. Prof. SUMANGALA. G S M.Tech..
Assistant Professor Assistant Professor
................................................. ..................................................
Head of the Department Principal
Dr. JAYAPRAKASHA.H M.Tech.,Ph.D.,MISTE Dr. JAGADISH KORI. M.E, Ph.D.
Assistant Professor
Examiners:
1.___________________________________________ _____________________
2.___________________________________________ _____________________
DATE :
PLACE:
VISVESVARAYA TECHNOLOGICAL UNIVERSITY
DECLARATION
I, VINAYAK K MANNUR, USN-2GO20EC052, the student of 6th semester
Bachelor of Engineering in Electronics and Communication Engineering, Government
Engineering College, Haveri hereby declare that the mini project report titled “ANTI SLEEP
ALARM FOR DRIVERS USING ARDUINO NANO” has been prepared and presented by me
and submitted in partial fulfillment of the course Requirements for the award of degree in Bachelor
of Engineering in Electronics and Communication Engineering of Visvesvaraya Technological
University, Belagavi during the year 2022-2023. Further, the content of the report has been
submitted previously for the award of any degree or diploma to any other University.
Place: Haveri
VINAYAK K MANNUR
2GO20EC052
TABLE OF CONTENTS
Acknowledgment i
Abstract ii
CHAPTER 1: INTRODUCTION. 1
1.1 PREAMBLE 1
1.3 OBJECTIVES 2
CHAPTER 3: METHODOLOGY. 4
5.1 CONCLUSION 16
REFERENCES
ACKNOWLEDGEMENT
Completing any Mini Project brings a sense of satisfaction, but it is never complete without
thanking those who made it possible and whose constant support has crowned our efforts with
success.
We would specially thank our Mini Project guide Prof. PRASHANTHI. H. J, Department of
Electronics and Communication Engineering for his/her expert guidance, encouragement, and
valuable suggestions at every step.
We would like to thank Prof. SUMANGALA. G. S, the Mini-Project Coordinator, and the
Electronics and Communication Engineering Department faculty members for their continuous
support and guidance to carry out the Project work.
We would also like to express our gratitude to Dr. JAYAPRAKASHA. H, Head of the
Department of Electronics and Communication Engineering for encouraging and inspiring us to
carry out the Mini-Project.
We would like to thank Dr. JAGADISH KORI, Principal of Government Engineering College
Haveri for their continuous support and constant encouragement to carry out the Mini- Project.
We are extremely happy to acknowledge and express our sincere gratitude to our Parents, Staff,
and friends who gave us constant support and encouragement, and well wishes for their help and
co-operation and solution to problems during the Mini Project.
BHARGAV M P 2GO20EC010
KARTHIK B K 2GO20EC016
VINAYAK K MANNUR 2GO20EC052
i
ABSTRACT
Drowsy driving is a critical issue that poses significant risks to road safety worldwide. To
address this problem, an anti-sleep alarm for drivers has been developed as a proactive solution.
This alarm system utilizes advanced technology to monitor driver fatigue levels and alert them
when signs of drowsiness are detected. By employing various sensors and algorithms, the device
accurately assesses driver fatigue through indicators such as eye movement. Once fatigue is
detected, the alarm triggers audible, ensuring that the driver remains alert and focused on the
road. This abstract provides a concise overview of the anti-sleep alarm, emphasizing its potential
in reducing the occurrence of accidents caused by drowsy driving.
ii
LIST OF FIGURES
iii
ANTI SLEEP ALARM FOR DRIVERS USING ARDUINO NANO GEC HAVERI
CHAPTER – 1
INTRODUCTION
1.1 PREAMBLE
An anti-sleep alarm for drivers is a safety device that can alert a driver when they are
feeling drowsy and at risk of falling asleep while driving. One way to implement such a system
is by using an Arduino Nano and an eye blink sensor.
The eye blink sensor is a type of sensor that detects eye blinks and measures the duration
of the blink. By monitoring the frequency and duration of eye blinks, the system can determine
whether the driver is alert or drowsy. If the system detects that the driver is drowsy, it can trigger
an alarm to alert the driver to take a break. When the eye blink sensor detects that the driver is
getting drowsy, the Arduino Nano will start monitoring the obstacle sensor. If an obstacle is
detected, the alarm will be triggered to alert the driver. If no obstacle is detected, the system will
wait for a certain amount of time before triggering the alarm to avoid false alarms.
Driving is an essential part of our daily lives, enabling us to travel efficiently and reach
our destinations. However, prolonged periods behind the wheel can lead to fatigue and
drowsiness, which pose significant risks to both the driver and others on the road. According to
studies, drowsy driving is a major cause of accidents worldwide. To combat this issue,
technology has come to the rescue with the introduction of anti-sleep alarms for drivers.
The primary purpose of an anti-sleep alarm is to prevent accidents caused by driver
fatigue. When a driver starts to show signs of drowsiness, such as frequent blinking or erratic
driving patterns, the alarm detects these symptoms and issues a warning signal. This signal can
be in the form of a loud sound the driver's attention and reminding them to stay alert and focused
on the road.
The implementation of anti-sleep alarms has proven to be an effective measure in
reducing accidents caused by driver fatigue. These devices not only protect the driver but also
contribute to overall road safety. With their ability to detect signs of drowsiness in real-time and
provide timely alerts, anti-sleep alarms have become an indispensable tool for long-haul truckers,
night-shift workers, and anyone who spends extended periods behind the wheel.
Driver fatigue is one of the major causes of road accidents worldwide. To address this
problem, an anti-sleep alarm using an Arduino Nano can be designed. The aim of this project is
to develop a device that can detect the drowsiness of the driver and alert them before they fall
asleep while driving. Sleepiness while driving is a common problem that can have serious
consequences. It is estimated that drowsy driving is responsible for up to 6,000 fatal crashes each
year in the United States alone. Some common signs that a driver may be sleepy include yawning
frequently, feeling drowsy or fatigued, having trouble focusing on the road, and drifting in and
out of lanes. If you experience any of these symptoms while driving, it is important to take action
to avoid a potential accident.
1.3 OBJECTIVES
CHAPTER – 2
LITERATURE REVIEW
1. AUTHOR: H. Abdulrazak et al.
"Anti-Sleep Alarm System for Drivers" by H. Abdulrazak et al. (2019) This paper proposed
an anti-sleep alarm system for drivers using an Arduino nano board and an eye blink sensor. The
system detects the driver's eye blinks and sounds an alarm when it detects the driver's eyes closed
for more than a specified time. The system was tested on several drivers, and the results showed
that the system was effective in preventing drowsy driving.
3. AUTHORS: Ines Teyeb, Olfa Jemai, Mourad Zaied, and Chokri Ben Amar.
In their paper, they proposed a drowsy driver detection system based on a new method
for head posture estimation and named it “A Drowsy Driver Detection System Based on a New
Method of Head Posture Estimation”. In their first part, they introduced six possible models
of head positions that can be detected by the algorithm which is explained in the second part.
Indeed, there are three key stages characterizing the method: First of all, they proceed with
driver’s face detection by Viola and Jones algorithm. Finally, based on measuring both the head
inclination’s angle and distances between the extracted coordinates, they classify the head state
(normal or inclined). Test results demonstrate that the proposed system can efficiently measure
the above mentioned parameters and detect the head state as a sign of the driver’s drowsiness.
CHAPTER – 3
METHODOLOGY
3.1 COMPONENTS REQUIRED
3.1.1HARDWARE REQUIRED
Eyeblink Sensor With Goggle.
Arduino Nano Board.
Buzzer.
Relay Module.
Dual shaft DC Motor.
Buzzer:
The pin configuration of the buzzer is shown above. It includes two pins namely positive
and negative. The positive terminal of this is represented with the ‘+’ symbol or a longer
terminal. This terminal is powered through 6Volts whereas the negative terminal is represented
with the ‘-’ symbol or short terminal and it is connected to the GND terminal.
Relay Module:
Advantages of relays:
• Relays can switch AC and DC; transistors can only switch DC.
• Relays can switch high voltages, transistors cannot.
• Relays are a better choice for switching large currents (> 5A).
• Relays can switch many contacts at once.
Dual-shaft DC Motor:
POWER
SUPPLY
BUZZER
ARDUINO
EYE BLINK
NANO
SENSOR
RELAY
MODULE
VEHICLE
(DC MOTOR)
ECE DEPARTMENT P a g e 10
ANTI SLEEP ALARM FOR DRIVERS USING ARDUINO NANO GEC HAVERI
The Arduino Nano continuously analyzes the data received from the eye-blinking sensor
to determine the driver's level of alertness. If the system detects that the driver's eyes have been
closed for an extended period or if the frequency of blinking falls below a certain threshold, it
interprets these as signs of drowsiness or sleepiness.
When the Arduino Nano detects such signs, it triggers the buzzer to produce a loud and
attention-grabbing sound. The buzzer is connected to one of the digital output pins of the Arduino
Nano.
ECE DEPARTMENT P a g e 11
ANTI SLEEP ALARM FOR DRIVERS USING ARDUINO NANO GEC HAVERI
START
VEHICLE
RUNNING
DROWSINESS
DETECTED
NO
YES
BUZZER
ACTIVATED
ECE DEPARTMENT P a g e 12
ANTI SLEEP ALARM FOR DRIVERS USING ARDUINO NANO GEC HAVERI
ECE DEPARTMENT P a g e 13
ANTI SLEEP ALARM FOR DRIVERS USING ARDUINO NANO GEC HAVERI
CHAPTER – 4
The eye blink sensor is connected to the Arduino Nano. This sensor detects the driver's
eye blinks and sends a signal to the Arduino whenever the eyes are closed as shown in the Fig
4.1 The Arduino continuously monitors the output from the eye blink sensor. When the Arduino
detects that the driver's eyes have been closed for a certain duration , it triggers the buzzer and
the DC motor simultaneously. The buzzer starts producing a loud alarm sound to alert the
driver, while the DC motor starts vibrating or rotating to create a physical stimulus. To activate
the alarm and motor, the Arduino uses a relay module connected to both the buzzer and the DC
motor. The relay module acts as a switch, allowing the Arduino to control the power supply to
these devices. The alarm and motor will continue to operate until the Arduino detects that the
driver's eyes have opened as shown in the Fig 4.2, indicated by a change in the output from the
eye blink sensor. Once the eyes open, the Arduino stops the buzzer and the DC motor by
deactivating the relay module.
ECE DEPARTMENT P a g e 14
ANTI SLEEP ALARM FOR DRIVERS USING ARDUINO NANO GEC HAVERI
ECE DEPARTMENT P a g e 15
ANTI SLEEP ALARM FOR DRIVERS USING ARDUINO NANO GEC HAVERI
CHAPTER – 5
CONCLUSION AND FUTURE SCOPE
5.1 CONCLUSION:
The system successfully detectes abnormal blink patterns, alerted the driver through a
loud buzzer, and activated the DC motor to engage the brakes or disengage the accelerator if
necessary. This integration of technology enhances driver safety and serves as a valuable aid in
mitigating the risks associated with driver fatigue. However, it is essential to remember that the
system should be used as a supplementary tool, and drivers must prioritize their well-being by
taking proper rest and breaks when needed.
ECE DEPARTMENT P a g e 16
ANTI SLEEP ALARM FOR DRIVERS USING ARDUINO NANO GEC HAVERI
APPLICATIONS:
Long-distance driving.
Studying or working late hours.
Enhancing workplace safety.
Preventing drowsy driving accidents.
ADVANTAGES:
Early Warning System: Anti-sleep alarms serve as an early warning system, detecting the
early signs of drowsiness before a driver falls asleep at the wheel. This early detection can
help prevent potentially catastrophic accidents and provide the driver with the opportunity to
rest or take a break.
Road Safety Improvement: By reducing the incidence of accidents caused by drowsy
driving, anti-sleep alarms contribute to overall road safety. They help protect the driver using
the alarm and other road users, promoting a safer driving environment for everyone.
Increased Awareness: The presence of an anti-sleep alarm in a vehicle can increase driver
awareness about the importance of staying alert and the risks associated with drowsy driving.
It serves as a constant reminder to prioritize driver safety and encourages responsible driving
habits.
Customizable Features: This may include adjustable sensitivity levels, choice of alert types
(audible, vibration, visual), and adjustable alarm thresholds, allowing drivers to personalize
the alarm system to their specific requirements.
Enhanced Driver Safety: The primary advantage of an anti-sleep alarm is its ability to
enhance driver safety. It helps prevent accidents caused by drowsy driving by alerting the
driver when signs of fatigue or sleepiness are detected, allowing them to take corrective
action and stay focused on the road.
ECE DEPARTMENT P a g e 17
ANTI SLEEP ALARM FOR DRIVERS USING ARDUINO NANO GEC HAVERI
DISADVANTAGES:
ECE DEPARTMENT P a g e 18
REFERENCES
1. NHTSA, Evaluation of techniques for ocular measurement as an index of fatigue and the basis
for alertness management (National Highway Traffic Safety Administration, Washington, DC,
USA, 1998).
2. Tresanchez, M., Pallejà, T., & Palacín, J. (2019). Optical Mouse Sensor for Eye Blink
Detection and Pupil Tracking: Application in a Low-Cost Eye-Controlled Pointing Device.
Journal of Sensors, 2019.
3. Earman, A. (2012). Eye Safety for Proximity Sensing Using Infrared Light-Emitting Diodes.i6
4. Siddiqui, H. U. R., Saleem, A. A., Brown, R., Bademci, B., Lee, E., Rustam, F., & Dudley, S.
(2021). Non-invasive driver drowsiness detection system. Sensors, 21(14), 4833.
5. Babu, T., Ashwin, S., Naidu, M., Muthukumaaran, C., & Raghavan, C. R. (2019). Sleep
Detection and Alert System for Automobiles. In Advances in Manufacturing Technology (pp.
113-118). Springer, Singapore.