Motion Sensor Switched Output Hack
Oct 19th, 2008 by Scott
Yard-light motion sensors are a cheap and easy way to add some automation to your haunt. Just hook up power to the sensor, hook the output to an outlet, and you can control anything that runs on 120VAC. But what if you want to control something else? It turns out it’s pretty easy to modify these motion sensors so the output just acts like a normal switch or button. Here are some of the things you can control with a modded motion sensor:
- LED spotlights
- Any Halloween prop with a “Try Me” button
- CD / MP3 player
- Fog machine
- Air canon
- PowerPoint presentation
Basically if you can control it with a switch or a button, you can control it with a motion sensor.
What you need
- Yard-light motion sensor
- Screwdriver
- Soldering stuff
- Utility/Xacto knife
- Insulated wire
- Multi-meter
You don’t have to get fancy with the motion sensor. Good = $8 El-Cheapo unit from hardware store. Better = $0.25 unit you got from a garage sale (that’s how much I paid for the one in this example).
Take the motion sensor apart
First separate the sensor unit from whatever base / sockets it is hooked to. As you do so make a note of how everything is hooked up. You need to identify which color wire is what. Here is the scheme used by most sensors:
- White = Power In (Neutral)
- Black = Power In (Hot)
- Red = Switched Power Out
Also take note of which incoming power wire is connected directly to the flood lights. It will most likely be the white (neutral) one since the sensor switches the black (hot) one. I have seen sensors that switched neutral before though.
Now take apart the motion sensor itself and pull the board & wires out. How you do this will depend on the exact sensor you have.
Find the relay
Look at the component side of the circuit board. You need to find the relay (the part that acts like the switch). It’s usually a blue plastic box looking thing. It may be black or clear or some other color, but most of the ones I’ve cracked open had blue ones. Here is the relay in my sensor:

Now that you’ve located the relay, flip the board over and find all the solder connections that go to the relay.

Mine has four, but yours may have up to 8 or more.
Identify relay connections
Here is a simplified schematic of how the relay will be connected:
You’ll need to identify the following connections on your relay:
- Power in
- Switched power out
- Coil in (x2)
It shouldn’t be too hard. Here are some hints:
- The power in connection should go to one of the power in wires (most likely black, but maybe white)
- The switched power out connection will go to the red output wire
- The remaining connections are for the coil and probably go to a bunch of random circuitry. You don’t really need to worry about these.
Here are the connections on my sensor:
Cut the power
The first mod we need to do is to cut the power going through the relay without disrupting power to the rest of the circuitry. If the relay connection is at the opposite end of a trace from the power coming in then it’s simply a matter of cutting the trace right before the relay connection.
When you cut the trace, make two cuts then use the knife to peel up the copper in between. If you just make a single cut you run the risk of electricity arcing across the small gap.

The other possible scenario is that the relay will be in the middle of the trace, with power coming in one side and some circuitry connected on the other. In this case you’ll need to cut the trace on either side of the relay connection, then solder a jumper wire that bypasses the relay.
Add a second output wire
Now that there is no power going through the relay, we need to solder on an additional wire to the relay connection we just isolated.
Testing
That’s it for the modifications. Put everything back together.
You should now have a motion sensor with four wires coming out of it. The black and the white wires provide power to the sensor and should be connected to 120VAC. The red wire and the new one you added (purple on mine) are connected to the contacts on the relay. When the sensor detects motion, they are connected together. When it times out or sees no motion, they aren’t.
It’s very important that you test your newly modded motion sensor with a meter before you go connecting it to any of your equipment (just in case you didn’t successfully remove power from the relay).
Activate “Test” mode on your sensor if it has it (it will work even if it’s light in the room and only stay on for a very short period of time when it is triggered).
Hook the black and white wires up to power.
Set your meter for AC volts.
Trigger the motion sensor by waving your hand in front of it.
Check for voltage between the red wire and the white wire. There shouldn’t be any.
Check for voltage between the red wire and the black wire. There still shouldn’t be any.
Check for voltage between the red wire and your new wire. Should still be ~0V.
Now set your meter to test for continuity (keep it connected to the red and new wire). You should get continuity (~0 ohms) when the sensor has been triggered, and none (display probably reads “1”) when it hasn’t been triggered.
If your sensor passes all the above test then you are ready to start controlling props with it.
Connecting the sensor
This is the part where your imagination comes in. As I said before, you can connect the two output wires to anything that is normally connected to a switch.
- LED spotlights: Connect the power supply, sensor and LED in series. Replaces normal on/off switch.
- Prop with “Try Me” button: Clip the two wires that go to the button and connect them to the sensor’s output wires.
- CD/MP3 player: Solder two wires to the play button. Connect the wires to the sensor’s output wires. This does not affect the functionality of the player’s own play button.
- Fog machine: Connect two wires between the fog button and the sensor’s output wires.
- Air cannon: Hook the sensor’s output wires up in place of (or in parallel with) the cannon’s fire button.
- PowerPoint presentation: Hack a keyboard so that the sensor’s output wires connect across whatever two contacts the space bar connects to.











What about the trace on the load side (”switched power out”) of the relay (small via about half way along the trace). Where does it go and what does it do?
@Vicki- I had no idea. You got me curious about it though so I took the sensor back apart. After some solder-suckering on the relay I discovered that the “via” goes absolutely nowhere. It doesn’t even go through the board. All I can think of is that it’s a test point so that they can verify that power is making it to the other side of the relay at the factory.
Why go to so much trouble? Just screw a receptical socket into the existing light socket and plug your device in. . .
Am I missing something?
@Deanes- The point of doing this is so that you can control things that don’t run on 120v. Let’s say you wanted to trigger an LED. LEDs only run on ~2-3 volts. If you hooked one directly to the socket using an adapter it would probably shatter into quite a few pieces. This hack essentially creates a switch instead of a power source. Hook it in series with and LED, a battery and a resistor and now you have a motion-sensor LED.
this is a really cool trick i just have one question
im in australia so obviously everywhere u say 120v = 240v for me.
anyway i purchased a strobe light which runs off wall power and i was wondering if i could connect this type of setup to the strobe so that whenever someone walks in front of the sensor, the strobe light flickers for the duration of movement? i have taken apart the strobe and can see a wire which could easily be cut to act as the “jump” but im just worried that since my strobe has its own power and ur asking to connect the sensor to power where exactly does all this come into play?
the effect im going for is a papparazzi look for the entranceway at my “hollywood” themed birthday party! cool idea huh?
That is a cool idea. I think it will be easier to implement that you’re making it though. Since the (unmodded) motion sensor is already outputting power (240v in your case) and the strobe can be turned on and off by providing / interrupting power, the easiest thing to do would be to hook an outlet to the output wires of the sensor and plug the strobe into it. Of course put a plug on the input wires of the sensor so you can plug it in to the wall for power. Voila! Instant paparazzi!
Hey great info! Cheers.
Just wondering if you could hook up a mobile phone to the motion dectector so it calls you when it goes off?
Sure. Just hook the relay contacts across the two contacts of the “Send” button (make sure it’s a phone that redials when you press “Send”) or use a number key if it has speed-dial numbers or something.
Like Deanes said, just screw in an outlet receptical and then use a charger for a cell phone to bring the voltage down to 3-5v.
The only hacking involved is cutting the connector off the opposite end of the cord and use wire nuts and electrical tape to connect the wires.
Remember, hacking is about making things do something they weren’t intended to do in the easiest way possible.
That will work for powering the phone. You still need to make it dial somehow.
Do you connect it to the original 120V power source?
@Dave: Yes. The 120V is still needed to power the motion sensor. The difference is that now the 120V doesn’t come out the output.
Hi, I have a Christmas Santa that is sound activated, and would like to make him motion activated. People don’t want to stand on the sidewalk and clap, even if they know they have to clap. Would this type of application work for this. The santa is conected to a 120v but the sound box is on a transformer. Thanks, Jackie
@Jackie: Actually you wouldn’t even need to take a motion sensor apart. Just hook a male plug to the input of the sensor and a female plug to the output. Then get rid of the sound-activated part of your Santa all together (I’m assuming you just don’t want it sound-activated at all). Hook the bulb(s) in the Santa to a male plug. Plug Santa into the motion sensor and the sensor into power and whenever people walk by Santa will come on.
Hi, Scott. The Santa nods and waves all the time (being plugged in), but the sound activation will only come on when you clap your hands. This is a Gemmy inflatable, and we tried to hook up a motion sensor to it but nothing happened. It seems to want to hear the “clap” of the hands to activate. I would love to have it motion activated as clapping seems a waste of time. There is no light to hook into and the sound box is attached to the santa via a transformer. Would you have to use a battery, in case the 120v was to strong for the sound box? Maybe this can’t be done, I thought it would be easy, but my husband is at a loss as to how to do it. Thanks, Jackie
Sorry, I thought he lit up when there was sound. Now I gather he plays music or says stuff when someone claps. Do you have a link to the exact Santa?
Hi, Scott, I seem to have trouble posting. Jackie
Hi Scott. He has his voice box under the arm that moves and the transformer from the voice box is attached to the motorized mechanizim at the head. From there the unit is plugged into a 120v outlet. I hope this helps. I can try to take is apart and take some shots of the “box” on the inside if you like. I don’t seem to be able to place a link here. Thanks Scott, Jackie
Hi Scott, I bought it at an online store called buycostumes and searched for sitting santa. Everytime I try to place a link the post won’t work . Hopefully you will be able to find it OK. Thanks, Jackie
Sorry, links are probably disabled to help fight spam.
Anyway, I looked up your Santa. Unfortunately I couldn’t find much technical information on it. I was hoping that there was some kind of test / try-me button that you could tap into easily.
I think I’d have to actually tear one apart to figure out how to trick it into activating whenever you wanted. The problem with sound-activated props is that you can’t just short out the microphone and have it activate.
One thing you could try is putting the relay contacts in series with the microphone. If it looks for changes in sound level as opposed to an absolute level it might work.
Another thing might be to hook a battery in series with a pretty big resistor and the relay contacts and run that into the microphone input instead of the microphone. That way whenever the motion sensor is tripped a small voltage gets sent into the microphone input and Santa might do his thing. Again I don’t know exactly what kind of signal the circuit responds to from the microphone, but it might work.
Another, decidedly more ghetto method would be to hook some kind of noise-making device to the output of the motion sensor and place that right next to the microphone. Hide/enclose the whole thing somewhere so that people will hear Santa and not the noisy thing.
I hope I’ve at least given you some things to try.
My husband bought a battery powered motion activated sensor that produces a “chime” sound when it detects motion. The output from the sensor module goes to a simple speaker, so the waveform of the output signal is a sound-like pattern. Looked at on an oscilloscope, the signal is an exponentially decaying alternating pulse. This should have been quite similar to the output from the Santa’s sound detecting microphone. He hooked up the “chime” signal output from the motion detector into the Santa’s circuit board, to replace the ceramic microphone output. He used a resistor voltage divider to test various signal levels, over the range of 9 volts to a couple of millivolts peak-to-peak, but the signal from the motion detector never triggered the Santa. The Santa’s detection circuit is so sensitive that, with the wires from the microphone disconnected, just touching the wires with the natural voltage in your body will trigger the Santa. In the end, we hooked up the Santa’s microphone again, so at least we have the sound activation working again. Very frustrating! We worked on this for several days. Any suggestions? Thanks.
Many times the little microphones they use in those devices require power to operate. Maybe that DC voltage is doing something weird to your chime circuit. Try sticking a capacitor (.1uf or something) between the speaker output of the chime and the microphone input of Santa. I’m just guessing but it does seem like what you tried should work.
Great stuff! Just what I was looking for!!
BTW, one more application for this: to connect the alarm input of a IP surveillance camera to the sensor output wires.
When motion is detected, the sensor short cuts the camera alarm input and this event event can trigger several actions:
* To send an email notification (with one or several snapshot) to a list of configurable email addresses;
* Start recording a video.
Thanks, very useful indeed!!
I have a mini dv “spy camera ” that is a MD80 clone. I am trying to make it motion activated. I was going to use a Securitron XMS PIR sensor ( leftover from a magnetic door lock assembly ). The camera has a sound activation function but it is not very sensitive. My thought was to use a 12v battery to power the PIR and use the output wires to operate a relay that will turn the camera on. the problem is that the camera needs to power up and then another button must be pressed to start recording. any suggestions?
@Wes: I would start by playing around with exactly how the record button works. If you hold the button down while you power it on does it start recording? It’s probably not that simple but sometimes you get lucky!
Another option is to tie into the microphone input. Run a small voltage or audio signal through the relay (leave the camera powered on all the time) and when the relay closes it will activate the auto-record feature.
hi, love the tutorial!
have been wondering about converting a light motion sensor to a switch for ages but didn’t know how. Could you tell me if there is an easy way to convert a sensor to be battery operated under a reasonably low voltage? I was thinking of building a motion sensor to capture wildlife so would need something battery powered.
many thanks
James