Project
Project
1
Project Proposal Lab VI
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.
⚙️ 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
4.Optionally, the relay can be used to disconnect the vehicle's ignition or alert a
2. Close your eyes for more than 3 seconds – the buzzer should activate.
4. Observe the motor (optional demo vehicle) stopping when the buzzer is
Arduino Code(programing):
// PendTech
// Anti Sleep Alarm for Drivers using IR Sensor, Buzzer, and Motor
void setup() {
pinMode(sensorPin, INPUT);
pinMode(motorPin, OUTPUT);
pinMode(buzzerPin, OUTPUT);
digitalWrite(motorPin, HIGH); // Motor ON initially
void loop() {
if (eyesClosed) {
lastEyeCloseTime = millis();
} else {
if (elapsedSeconds >= 3) {
if (elapsedSeconds >= 4) {
}
}
Useful for cab, ambulance, or delivery drivers working late hours when
sleepiness is more common.
A safety feature for learners who might lose focus or feel tired during long
driving sessions.
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.