<?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; Arduino</title>
	<atom:link href="http://www.importsoul.net/category/arduino/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>Interactive Donation Box &#8211; Behind the scenes</title>
		<link>http://www.importsoul.net/arduino/interactive-donation-box-behind-the-scenes/</link>
		<comments>http://www.importsoul.net/arduino/interactive-donation-box-behind-the-scenes/#comments</comments>
		<pubDate>Fri, 14 Oct 2011 00:08:34 +0000</pubDate>
		<dc:creator>Hugoagogo</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[D&T Major Project]]></category>
		<category><![CDATA[Major Project]]></category>
		<category><![CDATA[Woodwork]]></category>

		<guid isPermaLink="false">http://www.importsoul.net/?p=775</guid>
		<description><![CDATA[This is a follow up article to explain the inner working of my interactive donation box if you don't have a clue what this is see my other post HERE. Besides all the visible track elements who's operation is clearly visible there are a number of hidden aspects of the machine. The main part of [...]]]></description>
			<content:encoded><![CDATA[<p>This is a follow up article to explain the inner working of my interactive donation box if you don't have a clue what this is see my other post <a href="http://www.importsoul.net/uncategorized/interactive-donation-box-2/">HERE</a>. Besides all the visible track elements who's operation is clearly visible there are a number of hidden aspects of the machine.</p>
<p>The main part of this is the mechanism for sorting and counting coins (See video below). For this i used a mechanical system of sorting the coins based upon their size. I had originally used this system in a money box that sorted coins into different trays, and knew of a few things that would greatly improve its performance. Firstly to make the back rest out of some kind of plastic material so that its finish will remain much more constant than with wood which  gradually changed over time as the finish was absorbed or rubbed off, the other improvement to be made was to use rectangular holes for the coins to fall though instead of circular holes, this just allows the coins longer to fall though their holes, making it virtually impossible for them to miss their hole.</p>
<div id="attachment_776" class="wp-caption aligncenter" style="width: 560px"><a href="http://www.importsoul.net/wp-content/uploads/2011/10/Money-box.jpg"><img src="http://www.importsoul.net/wp-content/uploads/2011/10/Money-box-550x411.jpg" alt="" title="Money box" width="550" height="411" class="size-medium wp-image-776" /></a><p class="wp-caption-text">A coin sorting money box that i made for a junior D&#038;T course</p></div>
<p>After the creation of this video i made a few change to the sorter to improved it's reliability, mainly replacing the front guide that stops coins jumping off their tracks with a stiffer version to stop 20c coins sometimes escaping off the front.</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/PRXbwIWRF_I?hd=1" frameborder="0" allowfullscreen></iframe></p>
<p>To detect the coins after they had been sorted i decided upon using a beam break system as this would mean i could reliably detect the coins even without having to worry about if the coins were heavy enough to set off a micro-switch. So i simply have a row of leds on one side of the slots the coins fall though after being sorted and a row of Light dependent resistors on the other, these are hooked up to analog in pins on the arduino controlling the system.</p>
<p>After a coin has been detected the program is quite simple, a certain value is added to the counter depending on what coin has been inserted, the lift i turned on whenever this value is non-zero and the counter is decremented whenever a marble passes a micro-switch hidden within one of the lift guides.</p>
<p>There are only a few things that i would like to do in the future, the main being to reclaim my arduino out of the back of the display, probably replacing it with a <a href="http://e2e.ti.com/group/msp430launchpad/w/default.aspx">MSP430</a> chip as these are very cheap (under a dollar) meaning i could reclaim my arduino for future projects.</p>
<p>Edit: If you are interested on more details on the construction of this project i have now made my portfolio available <a href="http://www.importsoul.net/mp/dt-mp/interactive-donation-box-folio/">HERE</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/interactive-donation-box-behind-the-scenes/&amp;title=Interactive+Donation+Box+%26%238211%3B+Behind+the+scenes" title="Add 'Interactive Donation Box &#8211; Behind the scenes' to digg"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Interactive Donation Box &#8211; Behind the scenes' to digg" alt="Add 'Interactive Donation Box &#8211; Behind the scenes' 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/interactive-donation-box-behind-the-scenes/&amp;title=Interactive+Donation+Box+%26%238211%3B+Behind+the+scenes" title="Add 'Interactive Donation Box &#8211; Behind the scenes' to Stumble Upon"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Interactive Donation Box &#8211; Behind the scenes' to Stumble Upon" alt="Add 'Interactive Donation Box &#8211; Behind the scenes' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.importsoul.net/arduino/interactive-donation-box-behind-the-scenes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Interactive Donation Box</title>
		<link>http://www.importsoul.net/arduino/interactive-donation-box-2/</link>
		<comments>http://www.importsoul.net/arduino/interactive-donation-box-2/#comments</comments>
		<pubDate>Wed, 28 Sep 2011 13:26:45 +0000</pubDate>
		<dc:creator>Hugoagogo</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[D&T Major Project]]></category>
		<category><![CDATA[Major Project]]></category>
		<category><![CDATA[Woodwork]]></category>
		<category><![CDATA[coin sorter]]></category>
		<category><![CDATA[coins]]></category>
		<category><![CDATA[design and technology]]></category>
		<category><![CDATA[donation]]></category>
		<category><![CDATA[donation box]]></category>
		<category><![CDATA[wood]]></category>

		<guid isPermaLink="false">http://www.importsoul.net/?p=738</guid>
		<description><![CDATA[Well it was right down to the line but i managed to get my Design and Technology project finished and ready for marking, just... I only had confirmation that all the parts of the project played nicely together after rapidly programming it and getting to put coins into it for the first time at 3AM [...]]]></description>
			<content:encoded><![CDATA[<p>Well it was right down to the line but i managed to get my Design and Technology project finished and ready for marking, just... I only had confirmation that all the parts of the project played nicely together after rapidly programming it and getting to put coins into it for the first time at 3AM on the morning it was due. After a quick dash to office works at 7AM i was ready at school to hand my project in on time at 9AM.</p>
<p>Even though the projects design had to be greatly modified from its original 3 window design a I am really happy with how well the project has turned out and with all of the really positive responses I have got from other students and teachers. Without any more words here is the project.</p>
<p><a href="http://www.importsoul.net/wp-content/uploads/2011/09/Box1.jpg"><img class="aligncenter size-medium wp-image-739" title="Interactive donation box" src="http://www.importsoul.net/wp-content/uploads/2011/09/Box1-550x295.jpg" alt="" width="550" height="295" /></a></p>
<p>Just in-case you haven't read my previous posts from way back about what the donation box actually is, here is a quick summary.</p>
<p>When somebody puts a coin into the machine it is sorted by currency and depending on the value of the coin a certain number of marbles are sent though a marble run (i decided on the rate of 1 marble per 10c). The idea of the project is that if it is made more interesting for people to donate then people are much more likely to make a contribution.</p>
<p>To better display this here is a video of the project in action</p>
<p><iframe width="560" height="315" src="http://www.youtube.com/embed/o9x67hMLXt8" frameborder="0" allowfullscreen></iframe></p>
<p>Also thanks to MWandel of <a href="woodgears.ca">woodgears.ca</a> for his gear template generator and general articles on marble machines that made me pick this as a project</p>
<p><del datetime="2011-10-14T00:11:22+00:00">After i finish up with UNI preferences and scholarship applications i will hopefully have some more info up on what goes on behind the project</del></p>
<p>Edit: I now have another post up detailing some of the inner workings of the project <a href="http://www.importsoul.net/arduino/interactive-donation-box-behind-the-scenes/">HERE</a></p>
<p>Edit: If you are interested on more details on the construction of this project i have now made my portfolio available <a href="http://www.importsoul.net/mp/dt-mp/interactive-donation-box-folio/">HERE</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/interactive-donation-box-2/&amp;title=Interactive+Donation+Box" title="Add 'Interactive Donation Box' to digg"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Interactive Donation Box' to digg" alt="Add 'Interactive Donation Box' 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/interactive-donation-box-2/&amp;title=Interactive+Donation+Box" title="Add 'Interactive Donation Box' to Stumble Upon"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Interactive Donation Box' to Stumble Upon" alt="Add 'Interactive Donation Box' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.importsoul.net/arduino/interactive-donation-box-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Recycled Zero Cost 3D Scanner</title>
		<link>http://www.importsoul.net/python/recycled-zero-cost-3d-scanner/</link>
		<comments>http://www.importsoul.net/python/recycled-zero-cost-3d-scanner/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 06:39:55 +0000</pubDate>
		<dc:creator>Hugoagogo</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Woodwork]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[3d scanner]]></category>
		<category><![CDATA[blender]]></category>
		<category><![CDATA[design and technology]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[recycled]]></category>
		<category><![CDATA[school]]></category>

		<guid isPermaLink="false">http://www.importsoul.net/?p=438</guid>
		<description><![CDATA[This is another one of the projects I have done for Design and Technology at school. This time it is for a Year 11 minor project where we had to design the majority of the project out of reused materials that would otherwise be thrown away. I was originally going to do some more experimentation [...]]]></description>
			<content:encoded><![CDATA[<p>This is another one of the projects I have done for Design and Technology at school. This time it is for a Year 11 minor project where we had to design the majority of the project out of reused materials that would otherwise be thrown away. I was originally going to do some more experimentation with casting aluminium but then I decided on building this 3d scanner.</p>
<p>The project consisted of:</p>
<ul>
<li>Building a turntable to be controlled by the computer that can rotate the object accurately</li>
<li>Convert a laser pointer to emit a line onto the object rather than a dot</li>
<li>Have some way to take pictures of the position of the laser line on the object</li>
<li>Write programs to control the turntable, find and process the laser line in the captured images and display the processed information as a 3d model</li>
</ul>
<p>Here is a picture of the general setup I ended up using (I didn't get a good photo of the new stepper and gearing I got to rotate the object)</p>
<div id="attachment_439" class="wp-caption aligncenter" style="width: 560px"><a href="http://www.importsoul.net/wp-content/uploads/2010/04/Photo-13-2.jpg"><img class="size-medium wp-image-439" title="3D Scanner - The Setup" src="http://www.importsoul.net/wp-content/uploads/2010/04/Photo-13-2-550x412.jpg" alt="" width="550" height="412" /></a><p class="wp-caption-text">In this image you can see the turntable (black circle), the laser pointer being refracted into a line using the glass rod in the top right, the circuit board used to control the motor, and the board used as a quick way to trigger the camera.</p></div>
<p>Here are some images from the different stages of the process:</p>
<div id="attachment_443" class="wp-caption aligncenter" style="width: 260px"><a href="http://www.importsoul.net/wp-content/uploads/2010/04/Real.jpg"><img class="size-thumbnail wp-image-443" title="3D Scanner - Real" src="http://www.importsoul.net/wp-content/uploads/2010/04/Real-300x494.jpg" alt="" width="250" height="412" /></a><p class="wp-caption-text">The object to be scanned</p></div>
<p>The object sits on the turntable and is rotated accurately using a stepper motor. The first stepper I used allowed 98 steps per revolution (the scan you can see below) while the second stepper motor I used had extra gearing and allowed 290 steps per revolution.</p>
<p>The hardest stage in the entire project is the extraction of an exact line from the image. The stages of this are:</p>
<ol>
<li>Load the raw image</li>
<li>Extract the Red channel out of the RGB image</li>
<li>Find the entire line in this image as a 2 bit image</li>
<li>Decide upon an exact line through the previous blob ignoring noise</li>
</ol>
<p><a href="http://www.importsoul.net/wp-content/uploads/2010/04/Process.png"><img class="aligncenter size-thumbnail wp-image-445" title="3D Scanner - Process" src="http://www.importsoul.net/wp-content/uploads/2010/04/Process-300x223.png" alt="" width="300" height="223" /></a></p>
<p>Coordinates are calculated for each point using how high in the image each point on the line is, what rotation the table was at in the image and some basic trigonometry to create thousands of data points that are then linked and covered with faces by a blender script to create a model.</p>
<div id="attachment_440" class="wp-caption aligncenter" style="width: 260px"><a href="http://www.importsoul.net/wp-content/uploads/2010/04/Raw.jpg"><img class="size-thumbnail wp-image-440" title="3D Scanner - Raw" src="http://www.importsoul.net/wp-content/uploads/2010/04/Raw-300x542.jpg" alt="" width="250" height="452" /></a><p class="wp-caption-text">The Raw Model</p></div>
<p style="text-align: center;">
<p style="text-align: left;">Then I have simply manually tidied up the model removing where the table appears in the scan and smoothing it.</p>
<div id="attachment_442" class="wp-caption aligncenter" style="width: 260px"><a href="http://www.importsoul.net/wp-content/uploads/2010/04/Final.jpg"><img class="size-full wp-image-442" title="3D Scanner - Final" src="http://www.importsoul.net/wp-content/uploads/2010/04/Final.jpg" alt="" width="250" height="477" /></a><p class="wp-caption-text">Trimmed and smoothed</p></div>
<p style="text-align: center;">
<p style="text-align: left;">Then I have applied a stock wood texture to the model to produce the final result. I think that it has turned out rather well for a first go at creating a 3D scanner especially as it only took a few weeks and cost me nothing.</p>
<div id="attachment_444" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.importsoul.net/wp-content/uploads/2010/04/Big-Textured.png"><img class="size-thumbnail wp-image-444" title="3D Scanner - Textured" src="http://www.importsoul.net/wp-content/uploads/2010/04/Big-Textured-300x552.png" alt="" width="300" height="552" /></a><p class="wp-caption-text">The finished product</p></div>
<p style="text-align: center;"><a href="http://www.importsoul.net/wp-content/uploads/2010/04/Final.jpg"></a></p>
<p>I am happy to answer any questions you might have and last of all if you are still curious here are some of the sheets I handed in with my folio to show how the points were converted after extraction.</p>
<a href="http://www.importsoul.net/file/3D-Scanner-Notes.png" title="Downloaded 71 times">3D Scanner - Notes - </a>
<!-- 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/python/recycled-zero-cost-3d-scanner/&amp;title=Recycled+Zero+Cost+3D+Scanner" title="Add 'Recycled Zero Cost 3D Scanner' to digg"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Recycled Zero Cost 3D Scanner' to digg" alt="Add 'Recycled Zero Cost 3D Scanner' 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/python/recycled-zero-cost-3d-scanner/&amp;title=Recycled+Zero+Cost+3D+Scanner" title="Add 'Recycled Zero Cost 3D Scanner' to Stumble Upon"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Recycled Zero Cost 3D Scanner' to Stumble Upon" alt="Add 'Recycled Zero Cost 3D Scanner' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.importsoul.net/python/recycled-zero-cost-3d-scanner/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Stacker &#8211; Arduino</title>
		<link>http://www.importsoul.net/arduino/stacker-arduino/</link>
		<comments>http://www.importsoul.net/arduino/stacker-arduino/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 07:22:28 +0000</pubDate>
		<dc:creator>Hugoagogo</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[challenge]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[NCSS]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[stacker]]></category>

		<guid isPermaLink="false">http://www.importsoul.net/?p=154</guid>
		<description><![CDATA[For the final week of the NCSS embedded programming challenge, we had the option of creating any program we wanted (to run on the ED1 board) to be entered into a competition. For my entry i decided to make an arduino version of stacker, see the video below. I will add the source code after [...]]]></description>
			<content:encoded><![CDATA[<p>For the final week of the NCSS embedded programming challenge, we had the option of creating any program we wanted (to run on the ED1 board) to be entered into a competition. For my entry i decided to make an arduino version of stacker, see the video below.<br />
<iframe width="480" height="360" src="http://www.youtube.com/embed/32B5cWlFr04" frameborder="0" allowfullscreen></iframe></p>
<p>I will add the source code after the competion</p>
<p>The game is quite simple to play (press either button to start/stop blocks and the board's reset button to restart), but gets ridiculously hard realy quickly, i am yet to get to the leds to the end.</p>
<p>I also failed to compleate any of the final weeks problems, besides this one becasue of being exhasted from shifting logs.</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/stacker-arduino/&amp;title=Stacker+%26%238211%3B+Arduino" title="Add 'Stacker &#8211; Arduino' to digg"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Stacker &#8211; Arduino' to digg" alt="Add 'Stacker &#8211; Arduino' 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/stacker-arduino/&amp;title=Stacker+%26%238211%3B+Arduino" title="Add 'Stacker &#8211; Arduino' to Stumble Upon"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Stacker &#8211; Arduino' to Stumble Upon" alt="Add 'Stacker &#8211; Arduino' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.importsoul.net/arduino/stacker-arduino/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<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>Word Wipe V2</title>
		<link>http://www.importsoul.net/python/word-wipe-v2/</link>
		<comments>http://www.importsoul.net/python/word-wipe-v2/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 08:33:47 +0000</pubDate>
		<dc:creator>Hugoagogo</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Word Wipe]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[message]]></category>

		<guid isPermaLink="false">http://www.importsoul.net/?p=77</guid>
		<description><![CDATA[Here it is all i have done is switch from useing a bar graph to individual leds Sorry about the blury photo focus was playing up You can see the rather large pixel size it draws, each stripe it only 8 bit so thats the max resoultion i can have for now Add to]]></description>
			<content:encoded><![CDATA[<p>Here it is all i have done is switch from useing a bar graph to individual leds</p>
<p>Sorry about the blury photo focus was playing up</p>
<div id="attachment_79" class="wp-caption aligncenter" style="width: 231px"><img class="size-full wp-image-79" title="Word Wipe V2 - 1" src="http://www.importsoul.net/wp-content/uploads/2009/06/Word-Block-005.JPG" alt="The setup" width="221" height="168" /><p class="wp-caption-text">The setup</p></div>
<div id="attachment_78" class="wp-caption aligncenter" style="width: 458px"><img class="size-full wp-image-78" title="Word Wipe V2 - 2" src="http://www.importsoul.net/wp-content/uploads/2009/06/Copy-of-Word-Block-011.JPG" alt="Ribbon of hearts" width="448" height="298" /><p class="wp-caption-text">Ribbon of hearts</p></div>
<p>You can see the rather large pixel size it draws, each stripe it only 8 bit so thats the max resoultion i can have for now</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/python/word-wipe-v2/&amp;title=Word+Wipe+V2" title="Add 'Word Wipe V2' to digg"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Word Wipe V2' to digg" alt="Add 'Word Wipe 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/python/word-wipe-v2/&amp;title=Word+Wipe+V2" title="Add 'Word Wipe V2' to Stumble Upon"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Word Wipe V2' to Stumble Upon" alt="Add 'Word Wipe V2' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.importsoul.net/python/word-wipe-v2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Word Wipe</title>
		<link>http://www.importsoul.net/python/word-wipe/</link>
		<comments>http://www.importsoul.net/python/word-wipe/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 01:39:56 +0000</pubDate>
		<dc:creator>Hugoagogo</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Word Wipe]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[message]]></category>

		<guid isPermaLink="false">http://www.importsoul.net/?p=65</guid>
		<description><![CDATA[Started anouther arduino project The python program that converts the text into instructions still needs a bit of work as it is missing some bits I will also use multiple led's instead of a bar graph to improve size/brightness will have another go in a few nights Add to]]></description>
			<content:encoded><![CDATA[<p>Started anouther arduino project</p>
<div id="attachment_67" class="wp-caption aligncenter" style="width: 458px"><img class="size-full wp-image-67" title="Word Block Wipe - 1" src="http://www.importsoul.net/wp-content/uploads/2009/06/Word-Block-008.JPG" alt="First ever go" width="448" height="190" /><p class="wp-caption-text">First ever go</p></div>
<div id="attachment_68" class="wp-caption aligncenter" style="width: 458px"><img class="size-full wp-image-68" title="Word Block Wipe - 2" src="http://www.importsoul.net/wp-content/uploads/2009/06/Word-Block-011.JPG" alt="Hello world, gone worng" width="448" height="96" /><p class="wp-caption-text">Hello world, gone worng</p></div>
<div id="attachment_69" class="wp-caption aligncenter" style="width: 458px"><img class="size-full wp-image-69" title="Word Block Wipe - 3" src="http://www.importsoul.net/wp-content/uploads/2009/06/Word-Block-027.JPG" alt="Works for short words" width="448" height="117" /><p class="wp-caption-text">Works for short words</p></div>
<div id="attachment_70" class="wp-caption aligncenter" style="width: 458px"><img class="size-full wp-image-70" title="Word Block Wipe - 4" src="http://www.importsoul.net/wp-content/uploads/2009/06/Word-Block-047.JPG" alt="It realy dosent like long words" width="448" height="262" /><p class="wp-caption-text">It realy dosent like long words</p></div>
<div id="attachment_73" class="wp-caption aligncenter" style="width: 458px"><img class="size-full wp-image-73" title="Word Block Wipe - 5" src="http://www.importsoul.net/wp-content/uploads/2009/06/Word-Block-082.JPG" alt="Still not quite working but you can see how it works" width="448" height="181" /><p class="wp-caption-text">Still not quite working but you can see how it works</p></div>
<p>The python program that converts the text into instructions still needs a bit of work as it is missing some bits</p>
<p>I will also use multiple led's instead of a bar graph to improve size/brightness will have another go in a few nights</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/python/word-wipe/&amp;title=Word+Wipe" title="Add 'Word Wipe' to digg"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/digg.png" title="Add 'Word Wipe' to digg" alt="Add 'Word Wipe' 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/python/word-wipe/&amp;title=Word+Wipe" title="Add 'Word Wipe' to Stumble Upon"><img src="http://www.importsoul.net/wp-content/plugins/social-bookmarking-reloaded/stumbleupon.png" title="Add 'Word Wipe' to Stumble Upon" alt="Add 'Word Wipe' to Stumble Upon" /></a></div>
<!-- Social Bookmarking Reloaded END -->]]></content:encoded>
			<wfw:commentRss>http://www.importsoul.net/python/word-wipe/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>

