tripWire

IMG_2039
tripWire

Here is a wire you can not trip on.

 

Replace the ‘wire’ with a laser.

 

A photocell is the target for the laser pointer:

IMG_2035
Laser pointer
Photocell
Photocell

 

 

 

 

 

 

 

 

 

 

When the laser lands on this voltage divider target, the voltage measured at the Arduino is below the threshold, and the alarm is silent. But when the laser does not hit its intended target, the voltage is above the threshold, and the alarm sounds.

The sound is generated from the Arduino itself using the tone() function. The output (audio) is connected to a piezo speaker mounted to the top of the enclosure. The red momentary button resets the alarm if it has been triggered. It also tests the speaker to allow the user to set the audio level.

IMG_2043
Inner workings

 

Three signals are needed outside the enclosure: +5V, ground, and the sensor’s output. The unit is designed to be indoors, with the sensor and laser pointer outside, so a standard, three conductor extension cord is used to travel the ~30m between the devices.

XLR adaptor
XLR adaptor

 

In the following demo, the audio level is set (button and potentiometer), the alarm is tripped, then reset (button).

 

 

CODE: