Laser Maze Security System

26,952

69

28

About: Love simple robotics, electronics, sensors, arduino projects and generally building, modifying and opening up stuff
This is an Instructable that tells you how to make a laser tripwire or laser maze, just like in the movies!

All you need:

* Arduino 
* Buzzer/alarm/Led
* Led (optional)
* 1 resistor (any value)
* 1 LDR
* Laser pen
* A box to house the entire set up.
* Some tape

See it in Action:

http://www.youtube.com/watch?v=74KYPlzEGqc


http://www.youtube.com/watch?v=56aGdz3GAW0

Step 1: Step 1

*  Attach the resistor to A0 and Gnd pins.
* Attach LDR to A0 and 5 V pins.
* Place an LED with longer side in pin 7 and shorter side in pin 6.
* Also place the buzzer with longer side in pin 11 and shorter side in Gnd pin.

Step 2: Step 3:

*Place the contraption in the box (to make it look neat as well as keep it hidden )

*Upload the following program on arduino:

///PROGRAM STARTS FROM BELOW

int sensorPin = A0;  
int sensorValue = 0;
int buzzPin=11;

void setup() {
    pinMode(buzzPin, OUTPUT);
  pinMode(sensorPin, INPUT);
  pinMode(7, OUTPUT);
  pinMode(6, OUTPUT);
  digitalWrite(7,HIGH);
  digitalWrite(6,LOW);
  delay(5000);
  digitalWrite(7,LOW);
}

void loop() {

  sensorValue = analogRead(sensorPin);   
if(sensorValue<=500)
{digitalWrite(buzzPin, HIGH);
delay(3000);}
else
{digitalWrite(buzzPin, LOW);}
sensorValue=1000;
}



*Now tape the button on the laser to keep it on.
*Finally place the laser away from the box and make sure that its light is concentrated on the LDR.

Step 3: FINALLY!!

POWER UP AND ENJOY!!

You can add mirrors to form a maze by reflecting the laser light. 
You can also place this in front of a door or window and it will act like an alarm if the door or window opens.
It can also be placed across the ends of a room and be used as a motion sensor

To actually see the laser light ( like in the photo) all you have to do is shroud the room in smoke. The laser light can be seen in smoke.
 If you liked this Instructable, please follow me and view my other instructables.

Feel free to ask any doubts and please give me feedback and other suggestions.

Thank you.

Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Sensors Contest

      Sensors Contest
    • Games Contest

      Games Contest

    28 Discussions

    0
    None
    asafwat4

    7 weeks ago

    What if i want to make it moving laser ?

    0
    None
    phoenix708

    2 years ago

    I am trying to use your idea for one of our escape rooms. the code verifies. The led lights up, and then goes off. I am using a red gun laser for testing purposes. When I break the beam nothing happens. I have tried changing the sensor variables but it still doesn't work. I have also tried 2 different photo cells. Is there a way to see if the Arduino is getting input from the photocell? Any help is appreciated.

    Steve

    0
    None
    RishabhS26

    3 years ago

    what if i want to add a 12v buzzer

    ???? pplz help

    0
    None
    RishabhS26

    3 years ago

    what if i want to add a 12v buzzer

    ???? pplz help

    0
    None
    RishabhS26

    3 years ago

    please please please tell me please that why have you written 'resister(any value)'........I am getting confused , why 'ANY VALUE' ? ??????? ? ? ? ? ?

    0
    None
    sandeepnelavala

    3 years ago

    what power of laser should i us so that they can see the laser path also

    0
    None
    skulljo

    4 years ago

    I will try to make it to dude

    0
    None
    skulljo

    4 years ago

    I will try to make it to dude

    0
    None
    skulljo

    4 years ago

    I will try to make it to dude

    0
    None
    skulljo

    4 years ago

    I will try to make it to dude

    0
    None
    skulljo

    4 years ago

    I will try to make it to dude

    0
    None
    skulljo

    4 years ago

    I will try to make it to dude

    0
    None
    skulljo

    4 years ago

    I will try to make it to dude

    0
    None
    skulljo

    4 years ago

    I will try to make it to dude

    0
    None
    CharanCehadiddiansyah

    Reply 4 years ago on Introduction

    Make sure that all the connections are correct.If so use a 10K resistor which will help you give better results..I think this helped.