DIY Projects Lab
Published © CC BY-SA

Make Tripwire Security Alarm Using Arduino

Hey friends welcome back today in this articlei will show you how to Make Tripwire security Alarm using Arduino.

BeginnerFull instructions provided1 hour797
Make Tripwire Security Alarm Using Arduino

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Laser Diode, 2 Pins
Laser Diode, 2 Pins
×1
9V battery (generic)
9V battery (generic)
×1
LDR, 5 Mohm
LDR, 5 Mohm
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

circuit Design

Code

Code snippet #1

C/C++
//diyprojectslab.com
const int photo = 2;
const int Buzzer= 8;
void setup() 
{
pinMode(Buzzer, OUTPUT);
digitalWrite(Buzzer, LOW);
pinMode(photo, INPUT_PULLUP);
}
void loop() {//if/else loop checks if photoresistor is high or low
if(digitalRead(photo)==HIGH){
digitalWrite(Buzzer, HIGH);
}else{
digitalWrite(Buzzer, LOW);
}

Credits

DIY Projects Lab

DIY Projects Lab

49 projects • 152 followers
I am a DIY hobbyist by passion and an Electronics Engineer by profession. Sponsor (PCB Manufacturer) - www.nextpcb.com

Comments