Arduino-Based Intruder Detection System
Arduino-Based Intruder Detection System
The hardware design impacts operational effectiveness in terms of detection range, speed, and accuracy. The inability of the servo motor to rotate 360 degrees limits detection coverage, while the sonar sensor's range constraints affect its adaptability to different environments. Improvements could include using a more capable servo for full rotation and integrating a more sensitive sonar sensor for a broader detection range, enhancing the system's overall efficacy .
The intruder detection system employs cost-effective components, such as the Arduino Uno R3, HC-SR04 sonar sensor, and SG90 servo motor, which are widely available and relatively inexpensive. This choice of components ensures the system is affordable while serving its intended purpose. Additionally, the use of a breadboard for connecting components simplifies assembly and reduces costs compared to custom printed circuit boards .
The alert mechanism of the intruder detection system consists of an active buzzer and a red LED. When the distance to an object is detected to be less than or equal to 30 cm, the system activates the buzzer and turns on the LED to alert users of an intruder. This condition is checked frequently as the sonar sensor scans in its specified degree range .
The intruder detection system can be applied in several areas: intruder detection for security, as a radar system, and for the protection of expensive items. Each application benefits from its ability to detect motion within a specific range using ultrasonic sensors, providing real-time alerts through sound and visual signals, which enhance security and can be used in surveillance .
The servo motor in the intruder detection system acts as an actuator for rotating the ultrasonic sonar sensor. It enables the sensor to sweep through angles from 50 to 130 degrees and back to its original position. During this rotation, the sensor calculates distance at the intervals of every 5 degrees, ensuring it detects objects in a broader sweep range .
The DHT library is essential for interfacing with the DHT11 temperature and humidity sensor, enabling the system to read current environmental conditions. The Servo library facilitates control over the SG90 servo motor, managing its rotation precisely to ensure the sonar sensor sweeps across the designated angular range for detecting intruders. These libraries abstract complex interfacing into simpler functions, aiding efficient system development .
The system cannot effectively detect fast-moving objects due to the relatively slow response time and the limited rotation range of the servo motor. Since continuous measurement for every degree would slow the servo, the system measures distance only at multiples of 5 degrees, from 50 to 130 degrees and vice versa, thereby facilitating quicker rotation while maintaining some level of accuracy. The limitation of the servo motor not rotating 360 degrees also affects full-range detection .
The system utilizes the DHT11 sensor to measure ambient temperature, which is used to calculate the velocity of ultrasonic waves, vital for accurately measuring distance. The formula used is velocity = 332 + (0.6 * temperature), adjusting the velocity of ultrasonic waves emitted by the sonar sensor according to the current temperature so that the distance measurements remain accurate irrespective of temperature fluctuations .
The components used in the intruder detection system include an Arduino Uno R3, an Ultrasonic sonar sensor HC-SR04, a Servo motor SG90, a Temperature and humidity sensor DHT11, an Active buzzer speaker, a Red LED, a 1/4w resistor, and a Breadboard with jumper wires. The Ultrasonic sonar sensor's VCC and GND pins connect to the breadboard's power rails, with the trig and echo pins connected to the 8th and 9th digital ports of the Arduino. The servo motor connects through its VCC, GND, and Pulse wires to the breadboard and the 5th digital PWM port of the Arduino. The DHT11 sensor interfaces with the 3rd digital pin of the Arduino. The active buzzer and LED connect through the 11th and 13th digital ports respectively, with the LED tied through a resistor .
Data processing begins with temperature readings from the DHT11 sensor, which adjust the ultrasonic wave velocity used by the sonar sensor to measure distances accurately. The sonar data is processed by measuring the time delay of ultrasonic waves to calculate distance. If an object is detected within 30 cm, the system triggers alerts via the buzzer and LED. This processing cycle repeats after every 500ms delay, allowing real-time operation while minimizing power consumption .