<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Spooky Projects &#8211; Introduction to Microcontrollers with Arduino</title>
	<atom:link href="http://todbot.com/blog/spookyarduino/feed/" rel="self" type="application/rss+xml" />
	<link>http://todbot.com/blog</link>
	<description>Random experiments, circuits, code, rapid prototyping, sometimes things to buy, and the odd tune by Tod E. Kurt.</description>
	<lastBuildDate>Fri, 12 Mar 2010 21:30:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-58890</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-58890</guid>
		<description>Apologies, there was an HTML error on the page.  Fixed now. Thanks for catching it.</description>
		<content:encoded><![CDATA[<p>Apologies, there was an HTML error on the page.  Fixed now. Thanks for catching it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shakebot</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-58889</link>
		<dc:creator>shakebot</dc:creator>
		<pubDate>Fri, 05 Feb 2010 18:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-58889</guid>
		<description>guys, i guess the link for class 4 notes is not opening??


regards,
gaurav</description>
		<content:encoded><![CDATA[<p>guys, i guess the link for class 4 notes is not opening??</p>
<p>regards,<br />
gaurav</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rogan</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-58528</link>
		<dc:creator>Rogan</dc:creator>
		<pubDate>Tue, 01 Dec 2009 06:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-58528</guid>
		<description>Oops!  Just caught a similar question and response above.  Sorry, and thanks again for your incredible tutorials!</description>
		<content:encoded><![CDATA[<p>Oops!  Just caught a similar question and response above.  Sorry, and thanks again for your incredible tutorials!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rogan</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-58527</link>
		<dc:creator>Rogan</dc:creator>
		<pubDate>Tue, 01 Dec 2009 06:20:33 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-58527</guid>
		<description>Hello Tod!  Thanks for all of the help.  I am learning along side some design students, trying to integrate the arduino into some products.  One student wants to create a piezo project that can play two melodies from two piezos wired into one arduino.  Do you have any suggestions?</description>
		<content:encoded><![CDATA[<p>Hello Tod!  Thanks for all of the help.  I am learning along side some design students, trying to integrate the arduino into some products.  One student wants to create a piezo project that can play two melodies from two piezos wired into one arduino.  Do you have any suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fizzPOP Howduino 25th November &#8211; Part 1 &#171; Ourduino &#8211; Arduino, Electronics and Programming</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-58199</link>
		<dc:creator>fizzPOP Howduino 25th November &#8211; Part 1 &#171; Ourduino &#8211; Arduino, Electronics and Programming</dc:creator>
		<pubDate>Wed, 25 Nov 2009 11:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-58199</guid>
		<description>[...] The wonderful Todbot material is at Todbot&#8217;s Spooky Projects: [...]</description>
		<content:encoded><![CDATA[<p>[...] The wonderful Todbot material is at Todbot&#8217;s Spooky Projects: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: criticalmaking.com &#187; Blog Archive &#187; First DDiMIT Workshop &#8211; Twittering Infrastructure for Making Basic Internet of Things (TIMBITs)</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-58155</link>
		<dc:creator>criticalmaking.com &#187; Blog Archive &#187; First DDiMIT Workshop &#8211; Twittering Infrastructure for Making Basic Internet of Things (TIMBITs)</dc:creator>
		<pubDate>Tue, 24 Nov 2009 15:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-58155</guid>
		<description>[...] The circuit diagrams used in the workshop included simple led and sensor circuits. We also used the tutorials created by Limor Fried and those made by Tod E. Kurt. [...]</description>
		<content:encoded><![CDATA[<p>[...] The circuit diagrams used in the workshop included simple led and sensor circuits. We also used the tutorials created by Limor Fried and those made by Tod E. Kurt. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ressources pour l&#8217;Arduino &#171; PlayArduino.fr</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-56658</link>
		<dc:creator>Ressources pour l&#8217;Arduino &#171; PlayArduino.fr</dc:creator>
		<pubDate>Thu, 08 Oct 2009 15:00:27 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-56658</guid>
		<description>[...] et le langage (comment créer, compiler, envoyer un programme sur la platine) je vous conseille les excellents cours de Tod Kurt à télécharger en PDF. Une entrée en matière très pédagogique, et très [...]</description>
		<content:encoded><![CDATA[<p>[...] et le langage (comment créer, compiler, envoyer un programme sur la platine) je vous conseille les excellents cours de Tod Kurt à télécharger en PDF. Une entrée en matière très pédagogique, et très [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Do You Arduino? &#171; Art+Nature+Science</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-56363</link>
		<dc:creator>Do You Arduino? &#171; Art+Nature+Science</dc:creator>
		<pubDate>Fri, 02 Oct 2009 03:47:45 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-56363</guid>
		<description>[...] your hands, but you want to harness the power of lightening, here are a few Halloween-inspired spooky Arduino projects to get your Frankenstein up and [...]</description>
		<content:encoded><![CDATA[<p>[...] your hands, but you want to harness the power of lightening, here are a few Halloween-inspired spooky Arduino projects to get your Frankenstein up and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ninjia Arduino&#187; Blog ?? &#187; ????</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-53699</link>
		<dc:creator>Ninjia Arduino&#187; Blog ?? &#187; ????</dc:creator>
		<pubDate>Tue, 21 Jul 2009 14:37:48 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-53699</guid>
		<description>[...] http://todbot.com/blog/spookyarduino/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://todbot.com/blog/spookyarduino/" rel="nofollow">http://todbot.com/blog/spookyarduino/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Piezo with an Arduino &#38; photoresistor &#171; adafruit industries blog</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-51550</link>
		<dc:creator>Piezo with an Arduino &#38; photoresistor &#171; adafruit industries blog</dc:creator>
		<pubDate>Wed, 20 May 2009 04:59:58 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-51550</guid>
		<description>[...] Short video (m4v) of a piezo, photoresistor and Arduino&#8230;. Here&#8217;s the code we used from TodBot! [...]</description>
		<content:encoded><![CDATA[<p>[...] Short video (m4v) of a piezo, photoresistor and Arduino&#8230;. Here&#8217;s the code we used from TodBot! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Experimentierboard Arduino Duemilanove &#171; Netzwelten</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-50859</link>
		<dc:creator>Experimentierboard Arduino Duemilanove &#171; Netzwelten</dc:creator>
		<pubDate>Sat, 21 Mar 2009 09:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-50859</guid>
		<description>[...] Spooky projects with Arduino [...]</description>
		<content:encoded><![CDATA[<p>[...] Spooky projects with Arduino [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mae</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-50428</link>
		<dc:creator>mae</dc:creator>
		<pubDate>Tue, 03 Feb 2009 16:56:52 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-50428</guid>
		<description>thanks! I´ll try it. greetings from Germany :)
your site is great. I´ll recommend it. mae</description>
		<content:encoded><![CDATA[<p>thanks! I´ll try it. greetings from Germany :)<br />
your site is great. I´ll recommend it. mae</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mae</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-3/#comment-50423</link>
		<dc:creator>mae</dc:creator>
		<pubDate>Tue, 03 Feb 2009 08:25:17 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-50423</guid>
		<description>thanks for your quick answer!! I´ll try it. greetings from germany. mae</description>
		<content:encoded><![CDATA[<p>thanks for your quick answer!! I´ll try it. greetings from germany. mae</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-2/#comment-50354</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Thu, 22 Jan 2009 02:35:37 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-50354</guid>
		<description>Hi mae,
For the Arduino sketch, grab &quot;piezo_read.pde&quot; above and replace the &quot;loop()&quot; function with something that will look at each piezo and send out via serial the number of the piezo that&#039;s been hit.  Something like this:
&lt;pre&gt;
int numPiezos = 6;
void loop() { 
  digitalWrite(ledPin,LOW);     // indicate we&#039;re waiting
  for( int i=0; i= THRESHOLD ) {      // is it bigger than our minimum?
      digitalWrite(ledPin, HIGH); // tell the world
      t = 0;
      while(analogRead( i ) &gt;= (THRESHOLD/2)) {
        t++;
      } // wait for it to go LOW  (with a little hysteresis)
      if(t!=0) 
        Serial.println( i );  // print out the number of the piezo read
    }
  }
}&lt;/pre&gt;

Then in the Processing sketch, you want to read that piezo number sent by the Arduino.  That means the &quot;serialEvent()&quot; method in the &quot;arduino_spookysounds.pde&quot; sketch would turn into something like:
&lt;pre&gt;
void serialEvent(Serial p) {
  int num = port.read();
  println(&quot;num=&quot;+num);        // print out the value read
  if( num &gt;= 0 &amp;&amp; num &lt; num_sounds ) {
    myChannel[num].play(1);   // play a sound
  }
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi mae,<br />
For the Arduino sketch, grab &#8220;piezo_read.pde&#8221; above and replace the &#8220;loop()&#8221; function with something that will look at each piezo and send out via serial the number of the piezo that&#8217;s been hit.  Something like this:</p>
<pre>
int numPiezos = 6;
void loop() {
  digitalWrite(ledPin,LOW);     // indicate we're waiting
  for( int i=0; i= THRESHOLD ) {      // is it bigger than our minimum?
      digitalWrite(ledPin, HIGH); // tell the world
      t = 0;
      while(analogRead( i ) &gt;= (THRESHOLD/2)) {
        t++;
      } // wait for it to go LOW  (with a little hysteresis)
      if(t!=0)
        Serial.println( i );  // print out the number of the piezo read
    }
  }
}</pre>
<p>Then in the Processing sketch, you want to read that piezo number sent by the Arduino.  That means the &#8220;serialEvent()&#8221; method in the &#8220;arduino_spookysounds.pde&#8221; sketch would turn into something like:</p>
<pre>
void serialEvent(Serial p) {
  int num = port.read();
  println("num="+num);        // print out the value read
  if( num &gt;= 0 &amp;&amp; num &lt; num_sounds ) {
    myChannel[num].play(1);   // play a sound
  }
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: mae</title>
		<link>http://todbot.com/blog/spookyarduino/comment-page-2/#comment-50348</link>
		<dc:creator>mae</dc:creator>
		<pubDate>Tue, 20 Jan 2009 20:00:38 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/spookyarduino/#comment-50348</guid>
		<description>hi,
I was trying arduino_spookysounds and it works fine. I want to use six piezos. Can you tell me how to modify the sketches on Arduino and Processing so that each piezo plays its own sound?
thanks, mae</description>
		<content:encoded><![CDATA[<p>hi,<br />
I was trying arduino_spookysounds and it works fine. I want to use six piezos. Can you tell me how to modify the sketches on Arduino and Processing so that each piezo plays its own sound?<br />
thanks, mae</p>
]]></content:encoded>
	</item>
</channel>
</rss>
