Radar Guard System

by anuchouhan1074 in Circuits > Arduino

34 Views, 0 Favorites, 0 Comments

Radar Guard System

radar 6.0.jpeg

A radar guard system works on the principle of the Radar, where radio waves are transmitted into the environment. When these waves hit an object (like a person or vehicle), they reflect back to the receiver. By analyzing the reflected signals, the system can detect the presence, distance, and movement of the object.A Radar Guard System is a security and surveillance system that uses radar technology to detect and monitor objects or intruders within a specific area. It is commonly used for protecting borders, buildings, restricted zones, and even smart home environments.

Supplies

resistor image.jpg
  1. Arduino uno
  2. Buzzer
  3. LED
  4. Resistor
  5. Jumper wires
  6. Ultrasonic sensor
  7. Servo motor
  8. LCD-I2C display
  9. USB cable
  10. Breadboard

Step1

radar 1.jpeg

To Connect First LED to a Breadboard Using an Arduino Uno:-

  1. positive leg - D2

Step 2

radar 2.jpeg

To Connect Second LED to a Breadboard Using an Arduino Uno:-

  1. positive leg - D3


Step 3

radar3.jpeg

To Connect a Buzzer to a Breadboard Using an Arduiono Uno:-

  1. Buzzer - D4


Step4

radar 4.jpeg

to connect a servo motor to Arduino uno:-

  1. Brown color (GND) - GND
  2. Red color (VCC) - 5v
  3. Yellow color(output) - 6

Step 5

radar guard system.jpeg

To connect a servo motor to an arduino uno:-

  1. VCC - 5v
  2. GND - GND
  3. Trig - D9
  4. Echo -D10


To Connect an Ultrasonic Sensor to a Breadboard Using an Arduino Uno

radar 6.jpeg

To Connect an Ultrasonic Sensor to an Arduino Uno:-

  1. VCC - 5V
  2. GND - GND
  3. SDA - Analog pin 4
  4. SCL - Analog pin 5


Code


#include <Wire.h>

#include <LiquidCrystal_I2C.h> // Installed library for LCDI2C display

#include <Servo.h> // Installed Library for servo motor


#define TRIG_PIN 9

#define ECHO_PIN 10

#define GREEN_LED 2

#define RED_LED 3

#define BUZZER 4

#define SERVO_PIN 6


LiquidCrystal_I2C lcd(0x27, 16, 2); // Adjust if needed

Servo myServo;


int pos = 0;

int direction = 1; // 1 = forward, -1 = backward


void setup() {

pinMode(TRIG_PIN, OUTPUT);

pinMode(ECHO_PIN, INPUT);

pinMode(GREEN_LED, OUTPUT);

pinMode(RED_LED, OUTPUT);

pinMode(BUZZER, OUTPUT);

myServo.attach(SERVO_PIN);

myServo.write(pos);

lcd.begin(16,2);

lcd.backlight();

lcd.setCursor(0, 0);

lcd.print(" Sonar System ");

delay(2000);

lcd.clear();

}


long readDistance() {

digitalWrite(TRIG_PIN, LOW);

delayMicroseconds(2);

digitalWrite(TRIG_PIN, HIGH);

delayMicroseconds(10);

digitalWrite(TRIG_PIN, LOW);

long duration = pulseIn(ECHO_PIN, HIGH);

return duration * 0.034 / 2;

}


void loop() {

long distance = readDistance();


if (distance > 20 || distance == 0) {

// No object detected

digitalWrite(GREEN_LED, HIGH);

digitalWrite(RED_LED, LOW);

digitalWrite(BUZZER, LOW);


lcd.setCursor(0, 0);

lcd.print(" Area is Empty ");

lcd.setCursor(0, 1);

lcd.print(" ");


// Move servo faster (delay reduced)

myServo.write(pos);

delay(10);

pos += direction;


if (pos >= 180 || pos <= 0) {

direction = -direction;

}

} else {

// Object detected

digitalWrite(GREEN_LED, LOW);

digitalWrite(RED_LED, HIGH);

digitalWrite(BUZZER, HIGH);


lcd.setCursor(0, 0);

lcd.print(" Warning ");

lcd.setCursor(0, 1);

lcd.print(" Foreign Body ");


// Hold servo in place

myServo.write(pos);

}

}

Downloads

Working

radar 6.jpeg
radar 6.0.jpeg

When the ultrasonic sensor detects an object, the LCD I2C display shows “Warning,” the red LED turns on, and the buzzer is activated. When no object or human is detected by the ultrasonic sensor, the display shows “Area is empty,” and the green LED blinks.

Downloads

Advantages

  1. Works in All Weather Conditions

It can operate in rain, fog, and darkness, unlike cameras.

  1. Long-Distance Detection

It can detect objects from a considerable distance.

  1. Non-Contact Detection

Based on the principle of Radar, it detects objects without physical contact.

  1. Real-Time Monitoring

Provides continuous and instant detection of movement.

  1. High Accuracy

Gives reliable results for object detection and distance measurement.

  1. Improves Security

Useful for protecting homes, borders, industries, and restricted areas.

  1. Low Maintenance

Requires less maintenance compared to many other systems.

  1. Easy Integration

Can be easily integrated with systems like Arduino Uno, alarms, LEDs, and displays.


Applications

  1. Border Security

Used by military forces to detect intruders at national borders.

  1. Home Security Systems

Helps in detecting unauthorized entry in houses and apartments.

  1. Airport Surveillance

Used for monitoring aircraft movement and runway safety.

  1. Industrial Safety

Protects restricted areas in factories and industries.

  1. Traffic Monitoring

Helps in detecting vehicles and managing traffic flow.

  1. Smart City Projects

Integrated into modern systems for surveillance and automation.

  1. Parking Assistance Systems

Detects nearby objects while parking vehicles.

  1. Defense and Military Use

Widely used in systems based on Radar for tracking and surveillance.


Conclusion

The Radar Guard System is an effective and reliable solution for security and surveillance applications. It works on the principle of Radar to detect objects and monitor movement in a given area. In this project, components like the Arduino Uno and an ultrasonic sensor are used to create a simple and low-cost system.

The system successfully detects the presence of an object or human and provides alerts through a buzzer, LEDs, and an LCD display. It improves safety by giving real-time warnings and can be used in homes, industries, and restricted areas.