IoT Assn 1
IoT Assn 1
CIRCUIT DIAGRAM
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;
…..THANK YOU…..