<?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>Pyrocam.com &#187; hack</title>
	<atom:link href="http://pyrocam.com/tag/hack/feed/" rel="self" type="application/rss+xml" />
	<link>http://pyrocam.com</link>
	<description>I&#039;m like Vitamins for Computers</description>
	<lastBuildDate>Thu, 22 Sep 2011 01:42:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Motorcycle chain oiling system</title>
		<link>http://pyrocam.com/motorcycle-chain-oiling-system/</link>
		<comments>http://pyrocam.com/motorcycle-chain-oiling-system/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 23:41:43 +0000</pubDate>
		<dc:creator>pyrocam</dc:creator>
				<category><![CDATA[adjustment]]></category>
		<category><![CDATA[bolt]]></category>
		<category><![CDATA[budget]]></category>
		<category><![CDATA[chain]]></category>
		<category><![CDATA[cost]]></category>
		<category><![CDATA[electrical tape]]></category>
		<category><![CDATA[Engine]]></category>
		<category><![CDATA[equipment]]></category>
		<category><![CDATA[gears]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[junk]]></category>
		<category><![CDATA[lube]]></category>
		<category><![CDATA[lubrication]]></category>
		<category><![CDATA[machine]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[motorbike]]></category>
		<category><![CDATA[motorcycle]]></category>
		<category><![CDATA[oil]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[tube]]></category>
		<category><![CDATA[wheel]]></category>
		<category><![CDATA[Wood]]></category>

		<guid isPermaLink="false">http://pyrocam.com/?page_id=614</guid>
		<description><![CDATA[I have often been frustrated with the task of oiling the chain on my motorbike, I want a Scottoiler but I don&#8217;t want to pay for it, SO I built something that would do the same sort of thing only temporarily. When you want to oil the chain, you fix it on, go for a [...]]]></description>
			<content:encoded><![CDATA[<p>I have often been frustrated with the task of oiling the chain on my motorbike, I want a Scottoiler but I don&#8217;t want to pay for it, SO I built something that would do the same sort of thing only temporarily. When you want to oil the chain, you fix it on, go for a small ride or spin the wheel a bit, then take it off again.</p>
<p>Requirements</p>
<ul>
<li>Easy to put on and take off</li>
<li>will spread lubricant evenly on the chain</li>
<li>cost effective</li>
</ul>
<p>The basic idea I came up with was to place a rag on the chain with oil flowing onto it at a slow rate, the oil would spread over the rag and onto the chain. This is how I built it.</p>
<p>&nbsp;</p>
<p>I had intended to attach it either by using the rear stand thread but I didn&#8217;t have any bolts that size, but I found a piece of wood would very happily wedge into the swing-arm very tightly. I took an off cut, drilled a hole through it at 9mm then applied a piece of 10mm threaded rod to it (installed the thread into the wood very happily, the threaded rod was tightly stuck in there.</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/insertedrod.jpg"><img class="aligncenter size-medium wp-image-615" title="insertedrod" src="http://pyrocam.com/wp-content/uploads/2011/08/insertedrod-285x300.jpg" alt="offcut with threaded rod inserted" width="285" height="300" /></a>An &#8216;arm&#8217; was needed to reach down to the chain, so another off cut was attached with a couple washers and bolts. This also meant I could adjust the angle to suit when on the bike.</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/holder.jpg"><img class="aligncenter size-medium wp-image-616" title="holder" src="http://pyrocam.com/wp-content/uploads/2011/08/holder-300x213.jpg" alt="adjustable angle arm bolted to holder" width="300" height="213" /></a></p>
<p>Then I built the oiling base itself, I made two because the first one wasn&#8217;t large enough to be drilled again for the second rod. Basically its a small off cut with a 5m hole drilled in it for the hose.</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/block-1.jpg"><img class="aligncenter size-medium wp-image-617" title="block 1" src="http://pyrocam.com/wp-content/uploads/2011/08/block-1-300x179.jpg" alt="block 1 drilled" width="300" height="179" /></a></p>
<p>Inserting the oil flow tube.</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/base1withtube.jpg"><img class="aligncenter size-medium wp-image-618" title="base1withtube" src="http://pyrocam.com/wp-content/uploads/2011/08/base1withtube-300x257.jpg" alt="base with tube inserted" width="300" height="257" /></a></p>
<p>The &#8220;oiling system&#8221; is a folded up rag. I kept the rag and the block the width of the chain to keep the oil where it should be.</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/base1withrag.jpg"><img class="aligncenter size-medium wp-image-619" title="base1withrag" src="http://pyrocam.com/wp-content/uploads/2011/08/base1withrag-300x238.jpg" alt="first oiling system ready to have the rag attached" width="300" height="238" /></a></p>
<p>I used electrical tape to keep it on. Electrical tape works here because of its ability to stretch. whilst it doesn&#8217;t stick to the wood etc. It&#8217;s basically working like a rubber-band in this instance.</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/baseonetest.jpg"><img class="aligncenter size-medium wp-image-620" title="baseonetest" src="http://pyrocam.com/wp-content/uploads/2011/08/baseonetest-300x132.jpg" alt="first oiling block tested on the chain" width="300" height="132" /></a></p>
<p>Its looking good here, but because I cant really attach it to anything I remade it slightly larger, The threaded rod is the second arm between the first and the base, I used threaded rod again so I could adjust the distance.</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/newbase.jpg"><img class="aligncenter size-medium wp-image-621" title="newbase" src="http://pyrocam.com/wp-content/uploads/2011/08/newbase-300x291.jpg" alt="block two with tube and rod inserted" width="300" height="291" /></a></p>
<p>This is the full mount set. The small block on the right is the wedge for the swing arm, then there is the arm that goes down to the chain. Then the rod that goes inwards to the right distance to place the oiling block where it should be. Bolts for Africa to keep everything in place.</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/fullsystemoffbike.jpg"><img class="aligncenter size-medium wp-image-622" title="fullsystemoffbike" src="http://pyrocam.com/wp-content/uploads/2011/08/fullsystemoffbike-300x223.jpg" alt="Full mount set - dry" width="300" height="223" /></a>Installed on the bike:</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/systeminplaceonside.jpg"><img class="aligncenter size-medium wp-image-623" title="systeminplaceonside" src="http://pyrocam.com/wp-content/uploads/2011/08/systeminplaceonside-300x298.jpg" alt="installed on bike from side" width="300" height="298" /></a></p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/chainandoiler.jpg"><img class="aligncenter size-medium wp-image-624" title="chainandoiler" src="http://pyrocam.com/wp-content/uploads/2011/08/chainandoiler-300x225.jpg" alt="chain and base oiler in place" width="300" height="225" /></a>I was a little surprised at how sturdy it is. you would expect with wood, tape, bolts, threaded rod, and something that&#8217;s just wedged into the swing-arm to be quite fragile, but its pretty solid.</p>
<p>At the other end of the tube is an adapter I had made earlier for a standard soft drink bottle. I drilled a hole that was 1m too small and  used a small off cut of another tube to make the base. some hot glue to seal and then inserted the smaller tube. I didn&#8217;t have any hose clamps handy so used some 20 gauge wire to make my own clamp sort of thing. works well <img src='http://pyrocam.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/spriteconnector.jpg"><img class="aligncenter size-medium wp-image-625" title="spriteconnector" src="http://pyrocam.com/wp-content/uploads/2011/08/spriteconnector-300x289.jpg" alt="sprite zero connector" width="300" height="289" /></a></p>
<p>So now I have my oil input ready. for testing its just sitting in the pillion foot peg.</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/tubeendspriteconnector.jpg"><img class="aligncenter size-medium wp-image-626" title="tubeendspriteconnector" src="http://pyrocam.com/wp-content/uploads/2011/08/tubeendspriteconnector-300x258.jpg" alt="oil input ready" width="300" height="258" /></a>Ideally I will have a small, thin, seal-able tube that has a screw thread on both ends that I can use to put the right amount of oil in, and maybe it has a gauge so I can see how fast its draining etc. but for now; the top of a sprite bottle will do.</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/fullsystemnooil.jpg"><img class="aligncenter size-medium wp-image-628" title="fullsystemnooil" src="http://pyrocam.com/wp-content/uploads/2011/08/fullsystemnooil-265x300.jpg" alt="ready to roll... and oil" width="265" height="300" /></a></p>
<p>So I put some oil in the &#8220;reservoir&#8221; and let it flow through. the tube thickness and oil viscosity control the rate at which oil gets onto the chain. and it was flowing through the tube at about 1cm per second, which was perfect. The oil goes through the rag and onto the chain as expected. I am a bit slow here, I was too busy taking pictures and musing to start rotating the wheel which is why that small drop is on the bottom. the idea is you pour the oil in and go for a ride around the street to drain it. Today I just tilted the bike on the stand and manually rolled the wheel, this worked just as well.<a href="http://pyrocam.com/wp-content/uploads/2011/08/oiliscoming.jpg"><img class="aligncenter size-medium wp-image-629" title="oiliscoming" src="http://pyrocam.com/wp-content/uploads/2011/08/oiliscoming-300x225.jpg" alt="oil through the chain" width="300" height="225" /></a></p>
<p>Full system off the bike (excluding reservoir)</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/08/fullsystem.jpg"><img class="aligncenter size-medium wp-image-630" title="Full system" src="http://pyrocam.com/wp-content/uploads/2011/08/fullsystem-300x187.jpg" alt="full system off the bike " width="300" height="187" /></a></p>
<p>Overall, this was a resounding success. It does everything I wanted for very little cost (I had everything already) Its not too fragile, its not too bulky, and it actually works!</p>
<p>&nbsp;</p>
<p>Possible improvements</p>
<ul>
<li>I would like a better &#8216;wedge&#8217; system perhaps some sort of clamp that fits on the underside of the swingarm</li>
<li>I should remake it with a better material than wood</li>
<li>I need to build a better tube style reservoir</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://pyrocam.com/motorcycle-chain-oiling-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>High Speed Photography without a high speed camera</title>
		<link>http://pyrocam.com/high-speed-photography-without-a-high-speed-camera/</link>
		<comments>http://pyrocam.com/high-speed-photography-without-a-high-speed-camera/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 20:32:38 +0000</pubDate>
		<dc:creator>pyrocam</dc:creator>
				<category><![CDATA[flash]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[high speed]]></category>
		<category><![CDATA[Macro]]></category>
		<category><![CDATA[macro photography]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[project]]></category>
		<category><![CDATA[sound activated]]></category>
		<category><![CDATA[sound activated switch]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://pyrocam.com/?page_id=565</guid>
		<description><![CDATA[I wanted to do some high speed macro photography and read online I could do it with an external flash and a trigger, so I tried it out and it was quite easy. Here is how I did it. How it Works: In a completely dark room, open up the aperture on your camera and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://pyrocam.com/wp-content/uploads/2011/06/longice.jpg"><img class="aligncenter size-large wp-image-570" title="longice" src="http://pyrocam.com/wp-content/uploads/2011/06/longice-1024x356.jpg" alt="" width="543" height="188" /></a></p>
<p>I wanted to do some high speed macro photography and <a href="http://www.diyphotography.net/diy_high_speed_photography_at_home">read online</a> I could do it with an external flash and a trigger, so I tried it out and it was quite easy. Here is how I did it.</p>
<p>How it Works:</p>
<p>In a completely dark room, open up the aperture on your camera and leave it open. The camera wont be able to record anything as its completely dark. Fire a flash unit at a certain time and anything illuminated during the flash&#8217;s duration will be recorded on the camera. The trick is to have whatever you want captured triggering the flash somehow so it fires at the right time. Trying to do this manually wouldn&#8217;t really work. In my case I built myself a laser tripwire circuit, and a sound activated switch. this is how it works:</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/06/howitworks.jpg"><img class="aligncenter size-medium wp-image-569" title="howitworks" src="http://pyrocam.com/wp-content/uploads/2011/06/howitworks-300x225.jpg" alt="" width="426" height="319" /></a></p>
<p>1. Open the camera aperture, generally I use a 5 exposure time, use a low ISO (100-200) Aperture F 11-16 and if possible use manual focus, although it has worked without it. If your doing macro it will need to be manual focus.</p>
<p>2. do the &#8216;triggering action&#8217;, in most of the example shots, the action was dropping something onto a hard surface, this could also be firing a bb gun, popping a balloon etc</p>
<p>3. the sound activated switch picks up the noise and triggers the relay</p>
<p>4. the flash fires</p>
<p>5. whatever is illuminated while the flash is on (which is fast) the camera will capture it.</p>
<p>&nbsp;</p>
<p>This is what my current setup actually looks like, although I am experimenting with different flash positions as having it further away gives better results.<a href="http://pyrocam.com/wp-content/uploads/2011/06/tub.png"><br />
</a></p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/06/tubtop_key.jpg"><img class="aligncenter size-large wp-image-571" title="tubtop_key" src="http://pyrocam.com/wp-content/uploads/2011/06/tubtop_key-1024x765.jpg" alt="" width="638" height="476" /></a></p>
<p>I have put it all into a 40L plastic box so that I can explode some glass light bulbs without making a big mess. I used a sheet of glass I had around to protect the camera, the sound activated switch is inside a little plastic box with the microphone on the hard surface (a brick)</p>
<p>Some of the shots I have gotten so far using a glass surface and dropping ice cubes (click for big)</p>
<p>&nbsp;</p>
<p><a href="http://pyrocam.com/wp-content/uploads/2011/06/f.jpg"><img title="icecontext" src="http://pyrocam.com/wp-content/uploads/2011/06/icecontext-300x202.jpg" alt="" width="450" /></a><img class="size-medium wp-image-574 alignnone" title="explodo" src="http://pyrocam.com/wp-content/uploads/2011/06/explodo-300x225.jpg" alt="" width="450" /><a href="http://pyrocam.com/wp-content/uploads/2011/06/smash.jpg"><img class="size-medium wp-image-576 alignnone" title="smash" src="http://pyrocam.com/wp-content/uploads/2011/06/smash-300x225.jpg" alt="" width="450" /></a><a href="http://pyrocam.com/wp-content/uploads/2011/06/1.jpg"><img class="alignnone size-medium wp-image-573" title="ice ice baby" src="http://pyrocam.com/wp-content/uploads/2011/06/1-300x280.jpg" alt="" width="450" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://pyrocam.com/high-speed-photography-without-a-high-speed-camera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silent Mouse</title>
		<link>http://pyrocam.com/silent-mouse/</link>
		<comments>http://pyrocam.com/silent-mouse/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 01:54:28 +0000</pubDate>
		<dc:creator>pyrocam</dc:creator>
				<category><![CDATA[click]]></category>
		<category><![CDATA[copper tape]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[mouse]]></category>
		<category><![CDATA[quiet]]></category>
		<category><![CDATA[silence]]></category>

		<guid isPermaLink="false">http://pyrocam.com/</guid>
		<description><![CDATA[A friend of mine wanted a silent mouse for gaming when his GF was studying in their studio apartment. I found an old mouse and removed the button mechanism and wired some cable through to the pads and made a small contact pad for each side. the first version was going to use &#8216;tin-foil fingerpads&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p>A friend of mine wanted a silent mouse for gaming when his GF was studying in their studio apartment. I found an old mouse and removed the button mechanism and wired some cable through to the pads and made a small contact pad for each side.<br />
<a href="http://pyrocam.com/wp-content/uploads/2010/10/29102010001.jpg"><img class="aligncenter size-medium wp-image-434" title="contact pads" src="http://pyrocam.com/wp-content/uploads/2010/10/29102010001-300x225.jpg" alt="" width="300" height="225" /></a><br />
the first version was going to use &#8216;tin-foil fingerpads&#8217; but that was a bit silly to have to put on each time.<br />
<a href="http://pyrocam.com/wp-content/uploads/2010/10/29102010005.jpg"><a href="http://pyrocam.com/wp-content/uploads/2010/10/29102010003.jpg"><img class="aligncenter size-medium wp-image-440" title="fingers" src="http://pyrocam.com/wp-content/uploads/2010/10/29102010003-300x225.jpg" alt="" width="300" height="225" /></a><br />
</a></p>
<p>Then I pulled the mouse buttons off an old laptop trackpad and taped them on with some more tape and put copper tape on the underside.<br />
<a href="http://pyrocam.com/wp-content/uploads/2010/10/291020100051.jpg"><img class="aligncenter size-medium wp-image-436" title="finished silent mouse" src="http://pyrocam.com/wp-content/uploads/2010/10/291020100051-300x225.jpg" alt="" width="300" height="225" /></a><br />
and added a cool logo&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://pyrocam.com/silent-mouse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cellphone TV Remote Control</title>
		<link>http://pyrocam.com/remote-control/</link>
		<comments>http://pyrocam.com/remote-control/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 16:46:02 +0000</pubDate>
		<dc:creator>pyrocam</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[automation project]]></category>
		<category><![CDATA[cellphone]]></category>
		<category><![CDATA[channel]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[control]]></category>
		<category><![CDATA[control tv]]></category>
		<category><![CDATA[DTR]]></category>
		<category><![CDATA[entertainment system]]></category>
		<category><![CDATA[framework project]]></category>
		<category><![CDATA[freeview]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[home automation devices]]></category>
		<category><![CDATA[Infra Red]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[IR]]></category>
		<category><![CDATA[ir transmitter]]></category>
		<category><![CDATA[LIRC]]></category>
		<category><![CDATA[old laptop]]></category>
		<category><![CDATA[remote]]></category>
		<category><![CDATA[remote control]]></category>
		<category><![CDATA[remote controller]]></category>
		<category><![CDATA[rube goldberg]]></category>
		<category><![CDATA[software setup]]></category>
		<category><![CDATA[Transmit]]></category>
		<category><![CDATA[TV]]></category>
		<category><![CDATA[tv entertainment]]></category>
		<category><![CDATA[tv receiver]]></category>
		<category><![CDATA[winlirc]]></category>

		<guid isPermaLink="false">http://pyrocam.com/?page_id=74</guid>
		<description><![CDATA[ContentsWhat is this Project?Why I built this.Project RequirementsHow it worksThe ComputerIR Transmitter setupSoftware SetupWinLircConsiderationsLooking ForwardThis is my Internet Remote controller for my TV/entertainment system and general home automation. What is this Project? This is a cellphone controlled home automation project, focusing on IR device control (TV) for under $10 This is what it looks like [...]]]></description>
			<content:encoded><![CDATA[<div class="mwm-aal-container"><div class='mwm-aal-title'>Contents</div><ol><li><a href="#What+is+this++Project%3F">What is this  Project?</a></li><li><a href="#Why+I+built++this.">Why I built  this.</a></li><li><a href="#Project+Requirements">Project Requirements</a></li><li><a href="#How+it+works">How it works</a></li><li><a href="#The+Computer">The Computer</a></li><li><a href="#IR+Transmitter++setup">IR Transmitter  setup</a></li><li><a href="#Software+Setup">Software Setup</a></li><li><a href="#WinLirc">WinLirc</a></li><li><a href="#Considerations">Considerations</a></li><li><a href="#Looking++Forward">Looking  Forward</a></li></ol></div><p>This is my Internet Remote controller for my TV/entertainment system and  general home automation.</p>
<a name="What+is+this++Project%3F"></a><h2><a title="what is this?" name="what is this?"></a>What is this  Project?</h2>
<p>This is a cellphone controlled home automation project, focusing on IR  device control (TV) for under $10</p>
<div id="v6105"><object id="mpl" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="320" height="259" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="mpl" /><param name="flashvars" value="file=http://www.pyrocam.com/files/images/remotecontrol/universal_remote_nx_conv.flv&amp;image=http://www.pyrocam.com/files/images/remotecontrol/universal_remote_nx_conv.jpeg" /><param name="src" value="https://media.dreamhost.com/mp4/player.swf" /><param name="allowfullscreen" value="true" /><param name="quality" value="high" /><embed id="mpl" type="application/x-shockwave-flash" width="320" height="259" src="https://media.dreamhost.com/mp4/player.swf" quality="high" allowfullscreen="true" flashvars="file=http://www.pyrocam.com/files/images/remotecontrol/universal_remote_nx_conv.flv&amp;image=http://www.pyrocam.com/files/images/remotecontrol/universal_remote_nx_conv.jpeg" name="mpl"></embed></object></div>
<div id="v6105">This is what it looks like on the phone, at the moment its just channel  up, channel down, and the top 5 channels along the top.</div>
<div id="v6105"><img src="http://www.pyrocam.com/files/images/remotecontrol/phone_ready.jpg" alt="phone_ready" width="234" height="437" /><img src="http://www.pyrocam.com/files/images/remotecontrol/computer.jpg" alt="page" width="252" height="249" /></div>
<div id="v6105">It doesnt have to be TV channels though; it could be window controls,  garage door openers, rube goldberg mojito making machines&#8230; but I am  getting ahead of myself</div>
<p><BR/></p>
<div id="v6105">
<hr size="2" /></div>
<p><BR/><br />
<script src="https://media.dreamhost.com/mp4/swfobject.js" type="text/javascript">
</script> <script type="text/javascript">// <![CDATA[
    var swf = new SWFObject("https://media.dreamhost.com/mp4/player.swf", "mpl", "320", "259", 8); swf.addParam("allowfullscreen", "true"); swf.addParam("allowscriptaccess", "always"); swf.addVariable("file", "http://www.pyrocam.com/files/images/remotecontrol/universal_remote_nx_conv.flv"); swf.addVariable("image", "http://www.pyrocam.com/files/images/remotecontrol/universal_remote_nx_conv.jpeg"); swf.write("v6105");
// ]]&gt;</script></p>
<a name="Why+I+built++this."></a><h2><a title="Why I built this" name="Why I built this"></a>Why I built  this.</h2>
<p><span style="font-size: large;"><strong>I</strong></span> wanted a cost  effective (as in, as cheap as possible) way to change the channel on my  TV without line of sight.<br />
I also wanted the project to be able to operate other external devices  such as a garage door opener or other home automation devices with the  same general framework.</p>
<a name="Project+Requirements"></a><h2><a title="Requirements" name="Requirements"></a>Project Requirements</h2>
<ul>
<li>Non L.O.S. Remote Control</li>
</ul>
<p>I must be able to control my TV receiver from any room in the house.</p>
<ul>
<li>Cheap</li>
</ul>
<p>This whole project must be low cost. The most costly thing is an old laptop, you should be able to pick up something that runs Windows XP/2000 for cheap (broken screens / keyboards etc are OK) if you dont already have one lying around like I did.</p>
<ul>
<li>Low power</li>
</ul>
<p>The entire system needs to come under 10w, otherwise the energy cost will spoil the whole purpose of the project. 10w is about 5c a day for me (assuming it was on all the time, which it&#8217;s not)</p>
<ul>
<li> &#8220;Universal Remote Control&#8221; functionality</li>
</ul>
<p>I want to be able to control other things as well, there are 4 or 5 things in my entertainment system that operate from IR. I can combine all these with a single &#8220;remote&#8221;</p>
<ul>
<li>Expandability/Home Automation</li>
</ul>
<p>If I&#8217;m making a device that can change the TV from anywhere in the world, it might as well turn the heater on as well. The system should also be able to control other outputs like IO boards and by proxy: any other home automation device.<br />
<BR/></p>
<hr size="2" />
<BR/></p>
<a name="How+it+works"></a><h2><a title="How it Works" name="How it Works"></a>How it works</h2>
<p><span style="font-size: large;"><strong>T</strong></span>o summarise,  you access a webpage from your cellphone, pressing a button on the page  places an entry into a command queue. Another application actions the  command. Using <a href="http://winlirc.sourceforge.net/" target="_blank">WinLirc</a> I can control the TV and other IR devices.<span style="font-size: large;"> </span></p>
<p><span style="font-size: large;">I</span> have a laptop motherboard  slapped on the back of my TV (a computer might be overkill for this task  but it has the added benefit of being able to run media center etc)  This computer runs an apache website available on the internet (under  some basic security) and uses php to write lines directly into a command  queue file (a flat txt file for now) also the program can check an  email account for commands that have been emailed to it (in case the  website is not available) and then drop those commands into the text  file</p>
<p><img src="http://www.pyrocam.com/files/images/remotecontrol/command-to-action-process.png" alt="command-to-action-process.png" /></p>
<p>Then an Incoming Message Handler (IMH) checks the contents of this file  and actions the command if it&#8217;s valid; there is a database of legitimate  commands and actions available to the IMH process. A message could say <strong>##Password##:Prc:ch-up </strong>and it would check it against it&#8217;s DB to see if  it&#8217;s valid and what to do with it. This runs every second, so from  entering your command from the web interface you have about up to about 1  second to wait before the action is executed.</p>
<p>For the Channel changing procedure, the IMH would receives the  appropriate command and then runs a bat file to operate <a href="http://winlirc.sourceforge.net/" target="_blank">WinLIRC</a> from  the command line.<br />
<BR/></p>
<hr size="2" />
<BR/></p>
<a name="The+Computer"></a><h2><a title="The Computer" name="The Computer"></a>The Computer</h2>
<p>This is the computer on the back of the TV.</p>
<p><img src="http://www.pyrocam.com/files/images/remotecontrol/computer%20-%20detail.jpg" alt="detailed picture of computer setup" width="746" height="772" /></p>
<p><a href="http://www.pyrocam.com/files/images/computer%20-%20high%20res.png">(higher  res)</a></p>
<p>I am using the bolts you would normally use to attach it to a mounting  bracket to hold a piece of card away from the back of the TV about 6CM  (for heat purposes) it&#8217;s really sturdy and works really well. I had to  hack the notebook screen-detection switch with a jumper so I could set  it to always on (IE: lid always closed) so the VGA is always on</p>
<p>And my handy dandy watt meter showing the current power consumption (9  watts)</p>
<p><img src="http://www.pyrocam.com/files/images/remotecontrol/whatwatt.jpg" alt="9 watts" /><br />
<BR/></p>
<hr size="2" />
<BR/></p>
<a name="IR+Transmitter++setup"></a><h2><a title="IR Output Setup" name="IR Output Setup"></a>IR Transmitter  setup</h2>
<p>Originally I hacked up a serial plug and a usb cable to get my data and  power but I found this to ugly and the cables were the wrong length etc.  Now I plug directly into the motherboard to get what I need.</p>
<ul>
<li>Power</li>
</ul>
<p>I get the 5v for my circuit off USB, but not using a standard USB plug, I  am getting it the USB board that comes off the motherboard (every  laptop mobo is different in this regard, it may not be available) I took  the board, used a multimeter to get some continuity from known +5v /  Gnd all the way back to the plug itself</p>
<p><img src="http://www.pyrocam.com/files/images/remotecontrol/ext_usb_board.jpg" alt="ext_usb_board.jpg" width="362" height="282" /> <img src="http://www.pyrocam.com/files/images/remotecontrol/USB%20board%20connector.jpg" alt="USB board connector.jpg" width="377" height="282" /></p>
<ul>
<li> Data</li>
</ul>
<p>Same concept: find the data line on the motherboard plug, hack at the  cable till I get it.</p>
<p>This is what I was using</p>
<p><img src="http://www.pyrocam.com/files/images/remotecontrol/ext-serial-board.jpg" alt="ext-serial-board.jpg" width="463" height="236" /></p>
<p>And this is the finished product with both serial DTR line and USB in  use</p>
<p><img src="http://www.pyrocam.com/files/images/remotecontrol/IR-controller-mobo-plug.jpg" alt="IR-controller-mobo-plug.jpg" width="600" height="343" /></p>
<p>I have wired these to a piece of UTP I had lying around, going the 40cm  or so to the controller board</p>
<p>This is the circuit diagram of my version of the controller, identical  to the one<a href="http://www.lirc.org/transmitters.html"> here</a> only  for a status led, slightly more obvious line inputs, and the &#8216;output  array&#8217; which is just a bank of jumpers that I can plug multiple IR  senders on (for different devices, I dont want to have one giant IR  controlling everything)</p>
<p><img src="http://www.pyrocam.com/files/images/remotecontrol/IR-controller-circuit-diagram.jpg" alt="IR-controller-circuit-diagram.jpg" /></p>
<p>This is the built IR transmitter,<br />
The modifications I have made are; multiple outs (4), you can see the 3  sets of jumpers (one is in use, connected on the blue/white cable), and a status LED (green). I have used orange for DTR Blue for +5V and green  for GND.</p>
<p><img src="http://www.pyrocam.com/files/images/remotecontrol/IR%20-%20Output%20controller%202.jpg" alt=" IR Output controller" /><br />
<BR/></p>
<hr size="2" />
<BR/></p>
<a name="Software+Setup"></a><h2><a title="Software Setup" name="Software Setup"></a>Software Setup</h2>
<p>Web server runs on apache + php with some basic php code to insert commands directly into the command queue file on the machine. I can customise this to suit any phones browser.</p>
<p>I have a VB.net application that is checking this file every second for  changes, if it sees a change it will read the contents of every line,  put them into an array, start trying to process them. I may publish this  later. Although it should be relatively easy to reproduce.</p>
<p>It Also manages a VC#.net app that I found and barely managed to compile  that grabs subject lines from a email account and dumps them into the  command log. This is like a back end if the web service goes down or is  unavailable wherever I am at.</p>
<p>This is the UI of the application. In this shot I have sent through a single &#8216;Channel UP&#8217; command from the web interface.</p>
<p><img src="http://www.pyrocam.com/files/images/remotecontrol/imh.png" alt="Incomming Message Handler" width="645" height="501" /></p>
<p>Dont worry about the poor code, I bought some <a href="http://codeoffsets.com/" target="_blank">code offsets</a> to  compensate</p>
<a name="WinLirc"></a><h2>WinLirc</h2>
<p><a title="Winlirc setup" name="Winlirc setup"></a><a href="http://winlirc.sourceforge.net/">WinLirc</a> is a program that can  record and later send the IR commands (via the external IR sender) to  the IR compatible devices. It took me quite a while to get working, its a  bit of a hassle because you cant really test your hardware or software  elsewhere; it is all or nothing. I built the receiver and transmitter  and recorded a bunch of codes and I was quite impressed when I managed  to get it to actually function, but getting it to operate from the  command line almost killed the project. the code looks for a window  called &#8220;WinLirc&#8221; and drops some data on it based on parsed commands. eg  ch_up.bat consists of</p>
<p><strong>c:winlirc-0.6.5transmit5.exe freeview ch_up </strong></p>
<p>This will send the remote (called Freeview) and the button (recorded as  ch_up) to the window called &#8220;winlirc&#8221; I spent ages thinking my VC++6  compiler was broken (its not compatible with windows XP let alone 7) but  I finally realised its because the window is actually called &#8220;WinLIRC&#8221;  note the case difference.</p>
<p>Here is my working copy of transmit.exe available for you to download <a href="http://www.pyrocam.com/files/images/remotecontrol/transmit.exe">Download  Transmit.EXE</a> (you MUST right click, save target as)<br />
It is kindof weird. It didnt work first time, I dont know what it is  that makes it work. The WinLirc application is minimised (to systray) on  the system I am using, maybe this helps.</p>
<p><a href="http://support.microsoft.com/kb/151715">Assembly </a>is used to  toggle keyboard lights for the cheap home automation project part of  this (you should check that link out anyway, never knew you could do  that)</p>
<p>Bat files are usually called to run the actions, such as WinLirc command  line actions, or the above Assembly executables to do the other stuff.</p>
<p>VC++6.0 was used to compile transmit.exe a lovely little piece of  generally fun time from the (now defunct) WinLirc project. I will attach  my WinLirc Transmit.exe with a sample later.</p>
<p>Currently I am running this on a Windows XP OS, I toyed around with  using linux, and I know I should, I really should, but the learning  curve of the <a href="http://www.lirc.org/">LIRC</a> was too great and  so would have made me loose interest.</p>
<a name="Considerations"></a><h2><a title="Considerations" name="Considerations"></a>Considerations</h2>
<ul>
<li><strong> Power Consumption</strong></li>
</ul>
<p>I wanted my project to use as little power as possible, there isn&#8217;t much  point saving $100 on kit only to use that in power over a year. My aim  was to keep it under 10W per hour (equates to about 5c per day, just  under $20 a year @21c per Kwh), but I would of been happy with under 50W  (25c a day)</p>
<p>By using a laptop, and ripping all the guts of it out I was able to get a  smooth 9W (after a few minutes of operation) I had planned to replace  the hard drive with either a SD card or memory stick if consumption was  higher, although I was worried about <a href="http://en.wikipedia.org/wiki/Flash_memory#Memory_wear" target="_blank">Memory Wear</a>. It&#8217;s a Windows OS, and I am performing  file operations every second (not to mention whatever Windows is doing) I  expected I could start having problems very quickly. Most commercially  available flash products are guaranteed to withstand  around 100,000 write-erase-cycles, my software would only be writing and  reading (and deleting) if there was a command coming in, but it&#8217;s  reading the contents of this file nigh-continuously (86400 reads a day).  A read is not a erasure operation I know, but I cant be sure what is  going on in pagefile and other Windows operations. Whilst I turned off  Windows indexing and as many other operational services I couldnt rely  on a cheap memory stick or SD card. SSD&#8217;s would certainly acheive a  power consumption boost, but the cost is prohibitive for this project.<a href="http://en.wikipedia.org/wiki/Flash_memory#Flash_memory_as_a_replacement_for_hard_drives"> more on this</a></p>
<ul>
<li><strong>Security</strong></li>
</ul>
<p>Obviously, I dont want anyone to be able to access this webpage and  start changing my channel around while I am watching TV (or start  opening my garage or churning out mojito&#8217;s whatever else I have hooked  up) so I need some methods to protect the system.</p>
<p><span style="text-decoration: underline;">Security by obscurity</span></p>
<p>For starters, I didnt register http://www.home-automation-system.com to  run this off, running it on an obscure IP address and an obscure port is  my first defence.</p>
<p><span style="text-decoration: underline;">Only certain IP&#8217;s can access </span></p>
<p>Locking off the accessible IP range to my phone provider&#8217;s allocation  (as far as I can work out) means it pretty much doesnt exist to any  would-be opportunist</p>
<p><span style="text-decoration: underline;">Passwords</span></p>
<p>I still want to be able to access the page without having to enter in  some long username and password, so I keep these somewhat short, but  still random enough for there to be a high number of possible passwords  and also a lockout after the second wrong entry (I can reset it locally  if I manage to break it this way)</p>
<p><span style="text-decoration: underline;">Closed Circuit</span></p>
<p>Currently, I don&#8217;t own a phone that can access WiFi, if I did (and there  are some other major UI benifits to using an iphone or clone) so it&#8217;s  not possible for me to run the page only on an internal network. but for  anyone else looking to do this kind of project, it is definately the  best way to keep it locked down.</p>
<ul>
<li><strong>Cost </strong></li>
</ul>
<p>The most expensive component was the IR receiver, all up this project  cost me about $10 for the components for the IR transmitter and IR  receiver (for recording the remote control signals). The laptop I had  lying around so there is no cost there.</p>
<a name="Looking++Forward"></a><h2><a title="Looking forward" name="Looking forward"></a>Looking  Forward</h2>
<ul>
<li>iPhone</li>
</ul>
<p>Most obviously, a phone with a touch screen (Iphone, nexus one etc) this  will really spruce up the UI and I&#8217;ll be able to customise it to suit  (currently designed for smaller screens without touch capability)</p>
<ul>
<li> Further Home Automation</li>
</ul>
<p>Somethings I have been toying with the idea of, although have been too  expensive for this stage of the project,<a href="http://www.maplin.co.uk/Module.aspx?ModuleNo=32372&amp;C=SO&amp;U=strat15"> would be remote controlled light switches</a><br />
A really cheap way to get some output controllers on a computer is by  taking a keyboard and hacking up controller board. The LED&#8217;s that  display capslock, numlock and scroll lock can all be wired up (these are  controllable via the command line if you want) to relays to trigger a  real life device, like a garage door opener, or perhaps the on off  switch on a device that cant be controlled by IR.</p>
<ul>
<li> Wall or Portable touch pad controller</li>
</ul>
<p>Quite like the iPhone idea, but a house specific one, since it would be  running local loop (see security concerns) it would be dedicated to  controlling everything in the house.</p>
<ul>
<li>Software updates</li>
</ul>
<p>I would like to start using Windows MSMQ instead of flat file handling,  but this means new OS and I&#8217;d have to learn how to, ya&#8217;know, use it. I  want to make the options stickable, like most users might not want to  use the email checking facility, at the moment you can disable it once  it&#8217;s running but you have to do that every time you start it.<br />
I need to document the software and release the source code (gah) but it  is a big mess and all the &#8216;real&#8217; developers will laugh at me.</p>
<ul>
<li>House monitoring</li>
</ul>
<p>If the heaters/fans/window controls were hooked up and I had temperature  sensors, I could keep each room at a certain temperature to some  extent. and automatically heat/cool the house a few minutes before  arrival (Imagine if the GPS in my car could warn the house 15mins before  I got home too turn on the heater)</p>
<ul>
<li>Rube Goldberg machines</li>
</ul>
<p>One of the original intentions of this plan was to incorporate the  garage door opener. It could of been done with a relay off the capslock  key, but I thought it would also be kinda cool to hook up a CDROM to the  device which had a plastic hand glued on the end. when the right  command was sent it would eject the CDROM and the finger on the hand  would be lined up to press the button on the inside of the garage. Never  came to fruition but have ahad a few cool idea&#8217;s for a rube-goldberg  style mojito (or whatever you fancy) machine that was started by the  CD-Rom ejecting. I actually consider the rest of this setup to be  somewhat of a virtual rube-goldberg machine (apache + php + text files +  VB.net + bat files + c#.net + vc6++ and even assembly all running  together to make this work)</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;"><code>&lt;a class="DiggThisButton"&gt;('&lt;img  src="http://digg.com/img/diggThisCompact.png" height="18" width="120"  alt="DiggThis" /&gt;’)&lt;/a&gt;</code></div>
<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://pyrocam.com/remote-control/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

