<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>accomplished &#187; PIR</title>
	<atom:link href="http://www.accomplished.org/tag/pir/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.accomplished.org</link>
	<description>inventions, projects and tinkering</description>
	<lastBuildDate>Mon, 30 Aug 2010 17:59:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PIR Sensor Mod</title>
		<link>http://www.accomplished.org/2010/01/01/pir-sensor-mod/</link>
		<comments>http://www.accomplished.org/2010/01/01/pir-sensor-mod/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 23:55:21 +0000</pubDate>
		<dc:creator>Owen</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[mod]]></category>
		<category><![CDATA[PIR]]></category>
		<category><![CDATA[sensor]]></category>

		<guid isPermaLink="false">http://www.accomplished.org/?p=58</guid>
		<description><![CDATA[I needed a PIR sensor for a halloween project and not having a Maplin near by I decided to modify an £8.99 Security Floodlight from Argos. One thing you should note is that the default &#8216;switch-on&#8217; time is around 1 minute. I didn&#8217;t need to change this for my application, but it may be an [...]]]></description>
			<content:encoded><![CDATA[<p>I needed a PIR sensor for a halloween project and not having a Maplin near by I decided to modify an £8.99 <a href="http://www.argos.co.uk/static/Product/partNumber/7018105.htm" target="_blank">Security Floodlight from Argos</a>. One thing you should note is that the default &#8216;switch-on&#8217; time is around 1 minute. I didn&#8217;t need to change this for my application, but it may be an issue if you only need a short high-pulse when something is detected.</p>
<p><a href="http://www.accomplished.org/images/projects/argos_pir/argos_001.jpg" rel="lightbox[58]"><img class="alignnone" title="PIR sensor box" src="http://www.accomplished.org/images/projects/argos_pir/argos_001.jpg" alt="PIR sensor box" width="480" height="372" /></a></p>
<p><span id="more-58"></span><a href="http://www.accomplished.org/images/projects/argos_pir/argos_002.jpg" rel="lightbox[58]"><img class="alignnone" title="Security light back" src="http://www.accomplished.org/images/projects/argos_pir/argos_002.jpg" alt="Security light back" width="480" height="360" /></a></p>
<p>Here I&#8217;d already removed the guts. You can either cut all the wires, or do what I did and use a small screwdriver to lift the metal springs in the terminal block that are holding the wires in. After that remove the central screw as shown below to seperate the PIR section from the light.</p>
<p><a href="http://www.accomplished.org/images/projects/argos_pir/argos_003.jpg" rel="lightbox[58]"><img class="alignnone" title="Removing PIR sensor" src="http://www.accomplished.org/images/projects/argos_pir/argos_003.jpg" alt="Removing PIR sensor" width="480" height="360" /></a></p>
<p>To seperate the rotating section of the PIR from the container housing the electronics just needs a good firm pull. The two sections are held together by a couple of plastic clips which should pop out easily.</p>
<p><a href="http://www.accomplished.org/images/projects/argos_pir/argos_004.jpg" rel="lightbox[58]"><img class="alignnone" title="Separated sensor" src="http://www.accomplished.org/images/projects/argos_pir/argos_004.jpg" alt="Separated sensor" width="480" height="360" /></a></p>
<p>My PIR housing seemed to have glue in the seam between the two halves, so I cut a shallow channel around it until the two halves were easily seperated. The case was also held together with retaining clips as well as glue, so make sure you don&#8217;t cut through these, it&#8217;ll make putting it back together much easier.</p>
<p><a href="http://www.accomplished.org/images/projects/argos_pir/argos_005.jpg" rel="lightbox[58]"><img class="alignnone" title="Opening the sensor housing" src="http://www.accomplished.org/images/projects/argos_pir/argos_005.jpg" alt="Opening the sensor housing" width="480" height="360" /></a></p>
<p>Here&#8217;s what the insides look like when you finally get the sensor housing open.</p>
<p><a href="http://www.accomplished.org/images/projects/argos_pir/argos_006.jpg" rel="lightbox[58]"><img class="alignnone" title="Sensor guts" src="http://www.accomplished.org/images/projects/argos_pir/argos_006.jpg" alt="Sensor guts" width="480" height="360" /></a></p>
<p>The important bit here is the relay. It&#8217;s part number is 812H-1A-C made by Song Chun. You can see the datasheet <a href="http://www.songchuan.com/PPDF/812.PDF" target="_blank">here</a>.</p>
<p>What you can see from the datasheet is that the live wire is connected to one side of the relay output contacts and the white wire that goes to the halogen light is on the other side of the contact.</p>
<p>To allow the PIR to function as a general purpose switch we need to desolder the live wire from the relay and reconnect it so that it powers the circuit, then add another wire to the relay.</p>
<p><a href="http://www.accomplished.org/images/projects/argos_pir/argos_007.jpg" rel="lightbox[58]"><img class="alignnone" title="Relay on the sensor board" src="http://www.accomplished.org/images/projects/argos_pir/argos_007.jpg" alt="Relay on the sensor board" width="480" height="360" /></a></p>
<p>Below you can see where you should be cutting and desoldering.</p>
<p><a href="http://www.accomplished.org/images/projects/argos_pir/argos_008.jpg" rel="lightbox[58]"><img class="alignnone" title="Sensor PCB" src="http://www.accomplished.org/images/projects/argos_pir/argos_008.jpg" alt="Sensor PCB" width="480" height="360" /></a></p>
<p>And here&#8217;s the slightly messy, but effective result. Make sure you test the cut track for continuity with a multimeter, you really don&#8217;t want any mains voltages getting onto the output side of your relay.</p>
<p><a href="http://www.accomplished.org/images/projects/argos_pir/argos_009.jpg" rel="lightbox[58]"><img class="alignnone" title="Modified PCB" src="http://www.accomplished.org/images/projects/argos_pir/argos_009.jpg" alt="Modified PCB" width="480" height="360" /></a></p>
<p>In the next shot you can just about see where I&#8217;ve resoldered the live wire onto the leg of the resistor so it can continue to power the detector circuit. I wrapped it round the leg to make the join a bit stronger. I&#8217;ve recycled some ground wire from a piece of flex and soldered that into the hole that the live wire was removed from.</p>
<p>After you&#8217;re done soldering, you might want to hook everything up and make sure it&#8217;s all working. I hooked up the new relay connections to a multimeter to test that it was turning on and off as it should, and also that there weren&#8217;t any stray mains voltages that could cause issues later&#8230;such as death.</p>
<p><a href="http://www.accomplished.org/images/projects/argos_pir/argos_010.jpg" rel="lightbox[58]"><img class="alignnone" title="New wire positions" src="http://www.accomplished.org/images/projects/argos_pir/argos_010.jpg" alt="New wire positions" width="480" height="360" /></a></p>
<p>Once everything&#8217;s checked and working you can repackage it in the PIR housing. I put the original terminal block back in to hook up the mains wires and then added a couple of terminal posts through the holes on the front. These were attached to the relay wires and will now allow me to switch things on and off under control of the PIR sensor.</p>
<p><a href="http://www.accomplished.org/images/projects/argos_pir/argos_011.jpg" rel="lightbox[58]"><img class="alignnone" title="PIR sensor mod completed" src="http://www.accomplished.org/images/projects/argos_pir/argos_011.jpg" alt="PIR sensor mod completed" width="480" height="360" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.accomplished.org/2010/01/01/pir-sensor-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
