Laser Anti-theft Device

by bluepuppet1103 in Circuits > Arduino

207 Views, 0 Favorites, 0 Comments

Laser Anti-theft Device

image.jpg

There are so many thieves like to invade other people’s house and steal their things which is very valuable when the people are sleeping, so I create this device to solve this problem.

Supplies

big box*1

small box*1

resistance*3

solderless breadboard*1

Arduino Leonardo*1

Piezo buzzer*1

wire*20≤

Tools to cut and paste*1≤

Laser pointer*3

Photoresistance*3

A4 size paper*1

Connect the Components

B856081B-89E2-4D7B-8284-606BF7212252.jpeg
A03E8D48-8BB4-4E05-B166-45475F2E111E.jpeg

Put all the components in their location as the image above

Type the Code

void setup(){ // put your setup code here, to run once: Serial.begin(9600); // opens serial port, sets data rate to 9600 bps}void loop(){ // put your main code here, to run repeatedly: Serial.print(analogRead( A2 )); //print message Serial.print(" "); //print a blank Serial.println(); if ( analogRead( A2 ) < 700 ) { for (int i = 0 ; i < 10 ; ++i ) { tone(11, 1976, 200); //buzzer or speaker frequency delay( 300 ); // waits a few milliseconds tone(11, 1976, 200); //buzzer or speaker frequency delay( 600 ); // waits a few milliseconds } } Serial.print(analogRead( A3 )); //print message Serial.print(" "); //print a blank Serial.println(); if ( analogRead( A3 ) < 550 ) { for (int i = 0 ; i < 10 ; ++i ) { tone(11, 1976, 200); //buzzer or speaker frequency delay( 300 ); // waits a few milliseconds tone(11, 1976, 200); //buzzer or speaker frequency delay( 600 ); // waits a few milliseconds } } Serial.print(analogRead( A1 )); //print message Serial.print(" "); //print a blank Serial.println(); if ( analogRead( A1 ) < 800 ) { for (int i = 0 ; i < 10 ; ++i ) { tone(11, 1976, 200); //buzzer or speaker frequency delay( 300 ); // waits a few milliseconds tone(11, 1976, 200); //buzzer or speaker frequency delay( 600 ); // waits a few milliseconds } }

image.jpg
image.jpg
image.jpg
6E2CA900-8D1D-43BF-888A-90DD1D3A8B6A.jpeg
image.jpg
7AC0CAC4-6EA0-4403-8B9A-6D2DC12F3080.jpeg

1. Glue two boxes

2. Put all the supplies at their location as the image

3. Test it

Pros and Cons

Pros:

1. It solves the problem

2. it is more difficult for thieves to steal your things when you are sleeping

3. It will help the people who live in small houses and let them learn to prevent thieves.

Cons:

1. It only worked when you are home

2. It is useless when you are not at home