Anti sleep Alarm system for driver’s project

by | Dec 7, 2023 | Arduino Projects | 0 comments

Feature Post!
Anti sleep Alarm system for driver’s project

Anti sleep Alarm system project

Anti sleep Alarm system for driver’s project

In this article we will learn how to make Anti sleep Alarm system for driver’s project. In the last post, we discussed about Final year Electrical Engineering projects.

You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.

 

Components:

  1. Arduino nano
  2. LCD display (16×2)
  3. Eye blink sensor
  4. Battery (9V)
  5. Push button
  6. DC motor
  7. Buzzer
  8. Relay module
  9. Connecting wires

About Anti alarm system:

An anti-sleep alarm system for drivers is a safety device designed to prevent drowsy driving by alerting the driver when signs of drowsiness are detected.

There are several types of anti-sleep alarm systems available some of write down.

  • Wearable Devices:

These devices are worn by the driver and typically monitor the driver’s movements or physiological signs. They can include headbands, wristbands, or glasses equipped with sensors that detect changes in head position, eye movements, or heart rate. When signs of drowsiness are detected, the device sends alerts such as vibrations, sounds, or visual cues to wake up the driver.

  • In-Car Systems:

Some vehicles come equipped with built-in anti-sleep alarm systems. These systems use various sensors placed within the car to monitor the driver’s behavior, such as steering patterns, lane deviations, or erratic driving. When the system detects signs of drowsiness or inattentiveness, it triggers alarms, such as audible alerts or seat vibrations, to alert the driver.

  • Mobile Apps:

There are also mobile applications available that use Smartphone sensors, such as the front-facing camera or accelerometer, to monitor the driver’s face, eye movements, or driving patterns. These apps can issue alerts or alarms if signs of fatigue are detected.

Anti sleep Alarm system for driver’s project

Anti sleep Alarm system image

Amazon Links: 

Arduino Nano

Arduino UNO

LCD display 16×2

DC motor

Working:

An anti-sleep alarm system for drivers is a safety device designed to prevent drowsy driving by alerting the driver when signs of drowsiness are detected.

Circuit Connections:

  • Connect GND pin of buzzer with GND pin of Arduino through GND pin’s of Relay module, DC motor, 9v battery, and Eye blink sensor.
  • Connect +ve terminal of 9v battery with one terminal of Push button
  • Connect 2nd terminal of push button with VIN pin of Arduino
  • Connect 2nd terminal of DC motor with one out pin of relay module
  • Connect 2nd out pin of relay module with 5v pin of Arduino
  • Connect VCC pin of eye blink sensor with VCC pin of relay module
  • Connect D12 pin of Arduino with signal pin of Eye blink sensor
  • Connect D10 pin of Arduino with Signal pin of relay module
  • Connect D8 pin of Arduino with 2nd terminal of Buzzer
  • Connect D2 pin of Arduino with D2 pin of LD display
  • Connect D3 pin of Arduino with D3 pin of LD display
  • Connect D4 pin of Arduino with D4 pin of LD display
  • Connect D5 pin of Arduino with D5 pin of LD display
  • Connect D6 pin of Arduino with D6 pin of LD display
Anti sleep Alarm system for driver’s project

Anti sleep Alarm system circuit diagram

  Usages:

The usage of an anti-sleep alarm system is primarily for safety while driving.

Here are some specific ways in which these systems are used:

  • Preventing Accidents:

The primary purpose is to prevent accidents caused by drowsy driving. By detecting signs of driver fatigue or inattention, these systems can alert the driver, potentially avoiding a collision.

  • Enhancing Awareness:

Anti-sleep alarm systems help drivers become more aware of their state of alertness. Alerts, such as vibrations, sounds, or visual cues, prompt the driver to take necessary actions, like pulling over for a break or changing driving habits.

  • Improving Road Safety:

These systems contribute to overall road safety by reducing the risk of accidents due to drowsiness. They aim to keep drivers more alert and focused on the road, thereby reducing the likelihood of crashes.

  • Supporting Long Drives:

For long-haul truck drivers, night shift workers, or anyone undertakes extended journeys, anti-sleep alarm systems act as an additional safety measure to combat the increased risk of drowsiness during prolonged periods of driving.

  • Alerting Others:

In some cases, these systems can also notify passengers or others in the vehicle about the driver’s drowsiness, prompting them to take action, such as offering assistance or taking over the driving responsibilities.

Program code:

[dt_code]

#include <LiquidCrystal.h>

const int blinkPin = 12;
const int motorPin = 10;
const int buzzerPin = 8;
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
long time;

void setup() {
pinMode(motorPin, OUTPUT);
pinMode(buzzerPin, OUTPUT);
pinMode(blinkPin, INPUT);
digitalWrite(motorPin, LOW);

// Initialize the LCD
lcd.begin(16, 2);
lcd.clear();
lcd.print(“Anti-Sleep Alarm”);
delay(2000);
lcd.clear();
}

void loop() {

if(!digitalRead(blinkPin)){
time=millis();
while(!digitalRead(blinkPin)){
lcd.setCursor(0, 0);
lcd.print(“Alert: Awake”);
digitalWrite(buzzerPin, HIGH);
digitalWrite(motorPin, HIGH);
delay(1000);
}
}
else {
lcd.setCursor(0, 0);
lcd.print(“Alert: Asleep”);
if(TimeDelay()>=3)digitalWrite(buzzerPin, LOW);
if(TimeDelay()>=4)digitalWrite(motorPin, LOW);
}
}

int TimeDelay(){
long t=millis()-time;
t=t/1000;
return t;
}

[/dt_code]

pcb way

pcb way

PCB Assembly Service

our pcb 2

L298 Motor Driver Simulation in Proteus

L298 Motor Driver Simulation in Proteus

pcbway


Notice: ob_end_flush(): Failed to send buffer of zlib output compression (0) in /home1/project3/public_html/wp-includes/functions.php on line 5373