<?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>A place for Stuff</title>
	<atom:link href="http://omatic.net/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://omatic.net</link>
	<description>random stuff of questionable relevance</description>
	<lastBuildDate>Fri, 13 Aug 2010 04:12:49 +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>Whellie good</title>
		<link>http://omatic.net/?p=96</link>
		<comments>http://omatic.net/?p=96#comments</comments>
		<pubDate>Mon, 15 Feb 2010 04:13:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omatic.net/?p=96</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://omatic.net/wp-content/uploads/2010/02/l_2048_1536_6D1BC362-A272-4416-914C-12B7DB4A7742.jpeg"><img src="http://omatic.net/wp-content/uploads/2010/02/l_2048_1536_6D1BC362-A272-4416-914C-12B7DB4A7742.jpeg" alt="" class="alignnone size-full" /></a></p>
<p><a href="http://omatic.net/wp-content/uploads/2010/02/l_2048_1536_8E678A97-0486-4A90-8F3D-DF25D4CCFF18.jpeg"><img src="http://omatic.net/wp-content/uploads/2010/02/l_2048_1536_8E678A97-0486-4A90-8F3D-DF25D4CCFF18.jpeg" alt="" class="alignnone size-full" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://omatic.net/?feed=rss2&amp;p=96</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino  + Ethernet shield + XML-RPC + Python</title>
		<link>http://omatic.net/?p=67</link>
		<comments>http://omatic.net/?p=67#comments</comments>
		<pubDate>Thu, 05 Nov 2009 00:00:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[XML-RPC]]></category>

		<guid isPermaLink="false">http://omatic.net/?p=67</guid>
		<description><![CDATA[The Problem: In the middle of an exhibition space visitors are encouraged to play a piano.  At the end of the gallery a screen and speakers blare to the music of Tiny Tim.  The visitor at the piano should be able to mute the audio from the piano.  Technical limitations.  There is no way to [...]]]></description>
			<content:encoded><![CDATA[<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><strong>The Problem:</strong> In the middle of an exhibition space visitors are encouraged to play a piano.  At the end of the gallery a screen and speakers blare to the music of Tiny Tim.  The visitor at the piano should be able to mute the audio from the piano.  Technical limitations.  There is no way to run cables from the piano any distance but there is power in a floor pit.  The AV at the end of the gallery is run by a Mac Mini buried in the floor.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">BTW this is currently installed in the <a href="http://www.hht.net.au/whats_on/exhibitions/exhibitions/martin_sharp_sydney_artist">Martin Sharp</a> exhibition at the Museum of Sydney in Sydney, Australia.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<div>
<p><a href="http://omatic.net/wp-content/uploads/2009/11/311020095681.jpg"><img class="alignnone size-medium wp-image-78" title="31102009568" src="http://omatic.net/wp-content/uploads/2009/11/311020095681-300x225.jpg" alt="31102009568" width="300" height="225" /></a></div>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; font-size: 13px; line-height: 19px;"> </span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><strong>The Solution.</strong> Button -&gt; Arduino with ethernet shield -&gt; ethernet over power -&gt; XML-RPC -&gt; Python -&gt; apple script.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">I already had some ethernet over power devices so getting one ethernet shield was cheeper than Xbee or Wi-fi.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><strong>Hardware</strong></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">Basically just a box with a button and an arduino and ethernet shield.  I modified a black cat5 cable to also do power over ethernet so I only had to have one cable going from the box to the floor.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p><a href="http://omatic.net/wp-content/uploads/2009/11/301020095651.jpg"><img class="alignnone size-medium wp-image-79" title="30102009565" src="http://omatic.net/wp-content/uploads/2009/11/301020095651-300x225.jpg" alt="30102009565" width="300" height="225" /></a></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">Power. I discovered right at the last minute that the arduino with ethernet shield is way more fussy than lots of other projects.  A 9 or 12 volt supply along with the extra draw from the ethernet shield makes for an overloaded power regulator.  When I finally figured out what the problem was a 7.5 volt power supply came to the rescue.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;"><strong>Software</strong></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">On the ardunio side I didn&#8217;t have time for writing a XML-RPC library or anything fancy so I just manually created the one call I needed with basic print statements. You will need to manually calculate your content-length value if you intend to modify.</p>
<pre><code>
#include &lt;Ethernet.h&gt;

byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] = { blah, blah, blah, blah };
byte server[] = { blah, blah, blah, blah };

int button_pin = 3;
int buttonState = 0;
int val1;
int val2;

Client client(server, 8888);

void setup()
{
  Serial.begin(9600);
  pinMode(button_pin, INPUT);
}

void muteaudio() {
  Ethernet.begin(mac, ip);
  Serial.println("connecting...");
  if (client.connect()) {
    Serial.println("connected");
    client.println("POST /RPC2 HTTP/1.0");
    client.println("User-Agent: Arduino");
    client.println("Host: blah.blah.blah.blah");
    client.println("Content-Type: text/xml");
    client.println("Content-length: 83");
    client.println("&lt;?xml version=\"1.0\"?&gt;");
    client.println("&lt;methodCall&gt;");
    client.println("   &lt;methodName&gt;doMute&lt;/methodName&gt;");
    client.println("&lt;/methodCall&gt;");
    client.println("");
    client.println("");
    client.println("");
    client.println("");
    client.println("");
    client.println("");
    client.println("");
    client.println("");
    client.println("");
    client.println("");
    client.println("");
  } else {
    Serial.println("connection failed");
  }

  client.stop();
}

void loop()
{

// Ethernet Feedback
  if (client.available()) {
    char c = client.read();
    Serial.print(c);
  }

 // Button 

   val1 = digitalRead(button_pin);
   delay(10);
    val2 = digitalRead(button_pin);
    if ( val1 == val2){
  	if (val1 != buttonState){ // state has changed
  		if (val1 == 1 and buttonState == 0){
                        Serial.print("Muting Audio");
                        muteaudio();
  		}
  	}
  	buttonState = val1 ;
  }

}</code></pre>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">The empty carriage returns are something I accidentally discovered while testing with telnet that makes the python XMLRPC server accept the RPC request.  I don&#8217;t know why, but it works.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">The python script is pretty basic and just takes the request and writes an applescript command to the shell to switch the audio on and off.</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica;">
<p><code> </code></p>
<p><code> </code></p>
<p><code></p>
<pre># import modules
import SimpleXMLRPCServer
import subprocess

global toggle
toggle = 1

#The server object
class button:
	def doMute(self):
		global toggle
		if toggle == 0 :
			cl = 'osascript -e \"set volume 0\"'
			print cl
			subprocess.Popen(cl, shell=True)
			toggle = 1
		elif toggle == 1:
			cl = 'osascript -e \"set volume 10\"'
			print cl
			subprocess.Popen(cl, shell=True)
			toggle = 0
		return "Done"

button_object = button()
server = SimpleXMLRPCServer.SimpleXMLRPCServer(("bla.bla.bla.bla", 8888))
server.register_instance(button_object)
#Go into the main listener loop
print "Listening on port 8888"
server.serve_forever()</pre>
<p></code></p>
]]></content:encoded>
			<wfw:commentRss>http://omatic.net/?feed=rss2&amp;p=67</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IR receiver hacking</title>
		<link>http://omatic.net/?p=60</link>
		<comments>http://omatic.net/?p=60#comments</comments>
		<pubDate>Fri, 10 Jul 2009 03:48:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Arduino]]></category>

		<guid isPermaLink="false">http://omatic.net/?p=60</guid>
		<description><![CDATA[Ive been working on IR reception to an Arduino for a work project. I&#8217;ve been using a Jaycar receiver I had laying around from an unbuilt kit. I found some promising code online. It was kinda working but not really. After a couple of hours of trying different thing&#8217;s trying to problem solve the situation [...]]]></description>
			<content:encoded><![CDATA[<p>Ive been working on IR reception to an Arduino for a work project.  I&#8217;ve been using a Jaycar receiver I had laying around from an unbuilt kit. I found some promising code online. It was kinda working but not really. After a couple of hours of trying different thing&#8217;s trying to problem solve the situation I discovered that it was a power problem. Putting a 100uf capacitor over the power line made everything work. The Jaycar part doesn&#8217;t need or work with the resistors between the ardunino and the IR receiver as mentioned in the blog post using the Radio Shack receiver.</p>
<p><a href="http://www.rtfa.net/2009/01/02/arduino-ir-remote-control-more-advanced">http://www.rtfa.net/2009/01/02/arduino-ir-remote-control-more-advanced</a><br />
<a href="http://www.jaycar.com.au/productView.asp?ID=ZD1952&amp;keywords=receiver&amp;form=KEYWORD">http://www.jaycar.com.au/productView.asp?ID=ZD1952&amp;keywords=receiver&amp;form=KEYWORD</a></p>
<p>I&#8217;m also using a Sony remote but not the same one as the blog post.</p>
<p>Then after as I was about to finish up I turned off a work light and the IR receiver starts responding to background noise. hmm should be able to solve that one in software.</p>
]]></content:encoded>
			<wfw:commentRss>http://omatic.net/?feed=rss2&amp;p=60</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Geo Dome Projection, Peats Ridge 2008</title>
		<link>http://omatic.net/?p=56</link>
		<comments>http://omatic.net/?p=56#comments</comments>
		<pubDate>Mon, 11 May 2009 06:21:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omatic.net/?p=56</guid>
		<description><![CDATA[Here is a bit of documentation shot from video control. It&#8217;s always difficult to document your own work when performing. Dome Projection Peats Ridge Festival 2008 from Justin Maynard on Vimeo.]]></description>
			<content:encoded><![CDATA[<p>Here is a bit of documentation shot from video control.  It&#8217;s always difficult to document your own work when performing.</p>
<p><object width="400" height="300"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=4585891&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=4585891&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="400" height="300"></embed></object>
<p><a href="http://vimeo.com/4585891">Dome Projection Peats Ridge Festival 2008</a> from <a href="http://vimeo.com/user1162996">Justin Maynard</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://omatic.net/?feed=rss2&amp;p=56</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rocket Car Day 11</title>
		<link>http://omatic.net/?p=45</link>
		<comments>http://omatic.net/?p=45#comments</comments>
		<pubDate>Mon, 04 May 2009 02:57:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Rocket Car Day]]></category>

		<guid isPermaLink="false">http://omatic.net/?p=45</guid>
		<description><![CDATA[Had heaps on fun at Rocket Car Day 11, We shot an add for the Dorito competition for a bit of fun.]]></description>
			<content:encoded><![CDATA[<p>Had heaps on fun at Rocket Car Day 11, We shot an add for the Dorito competition for a bit of fun.</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/4Fdz7dRqzio&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/4Fdz7dRqzio&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<p><img src="http://omatic.net/wp-content/uploads/2009/05/p5031694_small1.jpg" alt="p5031694_small1" title="p5031694_small1" width="400" height="300" class="alignnone size-full wp-image-48" /><br />
<img src="http://omatic.net/wp-content/uploads/2009/05/03052009426_small1.jpg" alt="03052009426_small1" title="03052009426_small1" width="400" height="300" class="alignnone size-full wp-image-46" /><br />
<img src="http://omatic.net/wp-content/uploads/2009/05/p5031701_small.jpg" alt="p5031701_small" title="p5031701_small" width="400" height="300" class="alignnone size-full wp-image-42" /></p>
]]></content:encoded>
			<wfw:commentRss>http://omatic.net/?feed=rss2&amp;p=45</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter etc</title>
		<link>http://omatic.net/?p=39</link>
		<comments>http://omatic.net/?p=39#comments</comments>
		<pubDate>Thu, 02 Apr 2009 03:57:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omatic.net/?p=39</guid>
		<description><![CDATA[I&#8217;ve been toying with twitter, my user name is justinatomatic if you want to follow my tweets. I&#8217;ve also been toying with thumbwhere.com.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been toying with twitter, my user name is justinatomatic if you want to follow my tweets.  I&#8217;ve also been toying with thumbwhere.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://omatic.net/?feed=rss2&amp;p=39</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kaylee Claire Maynard</title>
		<link>http://omatic.net/?p=35</link>
		<comments>http://omatic.net/?p=35#comments</comments>
		<pubDate>Thu, 02 Apr 2009 03:54:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omatic.net/?p=35</guid>
		<description><![CDATA[It&#8217;s all a bit yay. Welcome to the world Kaylee. Born Friday the 27th at 7:44 PM 8 Pounds 54 cm.]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s all a bit yay.  Welcome to the world Kaylee.  Born Friday the 27th at 7:44 PM 8 Pounds 54 cm. <img src="http://omatic.net/wp-content/uploads/2009/04/kaylee.png" alt="kaylee" title="kaylee" width="450" height="600" class="alignnone size-full wp-image-37" /></p>
]]></content:encoded>
			<wfw:commentRss>http://omatic.net/?feed=rss2&amp;p=35</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Arduino Bits’n Pieces</title>
		<link>http://omatic.net/?p=12</link>
		<comments>http://omatic.net/?p=12#comments</comments>
		<pubDate>Thu, 15 Jan 2009 06:00:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Arduino]]></category>
		<category><![CDATA[libavg]]></category>
		<category><![CDATA[RFID]]></category>

		<guid isPermaLink="false">http://omatic.net/?p=12</guid>
		<description><![CDATA[Check out the new page up. I&#8217;m beginning to publish my arduino adventures. Its just a start. I hope to expand on a few of the projects and provide code where I think people will care.]]></description>
			<content:encoded><![CDATA[<p>Check out the <a href="http://omatic.net/?page_id=20">new page up</a>. I&#8217;m beginning to publish my arduino adventures.</p>
<p>Its just a start. I hope to expand on a few of the projects and provide code where I think people will care.</p>
]]></content:encoded>
			<wfw:commentRss>http://omatic.net/?feed=rss2&amp;p=12</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Design</title>
		<link>http://omatic.net/?p=10</link>
		<comments>http://omatic.net/?p=10#comments</comments>
		<pubDate>Sat, 26 Jul 2008 07:41:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omatic.net/?p=10</guid>
		<description><![CDATA[Its just a standard wordpress theme. Admittedly inspired by my mate Geoff over at sunheartcowfork.com. I might spice it up sometime but then again I&#8217;m still getting over a dot com boom aversion to HTML/CSS]]></description>
			<content:encoded><![CDATA[<p>Its just a standard wordpress theme. Admittedly inspired by my mate Geoff over at <a href="http://sunheartcowfork.com">sunheartcowfork.com</a>.  I might spice it up sometime but then again I&#8217;m still getting over a dot com boom aversion to HTML/CSS</p>
]]></content:encoded>
			<wfw:commentRss>http://omatic.net/?feed=rss2&amp;p=10</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://omatic.net/?p=1</link>
		<comments>http://omatic.net/?p=1#comments</comments>
		<pubDate>Sat, 26 Jul 2008 01:14:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://omatic.net/?p=1</guid>
		<description><![CDATA[Got to start somewhere.]]></description>
			<content:encoded><![CDATA[<p>Got to start somewhere.  </p>
]]></content:encoded>
			<wfw:commentRss>http://omatic.net/?feed=rss2&amp;p=1</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
