<?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>Eightlines Creations &#187; Controlling Rain</title>
	<atom:link href="http://www.eightlines.com/blog/category/ideas/controlling-rain/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.eightlines.com/blog</link>
	<description>Experiments in Physical Computing</description>
	<lastBuildDate>Wed, 09 Jun 2010 19:09:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Passing the kid test</title>
		<link>http://www.eightlines.com/blog/2008/08/passing-the-kid-test/</link>
		<comments>http://www.eightlines.com/blog/2008/08/passing-the-kid-test/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 01:24:23 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Controlling Rain]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Solenoid]]></category>
		<category><![CDATA[Xbee]]></category>

		<guid isPermaLink="false">http://www.eightlines.com/blog/?p=19</guid>
		<description><![CDATA[I&#8217;ve had the Solenoid project working for about a week and a half now, but the rain and lack of sunlight was getting in the way of making a video of everything in action. It worked out well because it gave me the chance to demonstrate the project to a number of visitors today, all [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a title="Passing the kid test by Eightlines, on Flickr" href="http://www.flickr.com/photos/eightlines/2747579544/"><img class="aligncenter" src="http://farm4.static.flickr.com/3119/2747579544_596254f19f.jpg" alt="Passing the kid test" width="375" height="500" /></a></p>
<p style="text-align: left;">I&#8217;ve had the Solenoid project working for about a week and a half now, but the rain and lack of sunlight was getting in the way of making a video of everything in action. It worked out well because it gave me the chance to demonstrate the project to a number of visitors today, all at once. And, as the photo above demonstrates, the project passes the kid&nbsp;test.</p>
<div><a style="float:left;margin-right:10px;" title="Aligning the valves by Eightlines, on Flickr" href="http://www.flickr.com/photos/eightlines/2711945917/"><img src="http://farm4.static.flickr.com/3237/2711945917_01129e1b2d_m.jpg" alt="Aligning the valves" width="240" height="180" /></a></p>
<p><a style="float:left;margin-right:10px;" title="Solenoid controller by Eightlines, on Flickr" href="http://www.flickr.com/photos/eightlines/2712757808/"><img src="http://farm4.static.flickr.com/3280/2712757808_aa010166e7_m.jpg" alt="Solenoid controller" width="180" height="240" /></a></p>
<p><a style="float:left;margin-right:10px;" title="Solenoids in circular pattern by Eightlines, on Flickr" href="http://www.flickr.com/photos/eightlines/2712757656/"><img src="http://farm4.static.flickr.com/3074/2712757656_56a0462397_m.jpg" alt="Solenoids in circular pattern" width="240" height="180" /></a></div>
<p style="text-align: left;clear:both;">
<p style="text-align: left;clear:both;">
<p style="text-align: left;clear:both;">The project is still in need of refinement, but I&#8217;m thinking that&#8217;s where things would get expensive. I&#8217;ve sourced out some new solenoids that could be used in a multimedia environment, I&#8217;m just unsure of the cost. The solenoids I have used are $7 washing machine parts. Specialty valves are bound to be more expensive. Some of the valves leak, and I&#8217;m pretty sure it&#8217;s not occurring in the sections I&#8217;ve sealed, the valves may be defective, or they may have a scratch in the plastic I created when I was reconfiguring the orientation of the&nbsp;connectors.</p>
<p style="text-align: left;clear:both;">The brace you can see in the photo on the left was constructed to correctly position the hoses in sequence. the centre photo demonstrates the digital radio, Arduino, and transistor controller. The green wires leading out of frame are wired to the Solenoids. On the right, the solenoids are hooked up to the hoses. (All the photos have notes visible in&nbsp;Flickr)</p>
<div><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.vimeo.com/moogaloop.swf?clip_id=1498223&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://www.vimeo.com/moogaloop.swf?clip_id=1498223&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object><br />
<a href="http://www.vimeo.com/1498223?pg=embed&amp;sec=1498223">Solenoid Project</a> from <a href="http://www.vimeo.com/eightlines?pg=embed&amp;sec=1498223">Eightlines</a> on <a href="http://vimeo.com?pg=embed&amp;sec=1498223">Vimeo</a>.</div>
<p style="text-align: left;clear:both;">In the above video, I&#8217;ve got the device filled with water, and directed through flexible hoses. Valves 2, 4, 6, 7, and 1 turn on. They then cycle off, leaving valve 1 open. The camera then pans up to the controller where it zooms in on the LEDs which I&#8217;m using as indicators of which valves are turned on. We then go through a test of all the valves on and off to demonstrate the flow when everything is open. A couple of the valves don&#8217;t work, and I&#8217;ve traced that back to a point on the controller circuit that I think has not been soldered&nbsp;correctly.</p>
<p style="text-align: left;clear:both;">I think it would be important to note the projects out there that are doing the same thing. The <a title="Jeep Waterfall" href="http://www.youtube.com/watch?v=Z2LUz2WVcek" target="_blank">Jeep waterfall</a> was unveiled at a Detroit autoshow in 2000. This <a title="Waterfall" href="http://blog.makezine.com/archive/2008/08/waterfall_spells_out_word.html?CMP=OTC-0D6B48984890" target="_blank">waterfall</a> was published on the Make blog just the other day. <a title="MIT Expo Pavillion" href="http://www.inhabitat.com/2007/07/26/mit-digital-water-pavilion/" target="_blank"><span class="caps">MIT</span>&#8217;s building</a> made of water is scheduled to open at the 2008 Expo, they&#8217;ve hired <a title="Lumiartecnia" href="http://www.lumiartecnia.com" target="_blank">Lumiartecnia</a> to produce the valves. Also check out this <a title="Water Keyboard" href="http://www.vimeo.com/1250915?pg=embed&amp;sec=1250915" target="_blank">water keyboard</a> for its innovative use of sensing electric resistance when you touch the water to control the solenoids&thinsp;&#8212;&thinsp;in this case controlling air flow in a liquid. All these examples show that the envelope can be pushed that much further, and that there&#8217;s a large degree of possible&nbsp;variatons.</p>
<p style="text-align: left;clear:both;">Still lots more ideas to play with, but many of these will be with the code. I&#8217;ve got some really interesting image processing ideas coming&nbsp;up.</p>
<p style="text-align: left;clear:both;">
]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/eightlines.com/blog/p=19</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>XBee Solenoid Controller</title>
		<link>http://www.eightlines.com/blog/2008/07/xbee-solenoid-controller/</link>
		<comments>http://www.eightlines.com/blog/2008/07/xbee-solenoid-controller/#comments</comments>
		<pubDate>Sun, 13 Jul 2008 19:27:39 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[Controlling Rain]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Xbee]]></category>

		<guid isPermaLink="false">http://www.eightlines.com/blog/?p=17</guid>
		<description><![CDATA[This Solenoid controller has been filled with a ton of small successes. Today I&#8217;m chalking up one more success to the list. I&#8217;ve got the XBee portion of the controller working. I had been working on this for a long time now, and the more I work on it the more I see the potential [...]]]></description>
			<content:encoded><![CDATA[<p>This Solenoid controller has been filled with a ton of small successes. Today I&#8217;m chalking up one more success to the list. I&#8217;ve got the XBee portion of the controller working. I had been working on this for a long time now, and the more I work on it the more I see the potential in this&nbsp;platform.</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=1333006&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://www.vimeo.com/moogaloop.swf?clip_id=1333006&amp;server=www.vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object><br /><a href="http://www.vimeo.com/1333006?pg=embed&sec=1333006">XBee Solenoid Controller</a> from <a href="http://www.vimeo.com/eightlines?pg=embed&sec=1333006">Eightlines</a> on&nbsp;<a href="http://vimeo.com?pg=embed&sec=1333006">Vimeo</a>.</p>
<p>The issues I had getting the XBee to work appear to be common based on the message board threads I have&nbsp;seen:</p>
<ul>
<li>Upgrade your firmware. The listing on the website is not necessarily in order. I had assumed that since I had 1.0.8.4 I was one version off the most current. After reading the tech docs there were not that many features I appeared to be missing. The 1.0.A.n firmware appears to be a far more advanced stream, use it whenever possible. X-<span class="caps">CTU</span> appears to order this list in a more straightforward&nbsp;manner.</li>
<li>If you don&#8217;t have a <span class="caps">USB</span>-<span class="caps">TTL</span> adapter you can run an Arduino headless (remove the ATMega168 chip) to communicate directly to the XBee. Remove the chip with an <span class="caps">IC</span> extractor so you don&#8217;t bend the pins. Even better, you can leave the <span class="caps">IC</span> in place and communicate <a title="XBee via Software Serial" href="http://forums.fungizmos.com/viewtopic.php?f=6&amp;t=4" target="_blank">directly with the XBee</a> via the Software Serial library. I ended up doing all three&nbsp;methods.</li>
<li>M. Yarza has an <a title="XBee Sheild" href="http://www.arduino.cc/playground/Shields/Xbee01" target="_blank">excellent sheild</a> for the Diecimila. I&#8217;ve since switched over to the Arduino Nano, but I&#8217;m still using this one as a remote&nbsp;connection.</li>
<li>Build out <a title="XBee Terminal" href="http://www.makingthingstalk.com/chapter6/31/" target="_blank">Tom Igoe&#8217;s XBee Terminal</a> to communicate with the XBee. It correctly sends the &#8220;+++&#8221; Command mode initialization without a carriage return (&#8220;\r&#8221;). It also displays results on a new line making for reading the settings much easier. I had started by using the <span class="caps">OS</span> X Shell but this was much easier. In fact, buy the book <a title="Making Things Talk - O'reilly" href="http://oreilly.com/catalog/9780596510510/" target="_blank">Making Things Talk</a>. It explains all this stuff in plain&nbsp;english.</li>
<li>The <span class="caps">RSSI</span> Graphing was useful. You can see how this could be used to trangulate position of three+&nbsp;Xbee&#8217;s.</li>
<li>Check out the <a title="XBee API Library" href="http://www.faludi.com/code/xbee-api-library-for-processing/" target="_blank">XBee <span class="caps">API</span> Library</a> for Processing written by Dan Shiffman and Rob Faludi. This makes the connections to the XBee <span class="caps">API</span> mode&nbsp;simple.</li>
<li>The <a title="XBee Analog Duplex" href="http://www.faludi.com/classes/sociableobjects/code/XBee_Analog_Duplex_Sender.pde" target="_blank">XBee Analog Duplex</a> script was somewhat confusing, but explains the methods used to communicate from peer to peer. Note, in all of the tutorials, I&#8217;d love to see more documentation stating which is the base XBee and which are the remotes. It gets confusing when you can&#8217;t figure out which is&nbsp;which.</li>
<li>Mark the radios themselves with indicators. I&#8217;ve added permanent marker dots to designate which XBee I&#8217;m looking at. Write down the corresponding configuration settings somewhere you can see them. It will save you polling the chip every time you need&nbsp;it.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/eightlines.com/blog/p=17</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A Simple redesign</title>
		<link>http://www.eightlines.com/blog/2008/07/a-simple-redesign/</link>
		<comments>http://www.eightlines.com/blog/2008/07/a-simple-redesign/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 02:21:42 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[Controlling Rain]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://www.eightlines.com/blog/?p=16</guid>
		<description><![CDATA[If you can’t explain it simply, you don’t understand&#160;it. &#8201;&#8212;&#8201;Albert&#160;Einstein The big issue I was having with the Solenoids was too much pressure. So while on a trip to Sudbury my Stepfather and I redesigned it. Well, I just told him what I was thinking of doing, and he came up with a much simpler [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><em>If you can’t explain it simply, you don’t understand&nbsp;it.</em></p>
<p style="text-align: left;">&thinsp;&#8212;&thinsp;Albert&nbsp;Einstein</p>
</blockquote>
<p style="text-align: left;"><a title="Solenoid Prototype Redux by Eightlines, on Flickr" href="http://www.flickr.com/photos/eightlines/2632937440/"><img src="http://farm4.static.flickr.com/3189/2632937440_6d63808e61_m.jpg" alt="Solenoid Prototype Redux" width="240" height="180" align="right" /></a>The big issue I was having with the Solenoids was too much pressure. So while on a trip to Sudbury my Stepfather and I redesigned it. Well, I just told him what I was thinking of doing, and he came up with a much simpler way of doing&nbsp;it.</p>
<p style="text-align: left;">It&#8217;s a good thing too, because I&#8217;ve easily broke the budget on this project! So this design uses a cap from a sewage pipe, and some garden hose adaptors. No soldering required. The pressure in the system is regulated by the height of the pipe and how much water is pumped in. When the solenoids are open and the water is draining a plunger falls, triggering an aquarium pump to refill the container. It stops when the plunger rises past a certain&nbsp;point.</p>
<p style="text-align: left;">Yes, this thing is now an electronically controlled&nbsp;toilet.</p>
<p style="text-align: left;">Off to buy some more parts, wire up the XBee controller, and waterproof the remote&nbsp;breadboard.</p>
<p style="text-align: left;">
]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/eightlines.com/blog/p=16</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listo Destructo</title>
		<link>http://www.eightlines.com/blog/2008/06/listo-destructo/</link>
		<comments>http://www.eightlines.com/blog/2008/06/listo-destructo/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 02:35:37 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[Controlling Rain]]></category>
		<category><![CDATA[Found]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Destructo]]></category>

		<guid isPermaLink="false">http://www.eightlines.com/blog/?p=15</guid>
		<description><![CDATA[So the guys at the electronics stores are loving me lately. I&#8217;m pretty good at destroying things. While electronics is a reasonably affordable hobby, I&#8217;ve managed to turn it into something a little more extreme. So without further adieu, here&#8217;s my &#8220;listo&#160;destructo&#8221;: ATMega168 IC&#8201;&#8212;&#8201;I was using a headless Arduino as a Serial connection. Removing the [...]]]></description>
			<content:encoded><![CDATA[<p>So the guys at the electronics stores are loving me lately. I&#8217;m pretty good at destroying things. While electronics is a reasonably affordable hobby, I&#8217;ve managed to turn it into something a little more extreme. So without further adieu, here&#8217;s my &#8220;listo&nbsp;destructo&#8221;:</p>
<ul>
<li>ATMega168 <span class="caps">IC</span>&thinsp;&#8212;&thinsp;I was using a headless Arduino as a Serial connection. Removing the ATMega <span class="caps">IC</span> each time I had to reprogram the XBee chip. Missing one vital component, an <span class="caps">IC</span> extractor. The extractor is cheap, at least cheaper than a replacement <span class="caps">IC</span>. If you bend the pins once removing the <span class="caps">IC</span> by hand, don&#8217;t do it again&#8230; and again&#8230; and again. In the end I bought a new ATMega168, <span class="caps">IC</span> extractor, and <span class="caps">USB</span>-<span class="caps">TTL</span> module so I wouldn&#8217;t have to extract it again. (But at this moment the Arduino is sitting on my desk&nbsp;headless)</li>
<li><span class="caps">HM55B</span> Digital Compass&thinsp;&#8212;&thinsp;Red wire, Black wire. Its not that difficult is it? I thought it would save time to just use my existing precut Green wire to wire up the Digital Compass. Wasn&#8217;t getting the response I wanted. Turns out I had the positive and negative reversed. Whiff of the burning silicone smell. Definitely not getting the results I want&nbsp;anymore.</li>
<li>Battery Holder <span class="amp">&amp;</span> Two <span class="caps">AA</span>&#8217;s&thinsp;&#8212;&thinsp;Smelled that awful burning smell again last night. Ripped out the power going to the XBee&#8217;s, Arduino, <span class="caps">USB</span>-<span class="caps">TTL</span>. Now I see wisps of smoke coming through the air but nothing&#8217;s plugged in. Start throwing papers off my desk to find the culprit. Where there&#8217;s smoke there&#8217;s two <span class="caps">AA</span>&#8217;s shorting out. Unplug the <span class="caps">AA</span>&#8217;s with my <span class="caps">IC</span> extractor and promise myself to wire up a two pin plug and clean the desk. (It&#8217;s still&nbsp;messy)</li>
<li>Countless plumbing prototypes&thinsp;&#8212;&thinsp;I&#8217;ve resoldered the Solenoid structure about ten times now. Still don&#8217;t have a final result I&#8217;m pleased with. Still have another design up my sleeve but I haven&#8217;t spawned the courage to start building&nbsp;it.</li>
<li><span class="caps">DVD</span> Player&thinsp;&#8212;&thinsp;This one&#8217;s a good one, I&#8217;ve identified hundreds of components scavenged from a <span class="caps">DVD</span> Player that didn&#8217;t work anymore. <span class="caps">IR</span> Emitter and receiver, momentary switches, capacitors, <span class="caps">RGB</span> Jacks, connectors, motors, and a frickin&#8217; laser beam. To think this <span class="caps">DVD</span> player cost $30. Easily aved me that cost of buying all these little parts at Radio&nbsp;Shack.</li>
<li>Inkjet printer&thinsp;&#8212;&thinsp;Again, tons of little components. Varistors, servos, gears, <span class="caps">USB</span> jack, power supply, zener diodes, etc. I&#8217;m thinking someone should make a website documenting all the components we can dig out of discarded things. Made a mental note to get rid of the plastic casing before my basement fills up with&nbsp;junk.</li>
<li>Nintendo Powerglove&thinsp;&#8212;&thinsp;I think I just heard hearts shatter. This one was destroyed about two years ago, but it counts in this list because I&#8217;m using the parts for one of my project. Recovered Ultrasound emittors and receivers, flex sensors,&nbsp;etc.</li>
</ul>
<p>One of the guys at work said I probably shouldn&#8217;t put a price list on this. I have to agree, it would hurt too much. Oh and this is by no means a complete list, I intend to update as I keep making stupid&nbsp;mistakes.</p>
]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/eightlines.com/blog/p=15</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iterative Steps</title>
		<link>http://www.eightlines.com/blog/2008/05/iterative-steps/</link>
		<comments>http://www.eightlines.com/blog/2008/05/iterative-steps/#comments</comments>
		<pubDate>Fri, 09 May 2008 13:46:44 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[Controlling Rain]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Solenoid]]></category>

		<guid isPermaLink="false">http://www.eightlines.com/blog/?p=8</guid>
		<description><![CDATA[If anyone had have told me this project would cost slightly in the range of $300 I would have probably not have started it at all. Individually the components don&#8217;t cost that much, Arduino&#8201;&#8212;&#8201;$60, transistors&#8201;&#8212;&#8201;$10 for nine of them, copper connectors&#8201;&#8212;&#8201;$2, and so on. It all starts to add up, and when you factor in [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">If anyone had have told me this project would cost slightly in the range of $300 I would have probably not have started it at all. Individually the components don&#8217;t cost that much, Arduino&thinsp;&#8212;&thinsp;$60, transistors&thinsp;&#8212;&thinsp;$10 for nine of them, copper connectors&thinsp;&#8212;&thinsp;$2, and so on. It all starts to add up, and when you factor in the failed attempts things really start to add&nbsp;up.</p>
<p style="text-align: left;">That&#8217;s the beauty of it. It isn&#8217;t fast, but the iterative steps of this project let you take a breath and work out the issues one item at a time. If I were to work this whole thing through from scratch and without the knowledge I&#8217;ve gleaned through the process the magnitude of the project would have seemed&nbsp;overwhelming.</p>
<p style="text-align:center;">
<object type="application/x-shockwave-flash" width="400" height="300" data="http://www.vimeo.com/moogaloop.swf?clip_id=992039&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF"><param name="quality" value="best" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id=992039&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=00ADEF" /></object><br /><a href="http://www.vimeo.com/992039?pg=embed&sec=992039">Getting the leaks out</a> from <a href="http://www.vimeo.com/eightlines?pg=embed&sec=992039">Eightlines</a> on&nbsp;<a href="http://vimeo.com?pg=embed&sec=992039">Vimeo</a>.</p>
<p style="text-align: left;">Individually the process is quite simple. Right now I&#8217;m battling some leaks, and the tiny issue that the pressure in the system may be a bit too strong. In one of the early tests I blew a stream of water clear across the room. These issues taken in stride don&#8217;t seem to be that daunting. To think only a couple of days ago I was wondering if I should&nbsp;continue.</p>
<p style="text-align: left;"><a title="XBee Sheild" href="http://www.flickr.com/photos/eightlines/2452846785/in/set-72157604435742243/" target="_blank"><img class="alignleft" style="float: left;" src="http://farm4.static.flickr.com/3160/2452846785_bbebff6617_m.jpg" alt="XBee Sheild" width="240" height="180" /></a>On the less wet side of the equation I&#8217;ve been working with the <a title="XBee Sheild" href="http://www.arduino.cc/en/Main/ArduinoXbeeShield" target="_blank">XBee module</a> for the Arduino. It communicates wirelessly using the <a title="Wikipedia entry on Zigbee" href="http://en.wikipedia.org/wiki/ZigBee" target="_blank">Zigbee protocol</a> (802.15). After some initial failures I think I understand how to get this thing to work. I&#8217;ve still yet to bring this thing full circle, but its getting there. I&#8217;m thinking I&#8217;m going to wait for <a title="Boarduino" href="http://www.ladyada.net/rant/2008/05/new-kit-usb-boarduino-some-other-stuff/" target="_blank">LadyAda&#8217;s Boardino <span class="caps">USB</span></a> to reach my local store <a title="Creatron Inc" href="http://www.creatroninc.com/" target="_blank">Creatron</a> before I pick up some more pieces, but the benefit of waiting is I could use this system to build a clustering/mesh network of Arduinos. This is something I&#8217;m looking forward to. One of the other advantages of moving to the XBee is that I can keep the computer at a remote location ~100&#8217; (longer with line of sight). With all the leaks I&#8217;m having this sounds very&nbsp;appealing.</p>
<p style="text-align: left;">One other change in scope has to do with the web cam. I&#8217;m thinking of ditching it all together for the initial phase of the project. Don&#8217;t worry, I&#8217;ll definitely return to it later&thinsp;&#8212;&thinsp;I already have the code working! One of the early tests I built used LEDs to enact a <a title="Wikipedia entry on Persistence of Vision" href="http://en.wikipedia.org/wiki/Persistence_of_vision" target="_blank">Persistence of Vision</a> system. This principle should be the same using the water drops as pixels as they fall through the air. Currently I&#8217;m developing a 9x15 matrix of shapes and typographic characters that should drop out as an audience member interacts with the&nbsp;system.</p>
<p style="text-align: left;">Now is this where I thought I&#8217;d be when I first drew the idea up? No where close. But the slow pace and iterative process has its advantages. It spawns a whole new set of ideas along the&nbsp;way.</p>
]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/eightlines.com/blog/p=8</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Controlling the Rain by Arduino</title>
		<link>http://www.eightlines.com/blog/2008/04/controlling-the-rain-by-arduino/</link>
		<comments>http://www.eightlines.com/blog/2008/04/controlling-the-rain-by-arduino/#comments</comments>
		<pubDate>Mon, 28 Apr 2008 01:56:30 +0000</pubDate>
		<dc:creator>Brent</dc:creator>
				<category><![CDATA[Controlling Rain]]></category>
		<category><![CDATA[Ideas]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Solenoid]]></category>

		<guid isPermaLink="false">http://www.eightlines.com/blog/?p=3</guid>
		<description><![CDATA[This past January I was biking home in the rain when this thought hit me. I was stopped at a red light looking at the pools of water on the ground wondering if it would be possible to calculate the density of rainfall. I thought, even when they&#8217;re giving weather reports they never really tell [...]]]></description>
			<content:encoded><![CDATA[<p>This past January I was biking home in the rain when this thought hit me. I was stopped at a red light looking at the pools of water on the ground wondering if it would be possible to calculate the density of rainfall. I thought, even when they&#8217;re giving weather reports they never really tell you if it will be a hard rain, soft rain, or a mist. They just say &#8220;rain is in the&nbsp;forecast.&#8221;</p>
<p>Looking at the pools of water it seemed apparent that you could shine a spotlight on a puddle and perform some motion detection code on the ripples to locate the centre of a drop. You would only need a short sample in order to determine the average drops per minute or&nbsp;hour.</p>
<p>This is all fine a cool, but what would you do with the data? The traffic light turned&nbsp;green.</p>
<p>If you could calculate density of the water, you could no doubt calculate the distance between drops. It would be fascinating to generate an algorithm which predicts a path based on the least amount of rain drops. Does one exist? Could you find a pattern where I&#8217;m fairly certain none exists? All of these thoughts are purely hypothetical, and probably wouldn&#8217;t work in real life, but given a 20/20 hindsight it would be something to brag about, coming home after biking in a rainstorm, completely&nbsp;dry.</p>
<p>Another red&nbsp;light.</p>
<p>What if you could build a machine that rains, but when you walked underneath you never got wet? This was where the Rain Aversion project&nbsp;began.</p>
<p><a title="Example of a solenoid" href="http://www.flickr.com/photos/eightlines/2414523097/" target="_blank"><img class="alignleft" src="http://farm3.static.flickr.com/2052/2414523097_c8971e494c_m.jpg" alt="Example of a solenoid" /></a>First, I&#8217;d need the rain. If I produced a mechanism which controlled the flow of water out of some pipes, I could cause the device to pour rain in a controlled manner. Ideally I&#8217;d like to collect the fallen water and pump it back into a reservoir so as to not waste liquid. But that would require a much more involved development cycle, so part of that was pushed out of the prototype phase. To begin I&#8217;d just attach a hose and feed it off the water&nbsp;supply.</p>
<p>Second I&#8217;d need a controller. Something to activate and deactivate each pipe as a sensor detects an object underneath. Having recently received an <a title="Arduino Homepage" href="http://www.arduino.cc/" target="_blank">Arduino</a> it was the controller of&nbsp;choice.</p>
<p>So I had several pieces of technology at my disposal. An Arduino, a webcam, some solenoids, and some Flash and Processing skills. Ignoring the dead ends the prototype phases lead me through, the project is set up as&nbsp;such:</p>
<ul>
<li>Arduino is loaded with the Firmata Protocol enabling it to communicate through a serial connection to the host&nbsp;computer.</li>
<li>Protolab&#8217;s <a href="http://protolab.pbwiki.com/Arduino2Flash" target="_blank">Arduino2Flash</a> Java serial proxy stood in for serproxy when it wouldn&#8217;t communicate&nbsp;properly.</li>
<li><a href="http://code.google.com/p/as3glue/" target="_blank">AS3Glue</a> handles the Serial Events as they are broadcasted to and from the&nbsp;Arduino.</li>
<li>Joa Ebert&#8217;s <a title="ImageProcessing Source" href="http://blog.je2050.de/imageprocessing-library/" target="_blank">ImageProcessing</a> library manages the Web Cam manipulations such as the pixel averaging and threshold&nbsp;detection.</li>
<li><a title="Transistors" href="http://www.flickr.com/photos/eightlines/2402558128/in/set-72157604435742243" target="_blank"><img class="alignright" src="http://farm3.static.flickr.com/2099/2402558128_518086b41f_t.jpg" alt="Transistor Connections" /></a>The Arduino sends signals to a high voltage circuit through a series of transistors, the <a title="Solenoid Schematic" href="http://www.arduino.cc/playground/Learning/SolenoidTutorial" target="_blank">schematic</a> can be found on the Arduino Tutorials&nbsp;page.</li>
<li><img class="alignleft" src="http://farm3.static.flickr.com/2251/2410325547_380fc967a9_m.jpg" alt="Solenoids" />Water Solenoids (I used 9 to produce a 3x3&nbsp;matrix)</li>
<li>Each of the solenoids is connected to a 19V power supply. (This underperforms on the amperage side of things when all solenoids are firing at the same time, but seems to do the&nbsp;trick)</li>
<li>The solenoids are also connected to a hose feeding the water, with a series of copper splitters to divide the&nbsp;flow.</li>
</ul>
<p>I needed a sensor to detect where someone stood so I could disable the stream of water. There&#8217;s several alternatives here, but I&#8217;ve chosen to go the webcam route. Flash was chosen over Processing due to my inexperience with the latter. I have no doubt that I could entice Processing to work faster than Flash in future renditions of the&nbsp;code.</p>
<p>The copper piping and feeds are simple plumbing supplies. Flexible hosing was used so I could reconfigure the setup if needed. This was the most costly side of the project aside from the&nbsp;solenoids.</p>
<p>The final result is a ~$200 apparatus which leaks, but in just the right places. And it won&#8217;t leak on you. I&#8217;m still assembling some final videos of the device in action, but in the meantime I have some demonstrations of an earlier protoype in action:<br />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="quality" value="best" /><param name="allowfullscreen" value="true" /><param name="scale" value="showAll" /><param name="src" value="http://www.vimeo.com/moogaloop.swf?clip_id=894013&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://www.vimeo.com/moogaloop.swf?clip_id=894013&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=" scale="showAll" allowfullscreen="true" quality="best"></embed></object><br />
<a href="http://www.vimeo.com/894013/l:embed_894013">Solenoid Controller #3</a> from <a href="http://www.vimeo.com/eightlines/l:embed_894013">Eightlines</a> on&nbsp;<a href="http://vimeo.com/l:embed_894013">Vimeo</a>.</p>
<p>Additional videos are available <a title="Eightlines Vimeo Clips" href="http://www.vimeo.com/eightlines/" target="_blank">here</a>. Photos of the process are <a title="Eightlines Flickr Photos" href="http://www.flickr.com/photos/eightlines/sets/72157604435742243/" target="_blank">available&nbsp;here</a>.</p>
<p>In the next couple posts I&#8217;ll detail the final assembly of the project, and also discuss some of the future possibilities of the device. The whole setup has massive&nbsp;potential.</p>
]]></content:encoded>
			<wfw:commentRss>http://js-kit.com/rss/eightlines.com/blog/p=3</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
