Professional Documents
Culture Documents
Iot Based Accident Prevention System Using Eye Blink Sensor-2
Iot Based Accident Prevention System Using Eye Blink Sensor-2
Iot Based Accident Prevention System Using Eye Blink Sensor-2
1
TABLE OF CONTENT
ABSTRACT 3
1 INTRODUCTION
1.1 Introduction 5
1.2 Objectives 6
2 COMPONENTS REQUIRED 7
2.1Arduino Nano
2.2 Ultrasonic Sensor
2.3 Buzzer
2.4 breadboard
2.5 jump wires
3 Circuit diagram 14
4 Flow chart 16
5 Working 17
6 APPENDEX 18
7 Advantages 20
8 Disadvantages 21
9 conclusion 22
2
ABSTRACT
3
4
1. INTRODUCATION
1.1 INDRODUCTION
In Security has always been a major concern for all of us and there are
many Hi tech and IoT based security and surveillance system are available
in the market. Intruder or Burglar Alarm is one of the classic and popular
project among the Electronics students and hobbyists. We have also built
many Burglar Alarms based on various technologies.
Today we are adding one more Security Alarm in our list which
is based on Ultrasonic Sensor. This Arduino Controlled Door alarm can be
installed near the door to detect the presence of anybody at the door.
Whenever somebody comes in the range of Ultrasonic sensor, buzzer
starts beeping. You can adjust the sensor detection range according to
your door. This system can also serve the purpose of Motion
Detector.Ultrasonic sensor HC-SR04 is used here to detect the presences
of any person at the door. The sensor module consists of ultrasonic
transmitter, receiver and the control circuit. Ultrasonic Sensor consists of
two circular eyes out of which one is used to transmit the ultrasonic wave
and the other to receive it
5
1.1OBJECTIVES
Reducing incident rates by maintaining safe and
healthy conditions and standards.
Reducing property loss.
Administering training program that increase
awareness of safety and health on a regular basics.
6
2.COMPONENTS REQUIRED
SNO
COMPONENTS QTY
1 Arduino nano 1
2 Ultrasonic sensor 1
3 Buzzer 1
4 Breaadboard 1
5 Jumper wires 1
7
2.1 ARDUINO NANO
8
2.2 Ultasonic sensor
9
2.3 BUZZER
10
2.4 Breaadboard
11
2.5 LED
LED is an semiconductor light source. LED is a separate
diode form and has certain electrical features of the PN
junction diode. The LED therefore allows the current to flow
forward and blocks the energy flowing in the opposite
direction. The LED takes up less than 1 mm in the field. LED
technology used to perform various electrical and computer
function
12
3.CIRCUIT DIAGRAM
After that, make the connections for the buzzer and the Arduino.
Connect the positive pin on the buzzer with pin 10 on the Arduino and
the buzzer's negative pin with the GND pin on the Arduino
13
14
4.FLOW CHART
15
5.WORKING
The ultrasonic sensor emits an ultrasonic wave from the trigger
which comes back after hitting the object and it is received by the echo.
The echo will then tell us the distance traveled in microseconds. To send
an ultrasonic wave from the trigger, we will have to set the trigger high
for 10us. This will send an 8 cycle sonic burst at 40 kHz which will hit the
object and is then received by the echo.
S=v*t
We have the value of t and we know that the speed of a sound wave is
340m/s. We have to convert the speed of sound into cm/us to calculate
the distance. The speed of sound in cm/us is 0.034cm/us. The equation
now will become .
S = (0.034 * t)
S = (0.035 * t)/2
We will get the distance value using the equation above and after that,
we will set a value which will help us make the buzzer high or low.
16
6.APPENDEX
PROGRAM:
int trigger_pin = 2;
int echo_pin = 3;
int buzzer_pin = 10;
int time;
int distance;
void setup ( ) {
Serial.begin (9600);
pinMode (trigger_pin, OUTPUT);
pinMode (echo_pin, INPUT);
pinMode (buzzer_pin, OUTPUT);
void loop ( ) {
digitalWrite (trigger_pin, HIGH);
delayMicroseconds (10);
digitalWrite (trigger_pin, LOW);
time = pulseIn (echo_pin, HIGH);
17
distance = (time * 0.034) / 2;
18
7.ADVANTAGES
It can be used in wireless technology
Detection without physical contact
Compact size and low cost
High sensitivity
Large measuring range
19
8.DISADVANTAGES
Atmospheric movements
Low angular measurement
Difficult to manipulate acoustic beams
Slow reaction
Temperature changes sensing accuracy
20
9.CONCLUSION
People are increasingly exposed to dangers today. Therefore,
we need to take action against this as an engineer and have the
solution we need. Any automation is designed to protect a
person. Working the Arduino door alarm is very easy.
Whenever anyone comes in the range of ultrasonic sensor.
Microcontroller detects the distance of object from the sensor
and if the object is I defined range, it sends the high signal to
the buzzer and buzzer starts beeping
21
22