Electronic – Best way of making a trip-wire type device

infraredlasermotionrange-detector

I'm wanting to make a type of electronic "trip wire".

My basic idea is to have like a laser and basically when the laser is interrupted then it sends some signal to a microprocessor.

I'm not tied to a laser but it was the first thing that comes to mind. The attributes it needs to have is it needs to be only like a "wire"(as in, it doesn't detect motion anywhere but head on) and it needs to be low power(like run for a few days at least off of 2 AAs). Also, an actual wire is out of the question because it needs to be capable of being "reset" after a certain time out(of say 1 second or so) The range it needs to work with is only 5 or 10 feet though. Also, it's not possible to have two parts to this device like a typical laser-photodiode setup. This needs to be contained all in one (preferably small) package.

What is my best bet with this? I was thinking maybe super-sonic sound like this but I think there would probably be a better way.

So basically what I have in mind for the device is like when you first set it up, you "calibrate" it for a certain distance. So for instance if there is a wall five feet in front of it, then this device would work if there was anything that came head-on with it in 5 feet. And etc.

Best Answer

There are multiple options for such a thing.

  1. Ultra sonic sonar
  2. PIR sensor, used in security systems

Your best bet I think is to use a PIR sensor like this one.