<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9</title>
    <atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Niners/c4f.Tony-Northrup/Posts/RSS"></atom:link>
    <itunes:summary></itunes:summary>
    <itunes:author>Microsoft</itunes:author>
    <itunes:subtitle></itunes:subtitle>
    <image>
      <url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
      <title>Channel 9</title>
      <link>http://channel9.msdn.com/Niners/c4f.Tony-Northrup/Posts</link>
    </image>
    <itunes:image href=""></itunes:image>
    <itunes:category text="Technology"></itunes:category>
    <description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
    <link>http://channel9.msdn.com/Niners/c4f.Tony-Northrup/Posts</link>
    <language>en</language>
    <pubDate>Thu, 20 Jun 2013 07:10:04 GMT</pubDate>
    <lastBuildDate>Thu, 20 Jun 2013 07:10:04 GMT</lastBuildDate>
    <generator>Rev9</generator>
    <c9:totalResults>3</c9:totalResults>
    <c9:pageCount>1</c9:pageCount>
    <c9:pageSize>25</c9:pageSize>
  <item>
      <title>Controlling Your Computer with X10: Adding Text-To-Speech</title>
      <description><![CDATA[<span id="c4fmetadata">
<table border="0" cellspacing="0" cellpadding="1" width="100%">
<tbody>
<tr class="entry_overview">
<td width="50">&nbsp;</td>
<td><span class="entry_description">This article is continuation in Controlling Contolled Home Automation series. It shows how to control your computer from light switches, motion detectors, alarm switches, and any other X10 transmitting device</span></td>
</tr>
<tr>
<td colspan="2">
<div class="entry_author">Tony Northrup</div>
<div class="entry_company"><a href="http://www.northrup.org/">Tony's Blog</a></div>
<br>
<div class="entry_details"><b>Difficulty: </b><span class="entry_details_input">Intermediate</span></div>
<div class="entry_details"><b>Time Required:</b> <span class="entry_details_input">
1-3 hours</span></div>
<div class="entry_details"><b>Cost: </b><span class="entry_details_input">$50-$100</span></div>
<div class="entry_details"><b>Software: </b><span class="entry_details_input"><a href="http://msdn.com/express/">Visual Basic or Visual C# Express Editions</a></span></div>
<div class="entry_details"><b>Hardware: </b><span class="entry_details_input"></span></div>
<div class="entry_details"><b>Download: </b>
<ul>
<li><a href="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916492/GoodMorning-CS.msi">C# Download</a>
</li><li><a href="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916492/GoodMorning-VB.msi">VB Download</a></li></ul>
</div>
</td>
</tr>
</tbody>
</table>
</span><b>
<li>
<div><a href="http://blogs.msdn.com/coding4fun/archive/2006/10/31/916464.aspx">Part 1</a></div>
</li><li>
<div><a href="http://blogs.msdn.com/coding4fun/archive/2006/10/31/916478.aspx">Part 2</a></div>
</li><li>
<div><a href="http://blogs.msdn.com/coding4fun/archive/2006/10/31/916492.aspx">Part 3</a>&nbsp;</b></div>
<p><b>Video Tutorial Part 3</b></p>
<p><a href="http://download.microsoft.com/download/1/8/2/182200E0-CF87-47D6-87A7-32CB36BBFA42/c4f3-high-bandwidth.wmv"><img border="0" src="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916492/splash.jpg"></a>
</p>
<p>&nbsp;</p>
<p><a href="http://download.microsoft.com/download/1/8/2/182200E0-CF87-47D6-87A7-32CB36BBFA42/c4f3-high-bandwidth.wmv"><img border="0" src="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916492/media6.jpg"></a>
<a href="http://download.microsoft.com/download/1/8/2/182200E0-CF87-47D6-87A7-32CB36BBFA42/c4f3-high-bandwidth.wmv">
Download Video</a> </p>
<p>In the first two videos, I showed you how to control your lights from remote light switches and from your computer. In this video, I'll show you how to control your computer from light switches, motion detectors, alarm switches, and any other X10 transmitting
 device. If you haven't watched the first two videos, watch them before this video. They provide important background on X10 technologies and show you how to connect your computer to an X10 home power-line network.
</p>
<p>To complete this project, you will need at least one X10 transmitter and a <a href="http://www.smarthome.com/1140.html">
CM11a</a>. The CM11a interfaces between your computer and your home power-line network, however, I couldn't find an .NET Framework library that would interpret incoming serial signals from the CM11a. So, with the help of
<a href="http://www.downloadjunction.com/product/store/14328/">a serial port sniffer</a>, I created my own .NET Framework library that can receive (but not send) X10 signals. Incidentally, nothing would thrill me more than if someone extended or improved my
 X10 library, or simply borrowed my code to write something better. </p>
<p>With the help of my library and a tool such as <a href="http://go.microsoft.com/?linkid=2556522">
Microsoft Visual Basic 2005 Express Edition</a> or <a href="http://go.microsoft.com/?linkid=2556523">
Microsoft Visual C# 2005 Express Edition</a>, your computer can respond to real-world events. Anything that can trigger an X10 transmission can trigger a response from your computer. Examples of events include:
</p>
<ul>
<li>Flipping a light switch </li><li>Detecting motion </li><li>Opening a door </li><li>Opening a window </li><li>Flooding in your basement </li><li>Temperatures dropping below freezing </li></ul>
<p>As proof-of-concept, I created a project (available in both <a href="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916492/GoodMorning-CS.msi">
C#</a> and <a href="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916492/GoodMorning-VB.msi">
Visual Basic</a>) that verbally speaks <a href="http://www.engadget.com/">Engadget</a> headlines when I flip the light switch in my office. Don't limit yourself to my example: you can use the technologies in this project in limitless ways, including developing
 a custom security or environmental monitoring system. To trigger events when someone opens a door or window, or during flooding or freezing, connect a
<a href="http://www.smarthome.com/prodindex.asp?catid=144">security</a> or <a href="http://www.smarthome.com/prodindex.asp?catid=396">
environmental</a> sensor to an <a href="http://www.smarthome.com/4060.html">X10 PowerFlash interface</a>.
</p>
<p>Besides X10, my example uses two interesting technologies: Really Simple Syndication (RSS) and speech synthesis. RSS is an application-friendly way to retrieve headlines and newsfeeds from websites such as
<a href="http://www.downloadsquad.com/rss.xml">Download Squad</a>, <a href="http://msdn.microsoft.com/rss.xml">
MSDN</a>, and our very own <a href="http://msdn.microsoft.com/coding4fun/rss.xml">
Coding4Fun</a>. With RSS and <a href="http://www.codeproject.com/csharp/rssframework.asp">
Jerry Maguire's RSS Framework</a>, you can add news-processing capabilities to an application with just a few lines of code.
</p>
<p>Speech synthesis is provided by <a href="http://www.microsoft.com/downloads/details.aspx?familyid=1194ED95-7A23-46A0-BBBC-06EF009C053A&amp;displaylang=en">
Microsoft's own speech library</a>, Interop.Speechlib.dll. With this library, a single line of code makes your computer talk:
</p>
<pre><code></code></pre>
<pre class="csharpcode">Voice.Speak(<span class="str">&quot;Hello, world!&quot;</span>&quot;)</pre>
<style type="text/css">
<!--
.csharpcode, .csharpcode 
	{font-size:small;
	color:black;
	font-family:consolas,"Courier New",courier,monospace;
	background-color:#ffffff}
.csharpcode 
	{margin:0em}
.csharpcode .rem
	{color:#008000}
.csharpcode .kwrd
	{color:#0000ff}
.csharpcode .str
	{color:#006080}
.csharpcode .op
	{color:#0000c0}
.csharpcode .preproc
	{color:#cc6633}
.csharpcode .asp
	{background-color:#ffff00}
.csharpcode .html
	{color:#800000}
.csharpcode .attr
	{color:#ff0000}
.csharpcode .alt
	{background-color:#f4f4f4;
	width:100%;
	margin:0em}
.csharpcode .lnum
	{color:#606060}
-->
</style>
<p>It's that simple, and when you understand the basics of writing code for the .NET Framework, you can combine these technologies in unique ways that meet your needs more perfectly than any software development company could imagine. Get started now by downloading
 either <a href="http://go.microsoft.com/?linkid=2556522">Microsoft Visual Basic 2005 Express Edition</a> or
<a href="http://go.microsoft.com/?linkid=2556523">Microsoft Visual C# 2005 Express Edition</a>, and then watching
<a href="http://download.microsoft.com/download/1/8/2/182200e0-cf87-47d6-87a7-32cb36bbfa42/c4f3-high-bandwidth.wmv">
my video</a>.</p>
</li> <img src="http://m.webtrends.com/dcs1wotjh10000w0irc493s0e_6x1g/njs.gif?dcssip=channel9.msdn.com&dcsuri=http://channel9.msdn.com/Niners/c4f.Tony-Northrup/Posts/RSS&WT.dl=0&WT.entryid=Entry:RSSView:90934f79800847ada28c9e7600d9f63e">]]></description>
      <comments>http://channel9.msdn.com/coding4fun/articles/Controlling-Your-Computer-with-X10-Adding-Text-To-Speech</comments>
      <itunes:summary>



&amp;nbsp;
This article is continuation in Controlling Contolled Home Automation series. It shows how to control your computer from light switches, motion detectors, alarm switches, and any other X10 transmitting device



Tony Northrup
Tony&#39;s Blog

Difficulty: Intermediate
Time Required: 
1-3 hours
Cost: $50-$100
Software: Visual Basic or Visual C# Express Editions
Hardware: 
Download: 

C# Download
VB Download







Part 1

Part 2

Part 3&amp;nbsp;
Video Tutorial Part 3 

 
&amp;nbsp; 


Download Video  
In the first two videos, I showed you how to control your lights from remote light switches and from your computer. In this video, I&#39;ll show you how to control your computer from light switches, motion detectors, alarm switches, and any other X10 transmitting
 device. If you haven&#39;t watched the first two videos, watch them before this video. They provide important background on X10 technologies and show you how to connect your computer to an X10 home power-line network.
 
To complete this project, you will need at least one X10 transmitter and a 
CM11a. The CM11a interfaces between your computer and your home power-line network, however, I couldn&#39;t find an .NET Framework library that would interpret incoming serial signals from the CM11a. So, with the help of
a serial port sniffer, I created my own .NET Framework library that can receive (but not send) X10 signals. Incidentally, nothing would thrill me more than if someone extended or improved my
 X10 library, or simply borrowed my code to write something better.  
With the help of my library and a tool such as 
Microsoft Visual Basic 2005 Express Edition or 
Microsoft Visual C# 2005 Express Edition, your computer can respond to real-world events. Anything that can trigger an X10 transmission can trigger a response from your computer. Examples of events include:
 

Flipping a light switch Detecting motion Opening a door Opening a window Flooding in your basement Temperatures dropping below freezing 
As proof-of-concept, </itunes:summary>
      <link>http://channel9.msdn.com/coding4fun/articles/Controlling-Your-Computer-with-X10-Adding-Text-To-Speech</link>
      <pubDate>Tue, 31 Oct 2006 23:43:00 GMT</pubDate>
      <guid isPermaLink="false">http://channel9.msdn.com/coding4fun/articles/Controlling-Your-Computer-with-X10-Adding-Text-To-Speech</guid>
      <media:thumbnail url="http://ecn.channel9.msdn.com/o9/c4f/images/916492_100.jpg" height="75" width="100"></media:thumbnail>
      <media:thumbnail url="http://ecn.channel9.msdn.com/o9/c4f/images/916492_220.jpg" height="165" width="220"></media:thumbnail>      
      <dc:creator>Tony Northrup</dc:creator>
      <itunes:author>Tony Northrup</itunes:author>
      <slash:comments>6</slash:comments>
      <wfw:commentRss>http://channel9.msdn.com/coding4fun/articles/Controlling-Your-Computer-with-X10-Adding-Text-To-Speech/RSS</wfw:commentRss>
    </item>
  <item>
      <title>Controlling Lights with .NET</title>
      <description><![CDATA[<span id="c4fmetadata">
<table border="0" cellspacing="0" cellpadding="1" width="100%">
<tbody>
<tr class="entry_overview">
<td width="50">&nbsp;</td>
<td><span class="entry_description">This article demonstrates how to control lights from your computer using custom applications written in Visual Basic and Visual C#.</span><br>
</td>
</tr>
<tr>
<td colspan="2">
<div class="entry_author">Tony Northrup</div>
<div class="entry_company"><a href="http://www.northrup.org/">Tony's Blog</a></div>
<br>
<div class="entry_details"><b>Difficulty: </b><span class="entry_details_input">Intermediate</span></div>
<div class="entry_details"><b>Time Required:</b> <span class="entry_details_input">
1-3 hours</span></div>
<div class="entry_details"><b>Cost: </b><span class="entry_details_input">$50-$100</span></div>
<div class="entry_details"><b>Software: </b><span class="entry_details_input"></span></div>
<div class="entry_details"><b>Hardware: </b><span class="entry_details_input"></span></div>
<div class="entry_details"><b>Download: </b> Lost!
</div>
</td>
</tr>
</tbody>
</table>
</span>
<li>
<div><a href="http://blogs.msdn.com/coding4fun/archive/2006/10/31/916464.aspx">Part 1</a></div>
</li><li>
<div><a href="http://blogs.msdn.com/coding4fun/archive/2006/10/31/916478.aspx">Part 2</a></div>
</li><li>
<div><a href="http://blogs.msdn.com/coding4fun/archive/2006/10/31/916492.aspx">Part 3</a></div>
<p><b>Video Tutorial: Controlling Lights with .NET</b> </p>
<p><a href="http://download.microsoft.com/download/1/8/2/182200e0-cf87-47d6-87a7-32cb36bbfa42/Control%20Lights-high.wmv"><img border="0" src="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916478/two-lights.jpg"></a>
</p>
<p><a href="http://download.microsoft.com/download/1/8/2/182200e0-cf87-47d6-87a7-32cb36bbfa42/Control%20Lights-high.wmv"><img border="0" src="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916478/media6.jpg"></a>
<a href="http://download.microsoft.com/download/1/8/2/182200e0-cf87-47d6-87a7-32cb36bbfa42/Control%20Lights-high.wmv">
Download Video</a> </p>
<p>Overview </p>
<p>In the first DIY Tech video, I discussed the basics of the X10 home automation technology, and showed you how to add and replace switches to intelligently control lights in your home. In this video, I take it a step further and show you how to control lights
 from your computer using custom applications written with <a href="http://go.microsoft.com/?linkid=2556522">
Microsoft Visual Basic 2005 Express Edition</a> and <a href="http://go.microsoft.com/?linkid=2556523">
Microsoft Visual C# 2005 Express Edition</a>. </p>
<p>To do this project, you'll need to buy a <a href="http://www.smarthome.com/1140.html">
CM11a serial controller</a> to connect your computer to your X10 power line network. Plug it into your computer's serial port, and then plug it into an available electrical outlet. That's all you need to do to control your lights from your computer by using
 the software that's included with the controller, but that software's not very flexible, and it certainly can't match the power of the .NET Framework.
</p>
<p>To enable you to communicate with the CM11a controller from .NET applications, you need a library. The most reliable library I have found is at
<a href="http://www.craigscreations.com/projects.htm">CraigsCreations.com</a> When you create your project, you'll need to add a reference to the X10 library and to the included serial port library. If you're not sure how to do this, don't worry, because I
 walk you through the process step-by-step in my videos. </p>
<p>Now that you can control your lights and other appliances from a .NET Framework application, the creative possibilities are limitless. I've always been fascinated with devices that physically show real-life information, like the
<a href="http://www.engadget.com/entry/1234000477023533/">BT Ambient Orb</a>. However, I'm frustrated with their limitations:
</p>
<ul>
<li>They can't be controlled from your local computer, but instead must be configured from a Web site
</li><li>They can't be directly controlled by custom applications </li><li>They require you to pay a monthly fee for access to some types of data</li></ul>
<p>So, for my project (available in both <a href="http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=69B98523-8698-491B-9CC4-37FA6830FDB5">
C#</a> and <a href="http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=07A55411-C637-4478-8BE3-F3473EE62C73">
Visual Basic</a>), I decided to build my own lamp to visually show how well a stock is performing. I took a very binary approach, as shown in Figure 1. Naturally, any colored lights will do-you can even build your own glowing orb by placing red and green strings
 of Christmas lights in an opaque plastic sphere. </p>
<p>If the stock is going up, my application turns the green light on. If the stock is going down, it turns the red light on. To retrieve the stock information, my application queries the
<a href="http://www.xmethods.net/ve2/ViewListing.po;jsessionid=C_WwjOXpCMLyQVYRiUj98cRs%28QHyMHiRM%29?key=uuid:889A05A5-5C03-AD9B-D456-0E54A527EDEE">
Delayed Stock Quote</a> Web service at <a href="http://www.xmethods.net/">XMethods.net</a>.
</p>
<p>This is a very simple demonstration that you can either build yourself or customize to your own needs. By adding just a few lines of code, you can use the red and green lights to indicate the weather forecast, traffic patterns, the number of visitors to
 your blog, or whether <a href="http://slashdot.org/">Slashdot</a> has been updated. You can also turn lights on or off in varying degrees by using X10 dimming capabilities. That's the amazing thing about writing your own code-the power to control the exact
 behavior of your software. </p>
<p>Get started now by downloading either <a href="http://go.microsoft.com/?linkid=2556522">
Microsoft Visual Basic 2005 Express Edition</a> or <a href="http://go.microsoft.com/?linkid=2556523">
Microsoft Visual C# 2005 Express Edition</a>, and then watching <a href="mms://wm.microsoft.com/ms/msdn/coding4fun/diy/controlLights/Control%20Lights-low.wmv">
my video</a>. </p>
<p>&nbsp;</p>
</li> <img src="http://m.webtrends.com/dcs1wotjh10000w0irc493s0e_6x1g/njs.gif?dcssip=channel9.msdn.com&dcsuri=http://channel9.msdn.com/Niners/c4f.Tony-Northrup/Posts/RSS&WT.dl=0&WT.entryid=Entry:RSSView:3988ff17300d4173b6239e7600d9fc88">]]></description>
      <comments>http://channel9.msdn.com/coding4fun/articles/Controlling-Lights-with-NET</comments>
      <itunes:summary>



&amp;nbsp;
This article demonstrates how to control lights from your computer using custom applications written in Visual Basic and Visual C#.




Tony Northrup
Tony&#39;s Blog

Difficulty: Intermediate
Time Required: 
1-3 hours
Cost: $50-$100
Software: 
Hardware: 
Download:  Lost!







Part 1

Part 2

Part 3
Video Tutorial: Controlling Lights with .NET  

 


Download Video  
Overview  
In the first DIY Tech video, I discussed the basics of the X10 home automation technology, and showed you how to add and replace switches to intelligently control lights in your home. In this video, I take it a step further and show you how to control lights
 from your computer using custom applications written with 
Microsoft Visual Basic 2005 Express Edition and 
Microsoft Visual C# 2005 Express Edition.  
To do this project, you&#39;ll need to buy a 
CM11a serial controller to connect your computer to your X10 power line network. Plug it into your computer&#39;s serial port, and then plug it into an available electrical outlet. That&#39;s all you need to do to control your lights from your computer by using
 the software that&#39;s included with the controller, but that software&#39;s not very flexible, and it certainly can&#39;t match the power of the .NET Framework.
 
To enable you to communicate with the CM11a controller from .NET applications, you need a library. The most reliable library I have found is at
CraigsCreations.com When you create your project, you&#39;ll need to add a reference to the X10 library and to the included serial port library. If you&#39;re not sure how to do this, don&#39;t worry, because I
 walk you through the process step-by-step in my videos.  
Now that you can control your lights and other appliances from a .NET Framework application, the creative possibilities are limitless. I&#39;ve always been fascinated with devices that physically show real-life information, like the
BT Ambient Orb. However, I&#39;m frustrated with their limitations:
 

They can&#39;t be controlled from your local computer, </itunes:summary>
      <link>http://channel9.msdn.com/coding4fun/articles/Controlling-Lights-with-NET</link>
      <pubDate>Tue, 31 Oct 2006 23:39:00 GMT</pubDate>
      <guid isPermaLink="false">http://channel9.msdn.com/coding4fun/articles/Controlling-Lights-with-NET</guid>
      <media:thumbnail url="http://ecn.channel9.msdn.com/o9/c4f/images/916478_100.jpg" height="75" width="100"></media:thumbnail>
      <media:thumbnail url="http://ecn.channel9.msdn.com/o9/c4f/images/916478_220.jpg" height="165" width="220"></media:thumbnail>      
      <dc:creator>Tony Northrup</dc:creator>
      <itunes:author>Tony Northrup</itunes:author>
      <slash:comments>11</slash:comments>
      <wfw:commentRss>http://channel9.msdn.com/coding4fun/articles/Controlling-Lights-with-NET/RSS</wfw:commentRss>
    </item>
  <item>
      <title>Using X10 Hardware: Computer-Controlled Home Automation</title>
      <description><![CDATA[<span id="c4fmetadata">
<table border="0" cellspacing="0" cellpadding="1" width="100%">
<tbody>
<tr class="entry_overview">
<td width="50">&nbsp;</td>
<td><span class="entry_description">This article showcases usage of X10 technology to interact with hardware devices. It is first article in Computer Controller Home Automation series.</span></td>
</tr>
<tr>
<td colspan="2">
<div class="entry_author">Tony Northrup</div>
<div class="entry_company"><a href="http://www.northrup.org/">Tony's Blog</a></div>
<br>
<div class="entry_details"><b>Difficulty: </b><span class="entry_details_input">Intermediate</span></div>
<div class="entry_details"><b>Time Required:</b> <span class="entry_details_input">
1-3 hours</span></div>
<div class="entry_details"><b>Cost: </b><span class="entry_details_input">$50-$100</span></div>
<div class="entry_details"><b>Software: </b><span class="entry_details_input"><a href="http://msdn.com/express/">Visual Basic or Visual C# Express Editions</a></span></div>
<div class="entry_details"><b>Hardware: </b><span class="entry_details_input"></span></div>
<div class="entry_details"><b>Download: </b><a href="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916464/DirectXmasScreenSaver.msi">Download</a>
</div>
</td>
</tr>
</tbody>
</table>
</span>
<ul>
<li>
<div><a href="http://blogs.msdn.com/coding4fun/archive/2006/10/31/916464.aspx">Part 1</a></div>
</li><li>
<div><a href="http://blogs.msdn.com/coding4fun/archive/2006/10/31/916478.aspx">Part 2</a></div>
</li><li>
<div><a href="http://blogs.msdn.com/coding4fun/archive/2006/10/31/916492.aspx">Part 3</a></div>
</li></ul>
<p><b>What is X10</b></p>
<p>X10 is a home automation technology that anyone can use to do some pretty amazing things:
</p>
<ul>
<li>Add a wall light switch without running any wires </li><li>Turn your porch light on from your car </li><li>Add a light switch to your bedside table </li><li>Turn off all the lights in your house by pressing a single button </li><li>Sound an alarm if someone opens a door or window</li></ul>
<p><b></b></p>
<p><b>X10 is Programmable</b> </p>
<p>You can also combine X10 technologies with your computer and custom applications written with Microsoft Visual Basic Express or Microsoft Visual C# Express. With logic provided by your custom application, you can make some stunning upgrades to your home:
</p>
<ul>
<li>Receive an e-mail notification if someone unexpectedly opens a door or window
</li><li>Send a message to your mobile phone if your basement floods </li><li>Monitor video of your property across the Internet—for less than $200 in hardware
</li><li>Turn on your home air-conditioning from work, so your home is cool when you arrive
</li><li>Control whether your kids can watch TV or play games from work </li><li>Monitor pets to make sure they're healthy and eating while you're on vacation
</li><li>Have your porch light turn on when it gets dark in the evening, and turn off after everyone is home
</li><li>Build a complex security system that uses any logic and alarm mechanisms you can dream up</li></ul>
<p><b></b>&nbsp;</p>
<p><b>How X10 Works</b></p>
<p>X10 works by sending communication signals through your home's power lines, much like the way computers communicate across a network. X10 is a very simple network, though, and signals consist mostly of messages like, “Device A1: turn on” or “Device N5: turn
 off.” X10 is also capable of a few other commands, including dimming lights, or controlling all the lights in your house.
</p>
<p>When you connect a light switch, lamp module, or other X10 device, you have to assign it a house code (A-P) and unit code (1-16). Typically, you will choose a single house code for all of the X10 devices in your house. While the default is A, it's a good
 idea to change the default, because X10 signals sometimes cross from one house to the next—and you don't want your neighbor to accidentally turn your lights off.
</p>
<p>If you assign X10 devices the same house and unit codes, all the devices will respond simultaneously to a signal. For example, I have two lamps in my bedroom that I always want to turn on or off at the same time. So, I assigned them both the N1 house and
 unit code. When I push a switch to turn N1 on or off, they both respond. </p>
<p>There's a wireless version of X10 that allows you to send X10 signals from wireless motion detectors, keychain remotes, and wireless wall switches. As shown in Figure 1, an X10 wireless transceiver receives wireless X10 signals and sends them across your
 power lines so that wired X10 devices can respond to the commands. </p>
<p><i><img title="Wireless X10 devices" alt="Wireless X10 devices" src="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916464/image001.jpg" width="485"></i>
</p>
<p><i>Figure 1: Wireless X10 devices require a wireless transceiver.</i> </p>
<p>The video shows me tackling two very common problems in my 1950's era home. First, in my bedroom (Figure 2), I use two lamps to light the room. It's annoying to have to walk across the room in the dark to turn them on, and then to reach across the bed to
 turn them off at night. I fixed this in about ten minutes with about $100 in X10 hardware. Now, I can turn both lights on and off from a wall switch, or control them from my bedside table. As an added bonus, I can now dim the lights.
</p>
<p><i><img title="Adding remote switches" alt="Adding remote switches" src="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916464/image002.jpg" width="485"></i>
</p>
<p><i>Figure 2: In the first project, I add remote switches to control two bedside lamps.</i>
</p>
<p>The second problem is in my office. I have a light switch, but the light it controls is too dim. So, when I go into my office, I flip the light switch on, and then walk across my office to turn on a floor lamp. With another $100 investment in X10 hardware
 and about 30 minutes time, I replaced my wall switch with an X10 switch capable of controlling both the built-in light and my floor lamp, as shown in Figure 3. Now, with a single flick, I can control all the lights in my office.
</p>
<p><i><img title="Replacing light switch" alt="Replacing light switch" src="http://ecn.channel9.msdn.com/o9/c4fcontent/migration/916464/image003.jpg" width="485"></i>
</p>
<p><i>Figure 3: In the second project, I replace an existing light switch so it can control an additional lamp.</i>
</p>
<p>This video provides an important background in X10 technology and shows you how easy it is to hook everything up. I'm really just getting started, though, because in future videos I'll connect the whole X10 system to my computer. I've got several projects
 in mind, and I might even use that new wall switch in my office to have my computer start automatically downloading my e-mail for me in the morning, and backing up my computer in the evening.</p>
 <img src="http://m.webtrends.com/dcs1wotjh10000w0irc493s0e_6x1g/njs.gif?dcssip=channel9.msdn.com&dcsuri=http://channel9.msdn.com/Niners/c4f.Tony-Northrup/Posts/RSS&WT.dl=0&WT.entryid=Entry:RSSView:b325cb32632d47d4a6779e7600da07e0">]]></description>
      <comments>http://channel9.msdn.com/coding4fun/articles/Using-X10-Hardware-Computer-Controlled-Home-Automation</comments>
      <itunes:summary>



&amp;nbsp;
This article showcases usage of X10 technology to interact with hardware devices. It is first article in Computer Controller Home Automation series.



Tony Northrup
Tony&#39;s Blog

Difficulty: Intermediate
Time Required: 
1-3 hours
Cost: $50-$100
Software: Visual Basic or Visual C# Express Editions
Hardware: 
Download: Download








Part 1

Part 2

Part 3

What is X10 
X10 is a home automation technology that anyone can use to do some pretty amazing things:
 

Add a wall light switch without running any wires Turn your porch light on from your car Add a light switch to your bedside table Turn off all the lights in your house by pressing a single button Sound an alarm if someone opens a door or window
 
X10 is Programmable  
You can also combine X10 technologies with your computer and custom applications written with Microsoft Visual Basic Express or Microsoft Visual C# Express. With logic provided by your custom application, you can make some stunning upgrades to your home:
 

Receive an e-mail notification if someone unexpectedly opens a door or window
Send a message to your mobile phone if your basement floods Monitor video of your property across the Internet—for less than $200 in hardware
Turn on your home air-conditioning from work, so your home is cool when you arrive
Control whether your kids can watch TV or play games from work Monitor pets to make sure they&#39;re healthy and eating while you&#39;re on vacation
Have your porch light turn on when it gets dark in the evening, and turn off after everyone is home
Build a complex security system that uses any logic and alarm mechanisms you can dream up
&amp;nbsp; 
How X10 Works 
X10 works by sending communication signals through your home&#39;s power lines, much like the way computers communicate across a network. X10 is a very simple network, though, and signals consist mostly of messages like, “Device A1: turn on” or “Device N5: turn
 off.” X10 is also capable of a few other commands, including dimming lights, or </itunes:summary>
      <link>http://channel9.msdn.com/coding4fun/articles/Using-X10-Hardware-Computer-Controlled-Home-Automation</link>
      <pubDate>Tue, 31 Oct 2006 23:33:00 GMT</pubDate>
      <guid isPermaLink="false">http://channel9.msdn.com/coding4fun/articles/Using-X10-Hardware-Computer-Controlled-Home-Automation</guid>
      <media:thumbnail url="http://ecn.channel9.msdn.com/o9/c4f/images/916464_100.jpg" height="75" width="100"></media:thumbnail>
      <media:thumbnail url="http://ecn.channel9.msdn.com/o9/c4f/images/916464_220.jpg" height="165" width="220"></media:thumbnail>      
      <dc:creator>Tony Northrup</dc:creator>
      <itunes:author>Tony Northrup</itunes:author>
      <slash:comments>5</slash:comments>
      <wfw:commentRss>http://channel9.msdn.com/coding4fun/articles/Using-X10-Hardware-Computer-Controlled-Home-Automation/RSS</wfw:commentRss>
    </item>    
</channel>
</rss>