SreekarAV
Published

Arduino camera theft alaram

This project helps when any of the indoor cc cameras are covered with a blanket it beeps & tells that there's a thief in house.

BeginnerShowcase (no instructions)443
Arduino camera theft alaram

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
LDR, 5 Mohm
LDR, 5 Mohm
×1
Buzzer
Buzzer
×1
Breadboard (generic)
Breadboard (generic)
half size is also ok.
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Through Hole Resistor, 220 kohm
Through Hole Resistor, 220 kohm
×1

Story

Read more

Schematics

schematics

use fritzing to open .fzz files or if you don't have that you can use .jpg file given below to open the schematics.

Code

arduino code

C/C++
const int buzz = 13;
int sensorvalue = 0;
void setup()
{
Serial.begin(9600);
pinMode(buzz, OUTPUT);
}
void loop()
{
sensorvalue=analogRead(A0);
if(sensorvalue<200)
{
digitalWrite (buzz, HIGH);
delay (500);
digitalWrite (buzz,LOW);
}
else if(sensorvalue>200)
{
digitalWrite(buzz, LOW);
delay(200);
}
Serial.println(sensorvalue);
delay(20);
}

Credits

SreekarAV

SreekarAV

1 project • 1 follower

Comments