Laser Anti-theft Device

Introduction: Laser Anti-theft Device

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

Step 1: Connect the Components

Put all the components in their location as the image above

Step 2: 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 } }

Step 3:

1. Glue two boxes

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

3. Test it

Step 4: 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

Be the First to Share

    Recommendations

    • Hide It Challenge

      Hide It Challenge
    • Unusual Uses Contest

      Unusual Uses Contest
    • Edible Art Challenge

      Edible Art Challenge

    Comments