<?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>FamousPhil.com Admin Blog and More &#187; home automation</title>
	<atom:link href="http://famousphil.com/blog/tag/home-automation/feed/" rel="self" type="application/rss+xml" />
	<link>http://famousphil.com</link>
	<description>My Personal Blog</description>
	<lastBuildDate>Tue, 08 May 2012 03:26:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Revisiting my light control system</title>
		<link>http://famousphil.com/blog/2011/05/revisiting-my-light-control-system/</link>
		<comments>http://famousphil.com/blog/2011/05/revisiting-my-light-control-system/#comments</comments>
		<pubDate>Thu, 26 May 2011 18:07:24 +0000</pubDate>
		<dc:creator>Famous Phil</dc:creator>
				<category><![CDATA[Hosting / Server Administration]]></category>
		<category><![CDATA[Mobile Technology]]></category>
		<category><![CDATA[My Site]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Student Life]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[home automation]]></category>
		<category><![CDATA[light control]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[smartbutler]]></category>
		<category><![CDATA[usb-uirt]]></category>
		<category><![CDATA[Voice Control]]></category>
		<category><![CDATA[voip]]></category>
		<category><![CDATA[wamp]]></category>
		<category><![CDATA[x10]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://famousphil.com/?p=783</guid>
		<description><![CDATA[Phil discusses high light control system (x10) in a lot of detail.  He also talks about VoIP a little bit.]]></description>
			<content:encoded><![CDATA[<p>On August 30, 2009, I made a blog post about my x10 home automation system, but I didn&#8217;t really cover it in depth enough to satisfy myself.  Therefore, I decided to revisit the topic from that blog (<a href="http://famousphil.com/blog/2009/08/how-many-engineers-does-it-take-to-turn-on-a-light-bulb/">which is here</a>).  This blog contains a video detailing the system that I ended up with during my University experience.  I expect that my future home will be much more automated than this video shows.  In order to appreciate the video, I decided to write some content to supplement what I talk about in the video, which is below.</p>
<p>In 2009, I came up with the first version of my light control system.  This consisted of a clapper, a set of cheap computer speakers, and an audio recording of my clapping.  My original system used a web interface to have the speakers (connected to the web server / site) clap when I wanted the lights to come on.  This quickly became unmanageable since I couldn&#8217;t monitor the states of the lights without a webcam monitoring my room (and I wasn&#8217;t thrilled about securing a webcam in my room that could be hacked into).  This lead into X10 which has done wonders for me over the course of the past two years.</p>
<p>Its funny remembering back to when I first got an x10 system, because the x10 website doesn&#8217;t look like your average store, it looks more like an adult site with lots of flashy banners (ha ha).  I do have to admit, with x10, the initial impression was very deceiving for me, since their products are really good!  Anyways, moving on, My x10 system consists of a USB transceiver module (<a href="http://www.thehomeautomationstore.com/sw31a-cm15a.html">CM15A located here</a>) which connects to my windows server that runs a WAMP (Windows, Apache, MySQL, PHP).  In addition, I have several lamp modules, appliance modules, and remote control wall switches (which wirelessly communicate to the CM15A).</p>
<p>As for the software, I installed the ActiveHome software onto my server (that came with the CM15A).  This software installs a few application libraries (dlls) which enabled programmatic access to the CM15A to send and receive x10 commands over the power lines ran in my apartment.  Using this api, I wrote a quick program that makes a command line based program that can run certain commands.  I have to note that ActiveHome includes a default command line executable, but this didn&#8217;t have all the functionality that I wanted, most notably output in HTML for my web interface.  With the executable I wrote, I simply have the apache web server run the command as a local user which sends the x10 signals over the power lines ran in my apartment.  I should note that I considered using ASP.net which could interface with the API directly, but at the time I wasn&#8217;t very familiar with ASP.net and I wanted to use PHP.  I didn&#8217;t use IIS because I didn&#8217;t have the time to go permissions hunting to figure out why PHP wasn&#8217;t allowed to run programs as a local user on the web server through IIS.  Luckily a standard WAMP install that included Apache and PHP worked out of the box with little configuration.  The WAMP that I used was <a href="http://vertrigo.sourceforge.net/">Vertrigo</a>.</p>
<p>For the IR receiver that controls my projector, I use a <a href="http://www.usbuirt.com/">USB-UIRT</a> that I found on Ebay (I didn&#8217;t feel like waiting the estimated 6 weeks at the time for a new one).  Fortunately, the executable program that was included could send and receive signals from the USB-UIRT that I required, so I wrote some PHP that invokes it for the commands I used.</p>
<p>In 2009, I mentioned that voice control would make its way into my system.  I have to admit that it did!  Unfortunately, it didn&#8217;t last long because of all the bugs that I ran into.  I used the Microsoft speech libraries with a program called <a href="http://smart-butler.com/">SmartButler</a>, which could listen for speech commands and run commands on my server.  I initially used a cheap computer microphone, but quickly found that the interference in the audio made commands very inaccurate, and furthermore, if I held a conversation in the room, my lights would act up!  I figured that a USB professional Condenser Microphone would fix the problem, so I quickly ordered one and integrated it into my system.  This did significantly improve the quality of my system, but normal conversations would still occasionally trigger some of my web control panel controls inaccurately.  The final straw that broke the camel&#8217;s back (and caused this system to get removed) was when my RA (resident advisor), Stephanie came into the room, said hello to me and my lights went out of control (since I didn&#8217;t train it for a higher pitched, female voice, I&#8217;d assume).  I&#8217;d like to approach this problem in the future when I get the time to do it properly, but until then, I&#8217;ve been satisfied with web control panels that both my smartphone and computer can access.</p>
<p>Finally, at the very end of my video, I took a moment to show my<a href="http://www.amazon.com/Cisco-PAP2T-Internet-Adapter-Voice-over-IP/dp/B000HCX7UG"> Linksys PAP Adapter</a> (VoIP, Voice over IP).  This works through a service from <a href="http://voip.ms">voip.ms</a>.  Voip.ms is a prepaid service for VoIP adapters that allows you to buy a phone number for a very reasonable price (even 800 numbers).  They also have really reasonable rates and really good control for those phone numbers.  I thought I&#8217;d provide a plug for them since they are really good.</p>
<p>I would like to add that the Linksys adapter required an unfirewalled IP address to work properly (for incoming calls) in my experience.  It does have a NAT mode for this situation, but the university firewall constantly crushed this mode.  To get around this problem (and allow my web server for x10 to work properly), I implemented OpenVPN on my network and pulled in several public IP addresses and left them unfirewalled.  This solution worked well for me at UB, and I documented it fairly well in my <a href="http://famousphil.com/blog/2010/11/breaking-through-a-restrictive-firewall-with-openvpn/">OpenVPN </a>post.</p>
<p><strong>With nothing more to mention on the topic, here is the video that details my light control system and some other stuff. </strong><br />
<object type="application/x-shockwave-flash" style="width:450px; height:366px;" data="http://www.youtube.com/v/HptR9aZxEZ0"><param name="movie" value="http://www.youtube.com/v/HptR9aZxEZ0" /></object></p>
<p>Of course, I made many bloopers in this video (I improvised a lot!), so I thought the bloopers video would be appropriate.  <strong>Warning, there is a little language in it and the audio isn&#8217;t exactly balanced.<br />
</strong> <object type="application/x-shockwave-flash" style="width:450px; height:366px;" data="http://www.youtube.com/v/kLY3kYRvg4c"><param name="movie" value="http://www.youtube.com/v/kLY3kYRvg4c" /></object></p>
<p>Disclaimer: I was not paid to endorse any of the products above (and I&#8217;m never paid to do that!).  I like to think that when I make a recommendation, it carries a lot of weight with it, which it should!</p>
]]></content:encoded>
			<wfw:commentRss>http://famousphil.com/blog/2011/05/revisiting-my-light-control-system/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>how many engineers does it take to turn on a light bulb?</title>
		<link>http://famousphil.com/blog/2009/08/how-many-engineers-does-it-take-to-turn-on-a-light-bulb/</link>
		<comments>http://famousphil.com/blog/2009/08/how-many-engineers-does-it-take-to-turn-on-a-light-bulb/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 04:29:42 +0000</pubDate>
		<dc:creator>Famous Phil</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[component]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[engineering]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[home automation]]></category>
		<category><![CDATA[ir]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[x10]]></category>

		<guid isPermaLink="false">http://famousphil.com/blog/?p=104</guid>
		<description><![CDATA[It has been a while, but I&#8217;ve been moving back to college and such and haven&#8217;t really had the time to write new blogs about technical topics.  I hope that after this next week is through, my normal college schedule will be finalized and any bugs in the FamousPhil calendar / countdown system will be [...]]]></description>
			<content:encoded><![CDATA[<p>It has been a while, but I&#8217;ve been moving back to college and such and haven&#8217;t really had the time to write new blogs about technical topics.  I hope that after this next week is through, my normal college schedule will be finalized and any bugs in the FamousPhil calendar / countdown system will be fixed (yes, there are bugs <img src='http://famousphil.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  ).  This is a blog that I drafted about 4 months ago, but haven&#8217;t really finished until now, so I feel that now is an appropriate time to open the topic then provide video / photos later.<span id="more-104"></span></p>
<p>So, have you ever been asked the question &#8220;How many bureaucrats does it take to screw in a lightbulb ? &#8221;<br />
, or &#8220;How many consulting engineers does it take to change a light bulb?&#8221;, or even (my favorite): &#8220;How many Microsoft engineers does it take to change a light bulb?&#8221;.  I won&#8217;t answer these here since there are so many jokes and riddles, but if you are curious, look at these 2 addresses (my sources): <a href="http://wilk4.com/humor/humorm321.htm">http://wilk4.com/humor/humorm321.htm</a> and <a href="http://www.twisted.dk/light.htm">http://www.twisted.dk/light.htm</a>.</p>
<p><strong>I now am faced with my own light bulb joke question, but this time, It isn&#8217;t a joke!  It is real life problem solving!</strong></p>
<p>When I automated my room with X10, I began effectively controlling the power line interfaces in my room to physically turn on and turn off appliances and lights in my room.  I wrote an entire web page interface to control my lights from anywhere in the world with my mobile phone.  But I have a few applications for my room that are still not implemented fully, that is, controlling appliances with an infrared remote control (like the tv clicker) from my computer without using the remote and controlling the door lock remotely so my door will be open when I get to it.</p>
<p>I will not be automating the door lock for some time, but I did want to make IR control work in my room.  I purchased all the circuitry components from Radio Shack, and found a guide on building an IR remote for your computer here: <a href="http://www.hardwaresecrets.com/article/86/2">http://www.hardwaresecrets.com/article/86/2</a>.  I then asked a few of my hardware oriented engineering buddies to help me build this circuit (I hate hardware, I&#8217;m a software person).  After numerous attempts, I got a crude version working.  Unfortunately, this version wasn&#8217;t strong enough, so I decided to purchase a commercial solution called <a href="http://usbuirt.com">usbuirt</a>.  It now works perfectly and turns on a light bulb and a few other cool appliances in my room.</p>
<p><strong>So what is this light bulb that takes an infrared input?</strong> Its my projector, quite simply.  My projector has a special (quite pricy too) lightbulb in it that makes it project a computer screen up on my wall.  I have gotten to the point where I didn&#8217;t want to control the project or stereo system via power control (it doesn&#8217;t let the bulb or equipment cool off enough), so I felt that controlling it by the remote so it could always stay on standby would be better.  My system now has a movie mode on it to where this stuff works automatically and I plan on implementing volume adjustments for next semester so the movie automatically stays at a reasonable level for the duration (using a microphone).  This was definitely a cool project to take on and I am so glad that I could get a few engineers together to have a little fun.</p>
<p>So to answer my original question&#8230; how many engineers does it take to turn on this light bulb?  Well, I need to be in this equation because I am the computer scientist that had the problem.  My friend John was in this because he helped me write the software (he is a Computer Engineer).  Two other friends of mine were also present, both Computer Engineers with intensive hardware knowledge with a good software knowledge.  I believe the answer to this equation is 4 engineers (since computer science is considered an engineering major here at UB).</p>
<p>In the near future, I will be implementing voice control using a condenser microphone.  For those of you who don&#8217;t know what this is, its a studio quality microphone that has very little interference to produce the clearest voice possible.  This mic also has a good pickup so the computer will hear me crystal clear across the room.  When I get this part of my project done within a few weeks, I plan on making a followup post providing some of my code (mostly PHP) and how it works.   I also plan on posting a video.</p>
<p>As always, thanks for reading and your comments are definitely appreciated!</p>
]]></content:encoded>
			<wfw:commentRss>http://famousphil.com/blog/2009/08/how-many-engineers-does-it-take-to-turn-on-a-light-bulb/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: famousphil.com @ 2012-05-22 20:09:54 by W3 Total Cache -->
