Introduction: Laser Tripwire

Picture of Laser Tripwire

When I first started trying to figure out how to build a tripwire i was able to find a lot of different ways to do it but they each had their flaws. Some were too complex, requiring ICs or Arduino. Some were simple but only stayed on while the beam was broken. Finally after experimenting with a variety of methods I came up with a simple laser tripwire that stayed on when the beam was broken.

Step 1: Materials

Picture of Materials

What You need:
4 100 ohm resistors
1 switching diode
3 transistors. I used 2n2222 but anything similar will work
1 photoresistor (LDR)
1 buzzer. you can also substitute an LED or anything else you want the Tripwire to set off

You will also need a breadboard, jumpers and a laser pointer for assembly

Sorry for the poor quality picture

Step 2: Assembly

Picture of Assembly

Assemble your tripwire as shown in the diagram. When you're done it should look something like the second picture. Make sure you connect the transistors in the right way or else it won't work.

Step 3: How It Works

Picture of How It Works

If you don't know a lot about electronics I would skip this step. it is just an explanation of how the tripwire works. If you are interested however, just follow along in this explanation.

The tripwire is divided into 2 parts. the part that detects the light and sends out the pulse and the "switch" that turns on the buzzer and keeps it on. The reason I have "switch in quotes is because it isn't something like a rocker or toggle switch that change the direction or allow current to pass. This switch simply keeps current flowing through it when it encounters a single pulse. The only way to turn it off is to disconnect it from power.

The first picture shows the Light Detector. When light (or a laser) is shining on the photoresistor the photoresistor alows current to pass. Since we want it to send a pulse when there is no light ( or when the laser beam is broken) we run it into an inverter or not gate. This makes it so that when light is shining there is no output current, but when there is no light there is current flowing through the output.

The second picture shows the switch. this is simply an arrangement of 2 not gates. when power comes into the first gate it stops current going to the second gate. the lack of power then causes the second gate to allow power to flow through to the load ( Buzzer LED ect.) and then acts as a second pulse at the first gate. This causes the cycle to start all over again thus keeping the circuit on.

Step 4: Your Done!

Just set it up so the laser is shineing on the photoresistor, conceal it, and sit back and relax as you watch people trip it.

Comments

FaizulI (author)2015-10-22

What is the out put voltage if i use a 6v battery, and a 9v battery(seperately)?

TMTOWTDI1093 (author)2015-10-01

It does not work for me....I understand and copied ur circuit connection like in the picture....but the buzzer start and did not stop when the voltage source is connected........even there is laser beam pointing in LDR.....i use PN2222 transistor instead of ur 2N2222....because i think they are the same....i really dont know what is wrong.....please help me

utkarsha5 (author)2015-09-17

Can u tell me which photo resistor to use? I will appreciate if you answer...
Thnk u

thebouljello (author)2015-08-05

can you use a 9v battery?

jperry38 (author)2014-03-15

I just build this and am having the same problem as evilgenius32. The only thing I did differently was use 2n2222a transistors. Any idea why it won't continuously buzz after the laser has been crossed?

mantovam (author)jperry382014-03-23

Jperry, same issue here, using the 2n2222. Not worked as described in Instructables.

I did some changes in the circuit with Yenka software and works well with a LED, but not with the Buzz. When I cut the laser beam, the LED turns ON and keep on. If I try with a Buzz, it works, but stop when the beam back.

If someone have some idea, follow my circuit below:

mantovam (author)mantovam2014-08-19

Jperry and others..

I solved the question. Just put a LED in parallel with BUZZ and will work.

see bellow my diagram.

stomer1 (author)2014-02-22

Hi mate, i made this week ago, but now I want to use a siren instead of pizo buzzer, so i connect the output wires to siren power inpit, but I heard a very low sound, i checked the output by multimeter, their it was showing 4 v, the problem is that it was showing enough power to sound the siren at full volume bcoz siren need only two 1.5 v aa battery, please help,

phantomboy (author)stomer12014-02-22

Chances are it's either hooked up incorrectly, or the circuit cannot source enough current to drive the siren. I have to imagine that the siren requires more current than a typical pizo. You might try hooking the siren up via a MOSFET to try to get it more current.

stomer1 (author)2014-02-07

Thnx mate, it works..

doodlee (author)2013-08-03

Can you post a youtube video link. Thank You.

doodlee (author)2013-07-30

@phantomboy Yes

doodlee (author)2013-07-29

Amazing tutorial dude! but when I connect everything and substitute an LED when the laser is not broken it glows and when the laser is broken the led glows. Please help
Thank You.

phantomboy (author)doodlee2013-07-29

Is the LED brighter when the beam is broken than it is when the beam is not?

laserdood88 (author)2013-07-28

Thanks a ton bro. i made it with an old cellular phone charger and it works like a dream

laserdood88 (author)2013-07-22

really helpful project there dude.but how do i do it if i have to connect it to AC power? cud u post a circuit diagram or smthing .That'd b really helpful. Appreciate it.

phantomboy (author)laserdood882013-07-22

There are several ways you could go about connecting it to AC power. The easiest way to do it is to find an old power supply for something and use that. It will have a big block looking thing that plugs into the wall and then a connector on the end (you probably have plenty of these things plugged in around your house). You can then either cut the connector and strip the wires or better yet, get a plug that fits the connector on the supply.

evilgenius32 (author)2011-07-15

DUDE!!! Awesome 'ible Made one myself but I had some problems. I put it together and it only stayed onn when the beam was broken. I was wondering what transistors you used and if you used different ones for each switch. Thanks for the ible again!

phantomboy (author)evilgenius322011-07-15

I used 2n2222 transistors for all the parts. You can use other NPN bipolar transistors instead as long as the power ratings are similar.

bakinkoljach (author)phantomboy2012-02-28

Why is so important to all transistor have similar power rating?
i used BC107A 240hfe ,BC107B 400hfe and BF182B 240hfe it does not work at all no Volts at buzzer at any time,and can i use cutted 2N3055 as solar cell instead of photo resistors?

evilgenius32 (author)phantomboy2011-07-15

Thanks, thats what I'm using. But do you have any ideas on why it won't stay on?

phantomboy (author)evilgenius322011-07-16

I have had this problem before but am still not 100 percent sure why it hapens. I would double check to make sure that the transistors are connected correctly with the emitters conected to ground. Sorry I cant be of more help.

evilgenius32 (author)phantomboy2011-07-17

Thanks anyway. Awesome Ible still, too bad I couldn't get it to work. :(

vishalapr (author)2011-07-07

Absolute brilliant!Rated 5*!Really cool!
Have a look at my ibles as well!

About This Instructable

17,195views

51favorites

License:

More by phantomboy:Serial Port Programming With .NETLaser Tripwire
Add instructable to: