<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments for Mike D. @ ITP</title>
	<atom:link href="http://www.doryexmachina.com/itpblog/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.doryexmachina.com/itpblog</link>
	<description>A tale of romance between a boy and his LED's</description>
	<pubDate>Thu, 28 Aug 2008 18:51:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>Comment on Final Crickets Code by mike.</title>
		<link>http://www.doryexmachina.com/itpblog/2007/10/30/final-crickets-code/#comment-18905</link>
		<dc:creator>mike.</dc:creator>
		<pubDate>Wed, 06 Aug 2008 17:11:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.doryexmachina.com/itpblog/2007/10/30/final-crickets-code/#comment-18905</guid>
		<description>Finally modified!

/*
Concrete Crickets Arduino Code
 Michael J. Dory
 www.doryexmachina.com
 Written 04.11.07, revised 11.02.07 
 (thanks to code from Tom Igoe, Clay Shirky and Rob Faludi)
 */

int RangePotPin = 5;    // Analog input pin that the rangefinder is attached to
int RangePotValue = 0;   // value read from the pot

int MP3Pin = 12;    // the pin that the relay controlling the MP3 is attached to 

int blinkyPin = 13; // the pin that the reference LED is attached to

int onOffPin = 11; //the pin that the speaker attach/kill switch relay is on.

void setup() {
  // initialize serial communications at 9600 bps:
  Serial.begin(9600); 

  // set pins for output
  pinMode(blinkyPin, OUTPUT);
  pinMode(onOffPin, OUTPUT);
  pinMode(MP3Pin, OUTPUT);

  // initialize both pins at low
  digitalWrite(MP3Pin, LOW);
  digitalWrite(blinkyPin, LOW);

  delay(100);

  // turn MP3 Player on, blink pin 13 for reference
  digitalWrite(MP3Pin, HIGH);
  digitalWrite(blinkyPin, HIGH);
  delay(5000);

  // take both pins low again 
  digitalWrite(MP3Pin, LOW);
  digitalWrite(blinkyPin, LOW);

  delay(100);

  // blink LED three times quickly to show mp3 player is on
  blinky();

  // start playing the MP3
  delay (2000);
  digitalWrite(MP3Pin, HIGH);
  digitalWrite(blinkyPin, HIGH);
  delay(500);
  digitalWrite(MP3Pin, LOW);
  digitalWrite(blinkyPin, LOW);

  // blink three times to show that the MP3 player is playing and setup is complete
  blinky();

  // end setup
}


void loop() {
  RangePotValue = analogRead(RangePotPin);   // read the pot value
  Serial.println(RangePotValue);             // print the rangefinder value back to the debugger pane
  delay(10);                                 // wait 10 milliseconds before the next loop



  if(RangePotValue &lt;= 125) {                // if the rangefinder detects something in range
    digitalWrite(blinkyPin, HIGH);          // turn the light on
    digitalWrite(onOffPin, LOW);            // turn the speakers off
    Serial.println("detected");             // print "detected"

    delay(100);
  } 
  else {
    digitalWrite(blinkyPin, LOW);          // if the rangefinder doesn't detect anything
    digitalWrite(onOffPin, HIGH);          // leave the speakers connected
    Serial.println("not detected");        // print "not detected"
  } 

}

void blinky() {
  int i;
  int blinks = 0;

  for (i=0;i&lt;=blinks;i++) {
    digitalWrite(blinkyPin, HIGH);
    delay(500);
    digitalWrite(blinkyPin, LOW);
    delay(500);
  }
}</description>
		<content:encoded><![CDATA[<p>Finally modified!</p>
<p>/*<br />
Concrete Crickets Arduino Code<br />
 Michael J. Dory<br />
 <a href="http://www.doryexmachina.com" rel="nofollow">http://www.doryexmachina.com</a><br />
 Written 04.11.07, revised 11.02.07<br />
 (thanks to code from Tom Igoe, Clay Shirky and Rob Faludi)<br />
 */</p>
<p>int RangePotPin = 5;    // Analog input pin that the rangefinder is attached to<br />
int RangePotValue = 0;   // value read from the pot</p>
<p>int MP3Pin = 12;    // the pin that the relay controlling the MP3 is attached to </p>
<p>int blinkyPin = 13; // the pin that the reference LED is attached to</p>
<p>int onOffPin = 11; //the pin that the speaker attach/kill switch relay is on.</p>
<p>void setup() {<br />
  // initialize serial communications at 9600 bps:<br />
  Serial.begin(9600); </p>
<p>  // set pins for output<br />
  pinMode(blinkyPin, OUTPUT);<br />
  pinMode(onOffPin, OUTPUT);<br />
  pinMode(MP3Pin, OUTPUT);</p>
<p>  // initialize both pins at low<br />
  digitalWrite(MP3Pin, LOW);<br />
  digitalWrite(blinkyPin, LOW);</p>
<p>  delay(100);</p>
<p>  // turn MP3 Player on, blink pin 13 for reference<br />
  digitalWrite(MP3Pin, HIGH);<br />
  digitalWrite(blinkyPin, HIGH);<br />
  delay(5000);</p>
<p>  // take both pins low again<br />
  digitalWrite(MP3Pin, LOW);<br />
  digitalWrite(blinkyPin, LOW);</p>
<p>  delay(100);</p>
<p>  // blink LED three times quickly to show mp3 player is on<br />
  blinky();</p>
<p>  // start playing the MP3<br />
  delay (2000);<br />
  digitalWrite(MP3Pin, HIGH);<br />
  digitalWrite(blinkyPin, HIGH);<br />
  delay(500);<br />
  digitalWrite(MP3Pin, LOW);<br />
  digitalWrite(blinkyPin, LOW);</p>
<p>  // blink three times to show that the MP3 player is playing and setup is complete<br />
  blinky();</p>
<p>  // end setup<br />
}</p>
<p>void loop() {<br />
  RangePotValue = analogRead(RangePotPin);   // read the pot value<br />
  Serial.println(RangePotValue);             // print the rangefinder value back to the debugger pane<br />
  delay(10);                                 // wait 10 milliseconds before the next loop</p>
<p>  if(RangePotValue <= 125) {                // if the rangefinder detects something in range<br />
    digitalWrite(blinkyPin, HIGH);          // turn the light on<br />
    digitalWrite(onOffPin, LOW);            // turn the speakers off<br />
    Serial.println(&#8221;detected&#8221;);             // print &#8220;detected&#8221;</p>
<p>    delay(100);<br />
  }<br />
  else {<br />
    digitalWrite(blinkyPin, LOW);          // if the rangefinder doesn&#8217;t detect anything<br />
    digitalWrite(onOffPin, HIGH);          // leave the speakers connected<br />
    Serial.println(&#8221;not detected&#8221;);        // print &#8220;not detected&#8221;<br />
  } </p>
<p>}</p>
<p>void blinky() {<br />
  int i;<br />
  int blinks = 0;</p>
<p>  for (i=0;i<=blinks;i++) {<br />
    digitalWrite(blinkyPin, HIGH);<br />
    delay(500);<br />
    digitalWrite(blinkyPin, LOW);<br />
    delay(500);<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bling! by dean gransar</title>
		<link>http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-14143</link>
		<dc:creator>dean gransar</dc:creator>
		<pubDate>Fri, 16 May 2008 13:37:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-14143</guid>
		<description>Congratulations Dory!</description>
		<content:encoded><![CDATA[<p>Congratulations Dory!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bling! by Tim Stutts</title>
		<link>http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-14111</link>
		<dc:creator>Tim Stutts</dc:creator>
		<pubDate>Fri, 16 May 2008 04:56:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-14111</guid>
		<description>Would love to meet her :)  Is she coming to the Strawberry and Champaign event tomorrow?</description>
		<content:encoded><![CDATA[<p>Would love to meet her <img src='http://www.doryexmachina.com/itpblog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Is she coming to the Strawberry and Champaign event tomorrow?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bling! by Matt Fargo</title>
		<link>http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-14108</link>
		<dc:creator>Matt Fargo</dc:creator>
		<pubDate>Thu, 15 May 2008 22:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-14108</guid>
		<description>Yayyyyyyyyyy Dory!</description>
		<content:encoded><![CDATA[<p>Yayyyyyyyyyy Dory!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bling! by Sinan Ascioglu</title>
		<link>http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-14107</link>
		<dc:creator>Sinan Ascioglu</dc:creator>
		<pubDate>Thu, 15 May 2008 18:24:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-14107</guid>
		<description>Duuudee, congrats!!! I was just wondering who would be the first to get married among the people I know in NYC, and va la!</description>
		<content:encoded><![CDATA[<p>Duuudee, congrats!!! I was just wondering who would be the first to get married among the people I know in NYC, and va la!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on SOCIALBOMB FTW!! by Aaron</title>
		<link>http://www.doryexmachina.com/itpblog/2008/04/27/socialbomb-ftw/#comment-12879</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Mon, 28 Apr 2008 05:28:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.doryexmachina.com/itpblog/?p=337#comment-12879</guid>
		<description>Holy F! Congrats, dude. This is awesome news. I'm very happy for you!!!</description>
		<content:encoded><![CDATA[<p>Holy F! Congrats, dude. This is awesome news. I&#8217;m very happy for you!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Printing Boards by Mike D. @ ITP - Logger mania!!</title>
		<link>http://www.doryexmachina.com/itpblog/2008/04/14/printing-boards/#comment-12403</link>
		<dc:creator>Mike D. @ ITP - Logger mania!!</dc:creator>
		<pubDate>Wed, 16 Apr 2008 06:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.doryexmachina.com/itpblog/?p=334#comment-12403</guid>
		<description>[...] all) to move loggers has been based on the need to adjust what I&#8217;ve been doing to fit the new boards I&#8217;ve made, which will be sweet once it all comes together.  Plus, the new uSD dude has a real-time clock [...]</description>
		<content:encoded><![CDATA[<p>[...] all) to move loggers has been based on the need to adjust what I&#8217;ve been doing to fit the new boards I&#8217;ve made, which will be sweet once it all comes together.  Plus, the new uSD dude has a real-time clock [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ETech is go! by sinan ascioglu</title>
		<link>http://www.doryexmachina.com/itpblog/2008/03/03/etech-is-go/#comment-10740</link>
		<dc:creator>sinan ascioglu</dc:creator>
		<pubDate>Mon, 03 Mar 2008 21:06:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.doryexmachina.com/itpblog/2008/03/03/etech-is-go/#comment-10740</guid>
		<description>I am proud of you guys!! Give'em the funniest social moments of their lives!</description>
		<content:encoded><![CDATA[<p>I am proud of you guys!! Give&#8217;em the funniest social moments of their lives!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bling! by Jon Armstrong</title>
		<link>http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-10479</link>
		<dc:creator>Jon Armstrong</dc:creator>
		<pubDate>Wed, 20 Feb 2008 12:43:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-10479</guid>
		<description>Congratulations! I was just surfing over to your site to see what you were up to and discovered that you are engaged. Very cool.

I happened to meet another ITP person last week, who I think you know, Heather Rasley. She did a small piece about me for The Morning News.</description>
		<content:encoded><![CDATA[<p>Congratulations! I was just surfing over to your site to see what you were up to and discovered that you are engaged. Very cool.</p>
<p>I happened to meet another ITP person last week, who I think you know, Heather Rasley. She did a small piece about me for The Morning News.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Bling! by Aaron</title>
		<link>http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-9532</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Thu, 10 Jan 2008 16:14:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.doryexmachina.com/itpblog/2008/01/10/bling/#comment-9532</guid>
		<description>Congratulations! I've already said it via IM, Twitter and Facebook, so that I would add the blog as well. Looking forward to celebrating next week in person (finally!). I'm sure there's a good story here.

And btw - that's some BLING.</description>
		<content:encoded><![CDATA[<p>Congratulations! I&#8217;ve already said it via IM, Twitter and Facebook, so that I would add the blog as well. Looking forward to celebrating next week in person (finally!). I&#8217;m sure there&#8217;s a good story here.</p>
<p>And btw - that&#8217;s some BLING.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
