Burglar Alarm using PIR sensor

The Lights go ON, the buzzer starts to beep, the intensity is HIGH. You might have just caught a thief trying to break-in...

Feb 13, 2021

14451 views

4 respects

Components and supplies

1

Resistor 220 ohm

1

USB-A to B Cable

1

Solderless Breadboard Half Size

1

Buzzer

1

LED (generic)

1

Arduino UNO

1

PIR Motion Sensor (generic)

1

Jumper wires (generic)

Apps and platforms

1

Arduino IDE

Project description

Code

PIR_sensor_code.ino

c_cpp

Downloadable files

PIR, Buzzer, LED and Arduino

PIR, Buzzer, LED and Arduino

PIR, Buzzer, LED and Arduino

PIR, Buzzer, LED and Arduino

Comments

Only logged in users can leave comments

Anonymous user

2 years ago

There's an error in the initiation of the buzzer, I think. The line digitalWrite(Buzz, HIGH) should be replaced with the following three lines: tone(Buzz, 1000); // Send 1KHz sound signal... delay(1000); // ...for 1 sec noTone(Buzz); // Stop sound... After this adjustment, the buzzer works fine. This is a nice project for newbies. Thank you!

Anonymous user

2 years ago

There's an error in the initiation of the buzzer, I think. The line digitalWrite(Buzz, HIGH) should be replaced with the following three lines: tone(Buzz, 1000); // Send 1KHz sound signal... delay(1000); // ...for 1 sec noTone(Buzz); // Stop sound... After this adjustment, the buzzer works fine. This is a nice project for newbies. Thank you!

Anonymous user

3 years ago

i got it working but without buzzer or led to go off so well i didnt get it working fully