0% found this document useful (1 vote)
101 views3 pages

IoT Assn 1

This document describes a door buzzer system using an ultrasonic distance sensor and Arduino. The system includes an Arduino Uno board, ultrasonic distance sensor, piezo buzzer, LED, resistors, and jumper wires. The sensor is connected to the Arduino to measure distance. If an object is detected within 10 cm, the buzzer and LED turn on to alert someone. The system has applications for security, as a touchless doorbell, and more. It could connect to a phone app for remote alerts. The code uses the sensor to measure distance and controls the buzzer and LED based on the 10 cm threshold.

Uploaded by

Prakriti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
101 views3 pages

IoT Assn 1

This document describes a door buzzer system using an ultrasonic distance sensor and Arduino. The system includes an Arduino Uno board, ultrasonic distance sensor, piezo buzzer, LED, resistors, and jumper wires. The sensor is connected to the Arduino to measure distance. If an object is detected within 10 cm, the buzzer and LED turn on to alert someone. The system has applications for security, as a touchless doorbell, and more. It could connect to a phone app for remote alerts. The code uses the sensor to measure distance and controls the buzzer and LED based on the 10 cm threshold.

Uploaded by

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

NATIONAL INSTITUTE OF FASHION TECHNOLOGY, MUMBAI

Introduction to Internet of Things


Assignment 1
Topic: DOOR BUZZER SYSTEM USING ULTRASONIC DISTANCE
SENSOR
Submitted by: PRAKRITI GORAI (BFT/19/75)
………………………………………………………………………………………………………………………………………………

CIRCUIT DIAGRAM

HARDWARES AND COMPONENTS


1. Arduino Uno r3 board
2. Piezo Buzzer
3. Ultrasonic Distance Sensor
4. Jumper Wires
5. Small Breadboard
6. Resistor 10 k ohm
7. Red LED

ASSEMBLY
• The ultrasonic distance sensor consists of 4 pins which are the Vcc pin, Trigger pin,
Echo pin and the ground pin.
• The ground pin of the sensor is attached to the ground pin of the Arduino board.
• The Vcc pin is connected to the 5V power pin of the Arduino board.
• The trigger pin and the Echo pin are attached to the D2 and D3 pins respectively.
• The negative pin of the buzzer is attached to the ground pin through the breadboard
and the positive is attached to the D10.
• A red colour LED is connected to the pin D13 of the Arduino.
Tentative Price of the Prototype: 1500-2000 INR

PRACTICAL RELEVANCE
a. This type of setup is mainly used for security purposes in Offices, Banks or Homes. If
anyone tries the open the doors outside the work hours or tries to break in, it will
make people alert.
b. It can be also used as touchless door bell, if the safe distance is increased.
c. This system can be used by the border security, by replacing the buzzer with a light as
sound might alert the security persons as well as the enemies.
d. The buzzer system can also be applied in the prison cell doors so as the make sure that
the prisoners don’t try to escape the cell.
SCOPE OF IMPROVISATION
• These buzzer systems if connected with a phone app, it can help the people get alert
even if the person is not around the buzzer.

ARDUINO CODING
int trigger_pin = 2;
int echo_pin = 3;
int buzzer_pin = 10;
int led_pin = 13;
int time;
int distance;
void setup()
{
Serial.begin (9600);
pinMode (trigger_pin, OUTPUT);
pinMode (echo_pin, INPUT);
pinMode (buzzer_pin, OUTPUT);
pinMode (led_pin, OUTPUT);
}
void loop()
{
digitalWrite (trigger_pin, HIGH);
delayMicroseconds (10);
digitalWrite (trigger_pin, LOW);
time = pulseIn (echo_pin, HIGH);
distance = (time * 0.034) / 2;

if (distance <= 10)


{
Serial.println (" Door Open ");
Serial.print (" Distance= ");
Serial.println (distance);
digitalWrite (buzzer_pin, HIGH);
digitalWrite (led_pin, HIGH);
delay (500);
}
else {
Serial.println (" Door closed ");
Serial.print (" Distance= ");
Serial.println (distance);
digitalWrite (buzzer_pin, LOW);
digitalWrite (led_pin, LOW);
delay (500);
}
}

…..THANK YOU…..

You might also like