You are on page 1of 9

NMIMS, MPSTME, Shirpur Campus

Computer Engineering Class: - MBA Tech (CE)


Semester: - IV Sem.
Subject: - Microprocessor and Academic Year: - 2023-24
Microcontroller

A
REPORT
ON
Social Distancing Detector

Prepared by

JENISH MEHTA(N274) AND 70472200296

Submitted To:
Prof. Mayank Kothari
Assistant Professor
SVKMs NMIMS MPSTME, Shirpur
NMIMS, MPSTME, Shirpur Campus
Computer Engineering Class: - MBA Tech (CE)
Semester: - IV Sem.
Subject: - Microprocessor and Academic Year: - 2023-24
Microcontroller

Index

1. Introduction

2. Block diagram and Circuit Diagram

3. Hardware component description

4. Software description

5. Result

6. References
NMIMS, MPSTME, Shirpur Campus
Computer Engineering Class: - MBA Tech (CE)
Semester: - IV Sem.
Subject: - Microprocessor and Academic Year: - 2023-24
Microcontroller

Introduction

Social Distancing-Social Distancing is


methodology in which humans stay away
from each other physically. For example, in
current COVID-19 situation it is being
followed widely, in order to prevent the
spread of the disease.

•Why do we need Social Distancing?


In order to slow down the spread of the such
virus we need some preventive measure. If
people don't come in contact with each other
the chances of the disease being transmitted
reduces at a significant level.
NMIMS, MPSTME, Shirpur Campus
Computer Engineering Class: - MBA Tech (CE)
Semester: - IV Sem.
Subject: - Microprocessor and Academic Year: - 2023-24
Microcontroller

Block and Circuit Diagram


NMIMS, MPSTME, Shirpur Campus
Computer Engineering Class: - MBA Tech (CE)
Semester: - IV Sem.
Subject: - Microprocessor and Academic Year: - 2023-24
Microcontroller

Hardware components
NMIMS, MPSTME, Shirpur Campus
Computer Engineering Class: - MBA Tech (CE)
Semester: - IV Sem.
Subject: - Microprocessor and Academic Year: - 2023-24
Microcontroller

SOFTWARE Description

Language used for the program of this project is C++. It is a very


versatile language which works well with Arduino Uno R3 and is best
for project of this kind. Loops are mostly used in coding for the
project as there are mainly conditions on which this project depends.

Code:
int pinSensor =2;
int pinLed =12;
int pinBuzzer =13;
int pirSensor =0;
void setup()
{
pinMode(pinSensor, INPUT);
pinMode(pinLed, OUTPUT);
pinMode(pinBuzzer, OUTPUT);
}
void loop()
{
pirSensor = digitalRead(pinSensor);
NMIMS, MPSTME, Shirpur Campus
Computer Engineering Class: - MBA Tech (CE)
Semester: - IV Sem.
Subject: - Microprocessor and Academic Year: - 2023-24
Microcontroller

if (pirSensor == HIGH)
{
digitalWrite(pinLed, HIGH);
tone(pinBuzzer, 1000, 500);
}
else {
digitalWrite(pinLed, LOW);
}
delay(10);
}

RESULT :-
NMIMS, MPSTME, Shirpur Campus
Computer Engineering Class: - MBA Tech (CE)
Semester: - IV Sem.
Subject: - Microprocessor and Academic Year: - 2023-24
Microcontroller
NMIMS, MPSTME, Shirpur Campus
Computer Engineering Class: - MBA Tech (CE)
Semester: - IV Sem.
Subject: - Microprocessor and Academic Year: - 2023-24
Microcontroller

References
From youtube and github.

You might also like