0% found this document useful (0 votes)
18 views8 pages

MES Report - Amritansh

This project develops a basic threat detection system using Arduino UNO and various components like ultrasonic sensors, buzzers, and LEDs. It detects objects within a specified distance and triggers alerts, demonstrating the application of microcontrollers in security systems. Future enhancements include wireless integration and the addition of a camera for advanced functionality.

Uploaded by

amritanshmin117
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 (0 votes)
18 views8 pages

MES Report - Amritansh

This project develops a basic threat detection system using Arduino UNO and various components like ultrasonic sensors, buzzers, and LEDs. It detects objects within a specified distance and triggers alerts, demonstrating the application of microcontrollers in security systems. Future enhancements include wireless integration and the addition of a camera for advanced functionality.

Uploaded by

amritanshmin117
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/ 8

Title: Threat Detec on Device Using

Arduino UNO

Submi ed by:
1. Amritansh Singh – 23070521013
2. Aman Shrikhande – 23070521010
3. Ved Bisne- 23070521035

Course: MES
Semester: IV
Submi ed to: Mohankumar Sir
Abstract:
This project aims to develop a basic threat detec on
system using an Arduino UNO, ultrasonic sensor,
buzzer, LED, and servo motor. The objec ve is to
simulate a mini defensive setup that detects an object
within a certain distance and responds accordingly. It is
a compact demonstra on of how microcontrollers can
be u lized in security systems.

1. Introduc on:
Threat detec on systems are vital in numerous fields
including defense, home security, robo cs, and
industrial automa on. This project simulates a basic
model of such a system using simple electronic
components and Arduino IDE for programming. It
detects if an object approaches a specific distance and
triggers a buzzer and LED alert.

2. Components Used:
 Arduino UNO R3
 Ultrasonic Sensor (HC-SR04)
 Buzzer (Ac ve)
 LED
 Jumper wires (male-to-male and male-to-female)
 Small Breadboard
 USB cable for Arduino
 Resistors (1.33 x 10^-3 ohms for LED)

3. Working Principle:
The ultrasonic sensor con nuously emits ultrasonic
waves and measures the me it takes for the waves to
bounce back a er hi ng an object. This dura on is
used to calculate the distance. If the object is within a
set threshold (e.g., 20 cm), the Arduino triggers the
buzzer, turns on the red LED, and the servo motor may
be set to rotate as a mock 'launcher' or alarm response.

4. Circuit Connec ons:


 Ultrasonic Sensor:
It emits ultrasonic waves and calculates the me
taken for the echo to return, allowing it to
measure distances accurately. It is commonly used
in obstacle detec on and ranging applica ons. In
this project, it con nuously checks if a target is
within firing range.
o VCC -> 5V on Arduino
o GND -> GND
o TRIG -> Digital Pin 9
o ECHO -> Digital Pin 10
 Buzzer

The buzzer acts as an audible alarm. When the


target is detected at a cri cal range, the buzzer
sounds to simulate a warning siren or alert tone,
enhancing the interac ve and aler ng feature of
the system.
o Posi ve -> Digital Pin 6
o Nega ve -> GND
 LED:

A red LED is used as a visual indicator. It remains


off when the system is idle and turns on to signal a
threat or ac ve firing mode. It helps to easily
iden fy the current status of the launcher.
o Anode -> Digital Pin 7 (via 1.33 x 10^-3 ohm
resistor)
o Cathode -> GND

5. Arduino Code:

#define trigPin 9
#define echoPin 10
#define buzzer 6
#define led 7
void setup() {
Serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(buzzer, OUTPUT);
pinMode(led, OUTPUT);
}

void loop() {
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);

long dura on = pulseIn(echoPin, HIGH);


int distance = dura on * 0.034 / 2;

Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm");

if (distance <= 20 && distance > 0) {


digitalWrite(buzzer, HIGH);
digitalWrite(led, HIGH);
delay(1000);
} else {
digitalWrite(buzzer, LOW);
digitalWrite(led, LOW);
}
delay(1000);
}

6. Applica ons:
 Used in automated defense mechanisms.
 Can be modified for home security alarms.
 Educa onal use in understanding sensors and
actuators.
 Basis for robo cs obstacle avoidance systems.
7. Conclusion:
This project provided a prac cal understanding of
ultrasonic sensors, microcontroller programming, and
electronic components like buzzers, LEDs, and servo
motors. Though basic, this prototype lays the
founda on for more complex autonomous security or
detec on systems.

8. Future Enhancements:
 Integra on with wireless modules for remote alert.
 Incorpora on of an LCD display for real- me
distance feedback.
 Addi on of a camera or facial recogni on module.
 Use of a relay for higher voltage actua on.

9. References:
 Arduino official documenta on (www.arduino.cc)
 Various online Arduino forums and tutorials

You might also like