Self Calibrating Laser Trip Wire

by wfoster6 in Circuits > Arduino

4508 Views, 68 Favorites, 0 Comments

Self Calibrating Laser Trip Wire

DSC_0186 - Copy.JPG
arduino laser trip wire

this is my tutorial on how to make a self calibrating laser trip wire .

WARNING lasers are super bright and will blind you. so don't use them were there are kids or in public spaces!!!

What You Need

DSC_0178.JPG
DSC_0180.JPG
DSC_0185.JPG
DSC_0176.JPG
DSC_0179.JPG

  • Arduino (any should work)
  • 5v buzzer (if you buy one that uses pwm you will have to change the code a little)
  • laser (i'm using one from adafruit)
  • 10k resistor
  • and a photo resistor

Wiring

Untitled Sketch_bb.png
DSC_0186 - Copy.JPG

not a lot to say about the wiring, just copy the diagram

Coding

DSC_0184.JPG

download and run the arduino code, to program the board

Downloads

Calibration

DSC_0186 - Copy - Copy.JPG

the arduino calibrates itself at start up and when you press the reset button.

to calibrate it, align the laser beam up with the sensor like so.

then press the reset being careful not to move the laser or the board.

done, now the system should be armed. you can test it by braking the beam with you hand.

does the buzzer trigger? if so you have correctly set up the system!

Mounting

DSC_0190.JPG
DSC_0191.JPG

ounce you have it working you can mount it using blu-tack .

it works best inside or in the dark. it will not work in direct sunlight because it will over power the laser beam giving false readings.

Taking This Project Further

you can take this project further by bouncing the beam around using mirrors to make a massive laser grid.

or reprogramming it to count the number of people walking though,

or even use it for a automatic nerf gun trap!