Arduino-Based Security Alarm

This security alarm is an easy-to-use, efficient product that can function anytime, and anywhere.

Aug 14, 2019

1641 views

1 respects

Devices & Components

1

5 mm LED: Green

1

Buzzer, Piezo

1

Rotary Potentiometer, 10 kohm

1

Alphanumeric LCD, 16 x 2

1

5 mm LED: Red

1

Ultrasonic Sensor - HC-SR04 (Generic)

Hardware & Tools

1

Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)

1

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

Image

Comments

Only logged in users can leave comments

nithingarimella

0 Followers

0 Projects

0