0% found this document useful (0 votes)
3 views

Project

The project proposes an Advanced Anti-Sleep Alarm System for drivers using an Arduino Nano and an IR sensor to detect drowsiness in real-time. If a driver's eyes remain closed for more than three seconds, an alarm is triggered to wake them, potentially reducing road accidents. The system is cost-effective, easy to implement, and has applications in various driving scenarios, though it has limitations such as accuracy and dependency on the driver wearing the device correctly.

Uploaded by

tano.mh.gaj.nvi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Project

The project proposes an Advanced Anti-Sleep Alarm System for drivers using an Arduino Nano and an IR sensor to detect drowsiness in real-time. If a driver's eyes remain closed for more than three seconds, an alarm is triggered to wake them, potentially reducing road accidents. The system is cost-effective, easy to implement, and has applications in various driving scenarios, though it has limitations such as accuracy and dependency on the driver wearing the device correctly.

Uploaded by

tano.mh.gaj.nvi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 9

Government Degree College No.

1
Project Proposal Lab VI

SUBMITTED TO: SIR SALMAN AHMED


SUBMITTED BY: GROUP III

ROLL 2204 2212 2226 2246 2247


NO
NAME MUHAMMAD REHMAT MUHAMMAD KAMRAN EHTESHAM
IKRAMA MUJAHID UZAIR BALOCH KHAN
Advanced Anti-Sleep Alarm System for
Drivers Using Arduino Nano

Abstract:-
Driver fatigue is a major cause of road accidents. This project introduces a cost-
effective, wearable system using an IR sensor, Arduino Nano, and a buzzer to
detect drowsiness in real-time. If the driver’s eyes stay closed beyond 3 seconds,
a loud alarm is triggered to wake them. For demo purposes, a relay cuts off a
motor simulating the vehicle. This device can reduce accidents and enhance road
safety.

Component List & Cost Breakdown:


S.No Components Quantity Price(PKR)
1 Arduino Nano 1 pice 900
2 IR sensor 1 pice 220
3 5V relay Module 1 pice 340
4 Buzzer 1 pice 100
5 9v Battery 2 pice 540 (270)
6 Motor & Wheel 1 pice 200
7 Safety Glasses Frame 1 pice 300
8 Wires and connection - 200
Delivery Charges 270
Total 2870
Tool Used:-
 Soldering kit
 Glue Gun
 Wooden board
 Multimeter (for testing)
 Arduino IDE(for Programing)

⚙️ Working Principle:
1. IR Sensor is mounted on the driver’s glasses. It continuously monitors the

driver's eyes.

2. If the driver’s eyes stay closed for more than a few seconds (indicating

drowsiness), the sensor sends a signal to the Arduino Nano.

3. Arduino triggers a buzzer to wake up the driver.

4.Optionally, the relay can be used to disconnect the vehicle's ignition or alert a

system (for demonstration, a motor and wheel represent vehicle movement).

Testing & Validation:


1. Wear the glasses with the mounted IR sensor.

2. Close your eyes for more than 3 seconds – the buzzer should activate.

3. Open eyes – the buzzer stops.

4. Observe the motor (optional demo vehicle) stopping when the buzzer is

triggered via relay.


Circuit Diagram:

Arduino Code(programing):
// PendTech

// Anti Sleep Alarm for Drivers using IR Sensor, Buzzer, and Motor

const int sensorPin = 2; // IR sensor connected to D2

const int motorPin = 8; // Motor connected to D8

const int buzzerPin = 9; // Buzzer connected to D9

unsigned long lastEyeCloseTime = 0;

void setup() {

pinMode(sensorPin, INPUT);

pinMode(motorPin, OUTPUT);

pinMode(buzzerPin, OUTPUT);
digitalWrite(motorPin, HIGH); // Motor ON initially

digitalWrite(buzzerPin, LOW); // Buzzer OFF initially

void loop() {

bool eyesClosed = !digitalRead(sensorPin); // LOW = eyes closed

if (eyesClosed) {

// Eyes are closed now, record the time

lastEyeCloseTime = millis();

digitalWrite(buzzerPin, LOW); // Buzzer OFF

digitalWrite(motorPin, HIGH); // Motor ON

} else {

// Eyes are open, check how long they were closed

unsigned long elapsedSeconds = (millis() - lastEyeCloseTime) / 1000;

if (elapsedSeconds >= 3) {

digitalWrite(buzzerPin, HIGH); // Buzzer ON after 3 seconds

if (elapsedSeconds >= 4) {

digitalWrite(motorPin, LOW); // Motor OFF after 4 seconds

}
}

Applications of Anti-Sleep Alarm


for Drivers:
 Long-Distance Truck Drivers

 Helps prevent fatigue-related accidents during long-haul transportation by


alerting drivers when drowsiness is detected.

 Night Shift Workers

 Useful for cab, ambulance, or delivery drivers working late hours when
sleepiness is more common.

 Public Transport Vehicles

 Can be implemented in buses or trains to monitor drivers and improve


passenger safety.

 Personal Cars (for Highway Driving)

 Assists drivers on long road trips or highway drives where monotony


increases the risk of micro-sleep.

 Driver Training Institutes

 A safety feature for learners who might lose focus or feel tired during long
driving sessions.

 Industrial Machinery Operators

 Can be adapted to monitor machine operators working in hazardous


environments to ensure they remain alert.

 Fleet Management Systems


 Fleet managers can integrate this system with GPS/GSM modules to track
driver behavior and prevent risky driving due to fatigue.

Limitation for Anti-Sleep Alarm:


1. Limited Accuracy of IR Sensors
o IR sensors may give false readings in bright sunlight or if not
positioned correctly on the glasses.
2. Not Effective for Sunglass or Spectacle Users
o The system may struggle to detect eye closure if the user wears dark
or reflective lenses.
3. No Real-Time Data Logging or Alert to Others
o The basic version doesn’t store data or notify emergency contacts in
case of sleep detection.
4. Fixed Threshold (No Personalization)
o The 3-second delay is hardcoded and may not suit all users. Some
drivers may fall asleep even with shorter eye closures.
5. Not a Substitute for Rest
o It alerts a sleepy driver but doesn't solve fatigue itself. It's a temporary
safety measure, not a solution.
6. Battery-Powered – Limited Runtime
o Using 9V batteries limits usage time unless connected to a vehicle’s
power supply or USB source.
7. Can Be Ignored or Misused
o Drivers might turn off the buzzer or remove the glasses, bypassing the
system entirely.

Conclusion
The anti-sleep alarm system is a valuable tool for driver safety, particularly on long
drives. Using just a few electronic components and Arduino Nano, this project
detects drowsiness in real time and provides an immediate warning to prevent
accidents. It’s a great combination of electronics, safety innovation, and wearable
technology.

You might also like