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 ads by
Signing UpStep 1: What you will need
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)










































Visit Our Store »
Go Pro Today »




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.
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.
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