3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Hacking a PIR motion sensor for use as a triggering device.

Hacking a PIR motion sensor for use as a triggering device.
«
  • IMG_3384.JPG
  • IMG_3048.JPG

This hack will allow you to create a motion sensing electrical switch


You can use this to trigger electrical devices from solenoids to motors to cameras.

 
Remove these adsRemove these ads by Signing Up
 

Step 1What you will need

What you will need
«
  • IMG_3067.JPG
  • IMG_3048.JPG
  • IMG_3051.JPG
  • IMG_3054.JPG
Along with basic soldering skills...

You will need a PIR motion sensor mine is from a defunct home alarm.
A small relay, preferably 12V DC coil type.
A transistor NPN type I used a 2N3904
A diode for inductive suppression I used a 1N4001
Stranded wire, Discarded network cable will work in a pinch
12V DC power supply ( Check the requirements of the sensor)

« Previous StepDownload PDFView All StepsNext Step »
17 comments
Oct 7, 2011. 12:04 AMsolaralternatives says:
Hmm, I wonder how those motion sensors from defunct outdoor spotlights would work?
Oct 10, 2011. 4:42 AMlickydog says:
Heh, they work *really well* - I once had a cat problem, with them tearing into our rubbish bags at night in our back garden. As the floodlight PIRs use mains current to drive the lamps, I just hooked one up to a washing machine solenoid valve, through to a hosepipe with a jet nozzle.

Set up carefully, the PIR was activated by the cats, which opened the water flow for a 10 second jet of icy water at cat height.

The cats got the message after a couple of weeks (and I got wet ankles more than once, forgetting to shut it off when I went out the back.)

As there was an existing floodlight in the garden, I set up a webcam on motion detection recording - the software I used tested the input values and began recording if there was a rapid change in the view. Got a *lot* of daytime cloud change triggered recordings, but (oh yes) about a dozen night-time visitors identified as the lamp came on. Nice to identify the culprits, and no ripped bags.

Note - I housed my unit in an earthed water-tight box, and used an RCD at the socket. Wish I'd known about Instructables way back then.
Apr 26, 2012. 6:58 PMreverbflange says:
That's awesome! haha, I love the things people create :)
Oct 7, 2011. 4:50 PMpfred2 says:
If you have a motion light you could always just screw one of these into it.
Dec 16, 2011. 11:15 PMchunk_change says:
I have an extremely similar if not the same PIR sensor as you do, i found that the RELAY terminals (mine are white and green) have continuity until the sensor is tripped that would be why the resistor is connected to the furthest terminal to remove the feed back that others have posted about when using an outside relay. makes sense to me. just thought i would let you know my findings maybe save you a little bit of work on your next one.
Oct 13, 2011. 3:43 PMaldente46 says:
I thought most PIR sensors like the one illustrated had relays in them already as their normal Alarm Output, all of the PIR's in my house do. Why not just use those contacts. If you need a higher current rating, use the existing low current contacts to switch on a larger relay to control your load and avoid the circuit hacking.
On a point raised by PFED2 , usually the mains switching light sensors have SCR or Triac electronic switches instead of relays and would be unsuitable for modification as the circuit board would be at lethal mains potential.
Oct 9, 2011. 2:02 PMDrJase says:
You might want to put a diode across the relay coil terminals to protect the transistor from the back EMF generated by the coil when it de-energises. But great instructable with so many possibilites....
Oct 10, 2011. 3:09 PMpanic mode says:
DrJase is correct about diode. some relays do have one built in (also some transistors but not small ones like 2N2904).

btw. using transistor in Common Collector configuration means that output voltage will be even lower than what you bring in (you only get current gain). In the video they show transistor in Common Emitter configuration which is optimal.

nice video, made me laugh:

http://www.youtube.com/watch?v=uIbkLjjlMV8
Oct 7, 2011. 12:38 AMsolaralternatives says:
Kewl.. I just noticed I had an error in my post. I meant to type"I wonder how well those.." (etc)
Oct 8, 2011. 6:10 AMFoxtrot70 says:
I am a former alarm tech. This PIR will work outside but, it is not weatherized and the electronics will suffer corrosion from moisture. The circuits on the board will also have limited performance when outside temps get to 32F or lower. The wide angle of sensing may cause false activations which is easily corrected by masking the PIR lense on the inside with black electrical tape to narrow the field of detection. Otherwise, I use one with a wireless trigger to function as a driveway alert to activate my door bell. No more unexpected visitors at the door.
Oct 9, 2011. 11:40 AMgaladriei says:
haha, love that idea! (visitor alerts)
Oct 9, 2011. 3:59 PMFoxtrot70 says:
You bet! Until you put in one of these (visitor alerts) there is nothing like being involved with someone and needing to run to the door in your shorts! LOL
Oct 9, 2011. 2:36 PMwh_hsn says:
You better add a revers biased diode parallel to the relay coil to prevent damaging the transistor from the kickback voltage during on/off cycles.
Oct 9, 2011. 2:39 PMwh_hsn says:
Sorry I didn't update the page before commenting - same as DrJase :S

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
193
Followers
43
Author:Random_Canadian
I seem to keep breaking things....