Arduino-Based Security Alarm
This security alarm is an easy-to-use, efficient product that can function anytime, and anywhere.
Devices & Components
5 mm LED: Green
Buzzer, Piezo
Rotary Potentiometer, 10 kohm
Alphanumeric LCD, 16 x 2
5 mm LED: Red
Ultrasonic Sensor - HC-SR04 (Generic)
Hardware & Tools
Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)
Servo Motor, Premium Male/Male Jumper Wires
Project description
Code
Arduino Security Alarm Code
c_cpp
Using this code, using various commands, I was able to code each sensor so that if the distance is 40 centimeters or lower, then the buzzer will sound along with the appearance of a red LED light. However, if the distance is greater than 40 centimeters, then the buzzer will not sound and then a green LED will show. I also displayed the distance on an LCD screen (also connected to the Arduino) to give the owner an insight of how far away the person is using this code.
Arduino Security Alarm Code
c_cpp
Using this code, using various commands, I was able to code each sensor so that if the distance is 40 centimeters or lower, then the buzzer will sound along with the appearance of a red LED light. However, if the distance is greater than 40 centimeters, then the buzzer will not sound and then a green LED will show. I also displayed the distance on an LCD screen (also connected to the Arduino) to give the owner an insight of how far away the person is using this code.
Downloadable files
Arduino Security Alarm Schematic
This is my Arduino Security Alarm Schematic. Using a website called Tinkercad.com, I was able to create a schematic of my project, which is a Security Alarm made from an Arduino Board.
Arduino Security Alarm Schematic

Comments
Only logged in users can leave comments