Laser Maze Security System





Introduction: Laser Maze Security System

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:

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:


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

void setup() {
    pinMode(buzzPin, OUTPUT);
  pinMode(sensorPin, INPUT);
  pinMode(7, OUTPUT);
  pinMode(6, OUTPUT);

void loop() {

  sensorValue = analogRead(sensorPin);   
{digitalWrite(buzzPin, HIGH);
{digitalWrite(buzzPin, LOW);}

*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!!


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.



    • Oil Contest

      Oil Contest
    • Water Contest

      Water Contest
    • Creative Misuse Contest

      Creative Misuse Contest

    27 Discussions

    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.


    what if i want to add a 12v buzzer

    ???? pplz help

    what if i want to add a 12v buzzer

    ???? pplz help

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

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

    I will try to make it to dude

    I will try to make it to dude

    I will try to make it to dude

    I will try to make it to dude

    I will try to make it to dude

    I will try to make it to dude

    I will try to make it to dude

    I will try to make it to dude

    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.

    if one were to rig this so that it send a signal back to the program when tripped, instead of sounding a buzzer or turning on a light, how would one change the programming to do other things, such as turn on a webcam? or play back a certain audio file. I am not very familiar with arduino, maybe you know of a manual i could read to learn this?