Antisleepalarm 230417034941 79209def
Antisleepalarm 230417034941 79209def
ENGINNERING
COLLEGE
SONBHADRA UN
ANTI SLEEP
ALARM
guidance
PK VERMA
PRESENTED BY:ADARSH SHUKLA
2
Content:
01 Introduction
02 Components Used
03 Circuit Diagram
04 Code
Introduction
╸ In modern-times, owing to hectic schedules it becomes very difficult to remain
active all the time. Imagine a situation where a person is driving home from work,
dead tired after facing all the challenges of the day. His hands are on the wheel
and foot on the pedal but suddenly he starts feeling drowsy, his eyes start
shutting and his vision blurs and before he knows it, he’s asleep. Falling asleep on
the wheel can lead to serious consequences, there may be accidents and people
may even lose their lives. This situation is much more common then we notice
and hence, it is very important to counter this problem. So to address this issue,
we have come up with a Driver Anti-sleep Alarm ⏰.
╸ This system Stops the user's car if he/she falls asleep at the wheel thereby, avoiding accidents
and saving lives. This system is useful, especially for people who travel long distances and people
who are driving late at night �.
4
COMPONENTS USED:
╸ Eye blink sensor
╸ Eye glass �
╸ Relay module
╸ Arduino nano
╸ 9V battery �
╸ Toy car remote
╸ Capacitor
╸ Wires
5
COMPONENTS USED:
╸ Ply board
╸ Gear motor with two tires
╸ Lock and key �
╸ Remote control car
╸ 5V relay
╸ 18650 battery �
6
CIRCUIT DIAGRAM:
Transmitter:
7
CIRCUIT DIAGRAM:
Receiver:
8
CODE:
#define Relay 13
#define buzzer A0
static const int sensorPin = 10;
// sensor input pin
int SensorStatePrevious = LOW;
// previousstate of the sensor
void setup() {
Serial.begin(9600); // Initialise
the serial monitor
Serial.println("Button pressed");
}
11
SensorOutDuration = currentMillis -
SensorLongMillis;
12
// If the sensor is released AND
// If the sensor was activated before
if (SensorState == HIGH && SensorStatePrevious ==
LOW) {
SensorStatePrevious = HIGH;
SensorStateLongTime = false;
digitalWrite(Relay,LOW);
digitalWrite(buzzer,LOW);
Serial.println("Button released");
if(digitalRead(sensor)==0)
{
digitalWrite(13,LOW);
digitalWrite(motor,HIGH);
}
else
{
delay(3000);
digitalWrite(a0
,HIGH);
digitalWrite(motor,LOW);
13
}
void loop() {
14
15