<?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>Import Soul &#187; MSN Wallchart</title>
	<atom:link href="http://www.importsoul.net/category/arduino/wallchart/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.importsoul.net</link>
	<description>Wouldn’t it be nice if things just worked</description>
	<lastBuildDate>Fri, 14 Oct 2011 00:52:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Arduino and MSN</title>
		<link>http://www.importsoul.net/arduino/wallchart/arduino-and-msn/</link>
		<comments>http://www.importsoul.net/arduino/wallchart/arduino-and-msn/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 07:41:44 +0000</pubDate>
		<dc:creator>Hugoagogo</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[MSN Wallchart]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.importsoul.net/?p=109</guid>
		<description><![CDATA[Since somebody asked i have written up how to get MSN and Arduino to communicate. Firstly, i use Windows Live Messenger Plus (Go here to find out about it if you dont have it). MSN Plus allows you to download plug-ins for MSN, and it mean you can write your own, the scripts are written [...]]]></description>
			<content:encoded><![CDATA[<p>Since somebody asked i have written up how to get MSN and Arduino to communicate.</p>
<p>Firstly, i use Windows Live Messenger Plus (Go <a href="http://www.msgplus.net/">here</a> to find out about it if you dont have it). MSN Plus allows you to download plug-ins for MSN, and it mean you can write your own, the scripts are written in a variant of Microsoft's JScript 5.6.</p>
<p>From there all i had to do was find out how to connect to a serial port useing JScript, i found you could open a serial port like a file like this</p>
<pre class="brush: jscript:nocontrols">com = fso.OpenTextFile("COM7:9600,N,8,1",2);</pre>
<p>However that only seemed to work if the serial port had been opened previously so i kind of cheated and just made a Python file that opens the serial port and then disconnects.</p>
<pre class="brush: python:nocontrols">import serial
import time

ser = serial.Serial('COM7',9600)
time.sleep(2) ## wait for the arduino to do its software reset thing
ser.close()</pre>
<p>Now that that the msn is able to connect to the Arduino is simple to write strings to it but don't forget to close it and don't forget that when you close the serial connection the Arduino resets.</p>
<pre class="brush: jscript:nocontrols">com = fso.OpenTextFile("COM7:9600,N,8,1",2);
com.Write("Something");
com.Close();</pre>
<p>I wont post the full code here for my script to turn on msn lights unless somebody particularly wants it as i don't think it is written very well</p>
<pre class="brush: jscript:nocontrols">function OnEvent_Initialize(MessengerStart)
{
fso = new ActiveXObject("Scripting.FileSystemObject");

// run the python script that wakes up the serial port
oShell = new ActiveXObject("WScript.Shell");
var command = "\"C:\\Program Files\\Python25\\python.exe\" \"C:\\Program Files\\Messenger Plus! Live\\Scripts\\wallchart\\open.py\"";
Debug.Trace(oShell.Run( command,0,true)); // wait for it to finish

// Connect to the serial port make sure you wait at least 2 seconds before writeing to it
fso = new ActiveXObject("Scripting.FileSystemObject");
com = fso.OpenTextFile("COM7:9600,N,8,1",2);
}

function OnEvent_ContactSignIn(email)
{
// Say something about who logged in to the serial
com.Write(data);
}

function OnEvent_ContactSignOut(email)
{
// Say something about who logged out to the serial
com.Write(data);
}

function OnEvent_Uninitialize(MessengerStart)
{
// Close the serial port when messenger closes
com.Close()
Debug.Trace("Closed");
}</pre>
<p>Well that's it and i hope i managed to explain how to get MSN and arduino to talk to each other, there are many more events that would could catch data from to send to the arduino i recommend for people to read though the MSN plus developers manual <a href="http://www.msgplus.net/scripts/view/13-Official-Scripting-Documentation/">here</a></p>
<p>Also this method is slightly flawed in that it is one way, i will look into a way that can read and write data to the serial port without disconnecting and reconnecting.</p>
<p>Good luck</p>
<p>EDIT: Raymond found out that this method only works with single digit COM ports e.g. COM7 as opposed to COM15</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em><hr>Add to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.importsoul.net/arduino/wallchart/arduino-and-msn/&amp;title=Arduino+and+MSN" title="Add 'Arduino and MSN' to digg"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Arduino and MSN' to digg" alt="Add 'Arduino and MSN' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://www.importsoul.net/arduino/wallchart/arduino-and-msn/&amp;title=Arduino+and+MSN" title="Add 'Arduino and MSN' to Stumble Upon"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Arduino and MSN' to Stumble Upon" alt="Add 'Arduino and MSN' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.importsoul.net/arduino/wallchart/arduino-and-msn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MSN Wallchart V3</title>
		<link>http://www.importsoul.net/arduino/wallchart/msn-wallchart-v3/</link>
		<comments>http://www.importsoul.net/arduino/wallchart/msn-wallchart-v3/#comments</comments>
		<pubDate>Sun, 21 Jun 2009 06:21:41 +0000</pubDate>
		<dc:creator>Hugoagogo</dc:creator>
				<category><![CDATA[MSN Wallchart]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[wall chart]]></category>

		<guid isPermaLink="false">http://www.importsoul.net/?p=58</guid>
		<description><![CDATA[Got round to finishing this project up and giving it its own box and reprinting the photos, it ended up looking quite good. I also added a little buzzer for when people log in. Doing the wiring on the the back was very frustrating, i spent a few hours doing it, and yes it is [...]]]></description>
			<content:encoded><![CDATA[<p>Got round to finishing this project up and giving it its own box and reprinting the photos, it ended up looking quite good. I also added a little buzzer for when people log in.</p>
<div id="attachment_59" class="wp-caption aligncenter" style="width: 268px"><img class="size-full wp-image-59" title="MSN Wallchart - Done" src="http://www.importsoul.net/wp-content/uploads/2009/06/DOE-Silver-1-006.JPG" alt="Finished and hung at last" width="258" height="358" /><p class="wp-caption-text">Finished and hung at last</p></div>
<div id="attachment_60" class="wp-caption aligncenter" style="width: 187px"><img class="size-full wp-image-60" title="MSN Wallchart - Side" src="http://www.importsoul.net/wp-content/uploads/2009/06/DOE-Silver-1-003.JPG" alt="On off button, Beep switch, Computer connection" width="177" height="314" /><p class="wp-caption-text">On off button, Beep switch, Computer connection</p></div>
<div id="attachment_61" class="wp-caption aligncenter" style="width: 285px"><img class="size-full wp-image-61" title="MSN Wallchart - Back" src="http://www.importsoul.net/wp-content/uploads/2009/06/DOE-Silver-1-002.JPG" alt="Usualy covered by a pannel, and yes my soldering is messy" width="275" height="448" /><p class="wp-caption-text">Usualy covered by a pannel, and yes my soldering is messy</p></div>
<p>Doing the wiring on the the back was very frustrating, i spent a few hours doing it, and yes it is messy, very very messy</p>
<h2>Project complete</h2>
<p>Edit: i have since switched the arduino Decimila for a Stickduino (a cheaper bare bones arduino clone) so i can reclaim my arduino for other projects</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em><hr>Add to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.importsoul.net/arduino/wallchart/msn-wallchart-v3/&amp;title=MSN+Wallchart+V3" title="Add 'MSN Wallchart V3' to digg"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'MSN Wallchart V3' to digg" alt="Add 'MSN Wallchart V3' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://www.importsoul.net/arduino/wallchart/msn-wallchart-v3/&amp;title=MSN+Wallchart+V3" title="Add 'MSN Wallchart V3' to Stumble Upon"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'MSN Wallchart V3' to Stumble Upon" alt="Add 'MSN Wallchart V3' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.importsoul.net/arduino/wallchart/msn-wallchart-v3/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>MSN Wallchart V2</title>
		<link>http://www.importsoul.net/arduino/wallchart/msn-wallchart-v2/</link>
		<comments>http://www.importsoul.net/arduino/wallchart/msn-wallchart-v2/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 08:18:12 +0000</pubDate>
		<dc:creator>Hugoagogo</dc:creator>
				<category><![CDATA[MSN Wallchart]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[wall chart]]></category>

		<guid isPermaLink="false">http://www.importsoul.net/?p=44</guid>
		<description><![CDATA[Figured out how to make MSN scripts communicate directly with the audrino board removeing the python middle stage,  now the lights actualy turn off by themselves when the computer shuts down.  Instead of the more manual method off pulling the cord out. Add to]]></description>
			<content:encoded><![CDATA[<p>Figured out how to make MSN scripts communicate directly with the audrino board removeing the python middle stage,  now the lights actualy turn off by themselves when the computer shuts down.  Instead of the more manual method off pulling the cord out.</p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em><hr>Add to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.importsoul.net/arduino/wallchart/msn-wallchart-v2/&amp;title=MSN+Wallchart+V2" title="Add 'MSN Wallchart V2' to digg"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'MSN Wallchart V2' to digg" alt="Add 'MSN Wallchart V2' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://www.importsoul.net/arduino/wallchart/msn-wallchart-v2/&amp;title=MSN+Wallchart+V2" title="Add 'MSN Wallchart V2' to Stumble Upon"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'MSN Wallchart V2' to Stumble Upon" alt="Add 'MSN Wallchart V2' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.importsoul.net/arduino/wallchart/msn-wallchart-v2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MSN Wallchart</title>
		<link>http://www.importsoul.net/arduino/wallchart/msn-wallchart/</link>
		<comments>http://www.importsoul.net/arduino/wallchart/msn-wallchart/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 23:03:14 +0000</pubDate>
		<dc:creator>Hugoagogo</dc:creator>
				<category><![CDATA[MSN Wallchart]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[wall chart]]></category>

		<guid isPermaLink="false">http://www.importsoul.net/?p=19</guid>
		<description><![CDATA[Last weekend i finally found a good use for the Audrino Diecimila board that i got given to participate in the beta of NCSS/NICTA Embedded Challenge The project was inspired by the wall in thunder birds where the eyes in peoples portraits light up when they are calling My projects turns on and off LEDs [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">Last weekend i finally found a good use for the Audrino Diecimila board that i got given to participate in the beta of NCSS/NICTA Embedded Challenge</p>
<p>The project was inspired by the wall in thunder birds where the eyes in peoples portraits light up when they are calling</p>
<p>My projects turns on and off LEDs depending on which people are logged into MSN. I probably have made it work in a very roundabout way going from MSN plus scripting to Python and finally Audrino which then decides which lights to turn on and off.</p>
<p>When i have time i am going to redo this project, give it its own board and try to remove the python midway stage on the software side of things</p>
<p style="text-align: center;"><a href="http://www.importsoul.net/wp-content/uploads/2009/06/Project-011.JPG"><img class="aligncenter size-full wp-image-18" title="MSN Wallchart" src="http://www.importsoul.net/wp-content/uploads/2009/06/Project-011.JPG" alt="MSN Wallchart" width="250" height="490" /></a></p>
<!-- Social Bookmarking Reloaded BEGIN --><div class="social_bookmark"><em><hr>Add to</em><br /><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://www.importsoul.net/arduino/wallchart/msn-wallchart/&amp;title=MSN+Wallchart" title="Add 'MSN Wallchart' to digg"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'MSN Wallchart' to digg" alt="Add 'MSN Wallchart' to digg" /></a><a class="social_img" onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,border=0,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://www.importsoul.net/arduino/wallchart/msn-wallchart/&amp;title=MSN+Wallchart" title="Add 'MSN Wallchart' to Stumble Upon"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'MSN Wallchart' to Stumble Upon" alt="Add 'MSN Wallchart' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.importsoul.net/arduino/wallchart/msn-wallchart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

