<?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: DIY Ambient Orb with Arduino, update</title>
	<atom:link href="http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/feed/" rel="self" type="application/rss+xml" />
	<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/</link>
	<description>Random experiments, circuits, code, rapid prototyping, sometimes things to buy, and the odd tune by Tod E. Kurt.</description>
	<lastBuildDate>Tue, 07 Feb 2012 02:00:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Big Fan</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-78321</link>
		<dc:creator>Big Fan</dc:creator>
		<pubDate>Wed, 12 Oct 2011 13:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-78321</guid>
		<description>I suspect the error has to do with this part of the code:  

   port = new Serial(this, portstr, 9600);

Where portstr is defined as:

   String portstr = &quot;/dev/tty.usbserial-A3000Xv0&quot;;

Can you help me to understand what &quot;portstr&quot; is for?  I am using an Arduino UNO on COM3 port.</description>
		<content:encoded><![CDATA[<p>I suspect the error has to do with this part of the code:  </p>
<p>   port = new Serial(this, portstr, 9600);</p>
<p>Where portstr is defined as:</p>
<p>   String portstr = &#8220;/dev/tty.usbserial-A3000Xv0&#8243;;</p>
<p>Can you help me to understand what &#8220;portstr&#8221; is for?  I am using an Arduino UNO on COM3 port.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Big Fan</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-78320</link>
		<dc:creator>Big Fan</dc:creator>
		<pubDate>Wed, 12 Oct 2011 13:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-78320</guid>
		<description>Hi,

I stumbled across your blog when Googling Ambient Orb.  I am very interested in your work, and am trying to replicate what you did.  I am completely new to all of this, but managed to get to the point where your Arduino code (serial_rgb_led_too.pde) now works for me really well!

I am stuck at the Processing code part.  I downloaded the Processing IDE and your code (http_rgb_led.pde), but when I run your code I get the error below:

countdown to color: 3
countdown to color: 2
countdown to color: 1
countdown to color: 1
   content: set the color
   content: #9970ff
parsed color #9970ff
java.lang.NullPointerException
	at processing.serial.Serial.write(Unknown Source)
	at processing.serial.Serial.write(Unknown Source)
	at http_rgb_led.getWebColor(http_rgb_led.java:82)
	at http_rgb_led.draw(http_rgb_led.java:57)
	at processing.core.PApplet.handleDraw(Unknown Source)
	at processing.core.PApplet.run(Unknown Source)
	at java.lang.Thread.run(Thread.java:662)

Can you help me by pointing out what I am doing wrong?  I am completely stuck and any guidance would be greatly appreciated.  Thank you!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I stumbled across your blog when Googling Ambient Orb.  I am very interested in your work, and am trying to replicate what you did.  I am completely new to all of this, but managed to get to the point where your Arduino code (serial_rgb_led_too.pde) now works for me really well!</p>
<p>I am stuck at the Processing code part.  I downloaded the Processing IDE and your code (http_rgb_led.pde), but when I run your code I get the error below:</p>
<p>countdown to color: 3<br />
countdown to color: 2<br />
countdown to color: 1<br />
countdown to color: 1<br />
   content: set the color<br />
   content: #9970ff<br />
parsed color #9970ff<br />
java.lang.NullPointerException<br />
	at processing.serial.Serial.write(Unknown Source)<br />
	at processing.serial.Serial.write(Unknown Source)<br />
	at http_rgb_led.getWebColor(http_rgb_led.java:82)<br />
	at http_rgb_led.draw(http_rgb_led.java:57)<br />
	at processing.core.PApplet.handleDraw(Unknown Source)<br />
	at processing.core.PApplet.run(Unknown Source)<br />
	at java.lang.Thread.run(Thread.java:662)</p>
<p>Can you help me by pointing out what I am doing wrong?  I am completely stuck and any guidance would be greatly appreciated.  Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arduino Physical Computing Kit &#124; inmotion.pt</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-78283</link>
		<dc:creator>Arduino Physical Computing Kit &#124; inmotion.pt</dc:creator>
		<pubDate>Fri, 30 Sep 2011 02:47:55 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-78283</guid>
		<description>[...] Making your own ambient ORB light [...]</description>
		<content:encoded><![CDATA[<p>[...] Making your own ambient ORB light [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arduino, Termómetro Gráfico &#124; Eduardo Marín</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-77128</link>
		<dc:creator>Arduino, Termómetro Gráfico &#124; Eduardo Marín</dc:creator>
		<pubDate>Mon, 06 Jun 2011 19:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-77128</guid>
		<description>[...]  Publicado el 6 junio, 2011 por edu    Tras estar viendo alg&#250;n que otro montaje sobre DIY Ambient Orb, y pensar alguna cosilla que no estuviera hecha, tan s&#243;lo se me ha ocurrido relacionar los [...]</description>
		<content:encoded><![CDATA[<p>[...]  Publicado el 6 junio, 2011 por edu    Tras estar viendo alg&uacute;n que otro montaje sobre DIY Ambient Orb, y pensar alguna cosilla que no estuviera hecha, tan s&oacute;lo se me ha ocurrido relacionar los [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: B&#38;Q ambient orb kit &#171; Notes from a small field</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-72762</link>
		<dc:creator>B&#38;Q ambient orb kit &#171; Notes from a small field</dc:creator>
		<pubDate>Mon, 23 Aug 2010 21:49:54 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-72762</guid>
		<description>[...] DIY Ambient Orb [...]</description>
		<content:encoded><![CDATA[<p>[...] DIY Ambient Orb [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-57405</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Mon, 02 Nov 2009 15:50:32 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-57405</guid>
		<description>I got it running, and it is super cool! I have a dedicated laptop so that it runs 24/7. Looking at the PHP, I see where the &quot;pulse&quot; idea is implemented, but I can&#039;t follow it to the code running on the Arduino or in Processing. Am I crazy, or does it not exist? If I am sane, and it isn&#039;t there, how would I go about implementing it?</description>
		<content:encoded><![CDATA[<p>I got it running, and it is super cool! I have a dedicated laptop so that it runs 24/7. Looking at the PHP, I see where the &#8220;pulse&#8221; idea is implemented, but I can&#8217;t follow it to the code running on the Arduino or in Processing. Am I crazy, or does it not exist? If I am sane, and it isn&#8217;t there, how would I go about implementing it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-57245</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Fri, 30 Oct 2009 15:54:19 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-57245</guid>
		<description>Hi Daniel,
Can you please describe exactly what steps you are taking to produce that error?  Also, what version of Arduino and what OS are you on?</description>
		<content:encoded><![CDATA[<p>Hi Daniel,<br />
Can you please describe exactly what steps you are taking to produce that error?  Also, what version of Arduino and what OS are you on?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Cooper</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-57236</link>
		<dc:creator>Daniel Cooper</dc:creator>
		<pubDate>Fri, 30 Oct 2009 13:02:41 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-57236</guid>
		<description>10: error: #include expects &quot;FILENAME&quot; or &lt;FILENAME
Does anyone know about this error code cant get past it need HELP?</description>
		<content:encoded><![CDATA[<p>10: error: #include expects &#8220;FILENAME&#8221; or &lt;FILENAME<br />
Does anyone know about this error code cant get past it need HELP?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nisse</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-57001</link>
		<dc:creator>Nisse</dc:creator>
		<pubDate>Sun, 18 Oct 2009 14:42:10 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-57001</guid>
		<description>Hi Tod!
Thx for this wounderful &quot;project&quot;! I am just wondering if I had missunderstand it a bit, or if it is just my computer that is a blit spoooooky!

For me, after a while the RGB LED starts to change color by it&#039;s own. Is it ment to be like that?
If it is ment to be like that can you help me fix the code so it doesent make that? :)

// Nisse from Sweden :)</description>
		<content:encoded><![CDATA[<p>Hi Tod!<br />
Thx for this wounderful &#8220;project&#8221;! I am just wondering if I had missunderstand it a bit, or if it is just my computer that is a blit spoooooky!</p>
<p>For me, after a while the RGB LED starts to change color by it&#8217;s own. Is it ment to be like that?<br />
If it is ment to be like that can you help me fix the code so it doesent make that? :)</p>
<p>// Nisse from Sweden :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick Blight</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-56058</link>
		<dc:creator>Rick Blight</dc:creator>
		<pubDate>Tue, 22 Sep 2009 18:59:26 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-56058</guid>
		<description>Hello everyone,
I was wondering if anyone has successfully implemented the &#039;pulse&#039; idea. I have my arduino running my lamp and it looks beautiful; I would love it it it could &quot;display&quot; precipitation. Either pulse, or light up a separate LED or two.

Thanks!
Rick.</description>
		<content:encoded><![CDATA[<p>Hello everyone,<br />
I was wondering if anyone has successfully implemented the &#8216;pulse&#8217; idea. I have my arduino running my lamp and it looks beautiful; I would love it it it could &#8220;display&#8221; precipitation. Either pulse, or light up a separate LED or two.</p>
<p>Thanks!<br />
Rick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-4/#comment-55952</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Sat, 19 Sep 2009 20:57:34 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-55952</guid>
		<description>Hi Dave,
There are many examples of that on the Arduino forums and other places.  The code is pretty short, basically just:
&lt;pre&gt;
void loop() {
  int r = analogRead(redSlider) / 4;
  int g = analogRead(grnSlider) / 4;
  int b = analogRead(bluSlider) / 4;

  analogWrite( redPin, r );
  analogWrite( grnPin, g );
  analogWrite( bluPin, b );
}&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Dave,<br />
There are many examples of that on the Arduino forums and other places.  The code is pretty short, basically just:</p>
<pre>
void loop() {
  int r = analogRead(redSlider) / 4;
  int g = analogRead(grnSlider) / 4;
  int b = analogRead(bluSlider) / 4;

  analogWrite( redPin, r );
  analogWrite( grnPin, g );
  analogWrite( bluPin, b );
}</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Dimero</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-3/#comment-55892</link>
		<dc:creator>Dave Dimero</dc:creator>
		<pubDate>Sat, 19 Sep 2009 03:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-55892</guid>
		<description>Has anyone come up with any cool websites i.e. giving users access to a set of sliders to determine the color of the light?</description>
		<content:encoded><![CDATA[<p>Has anyone come up with any cool websites i.e. giving users access to a set of sliders to determine the color of the light?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Balam</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-3/#comment-51200</link>
		<dc:creator>Balam</dc:creator>
		<pubDate>Wed, 15 Apr 2009 14:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-51200</guid>
		<description>Hi tod
this a great tutorial,  thanks for this sharing, 
I have a question regarding the amount of LEDs in pwm channels ,  My arduino board has only 6 pwm pins,  wich makes 2 RGB Leds,  ( the megas has more pwm ) but any way
I need to controll several leds ( from sparkfun )
and I am wondering if 2 LEDs per channel will be handle well and have good light,  what resistor would you recommend (OHMS) for each Led .  thank you looking forward to read your post.   balam</description>
		<content:encoded><![CDATA[<p>Hi tod<br />
this a great tutorial,  thanks for this sharing,<br />
I have a question regarding the amount of LEDs in pwm channels ,  My arduino board has only 6 pwm pins,  wich makes 2 RGB Leds,  ( the megas has more pwm ) but any way<br />
I need to controll several leds ( from sparkfun )<br />
and I am wondering if 2 LEDs per channel will be handle well and have good light,  what resistor would you recommend (OHMS) for each Led .  thank you looking forward to read your post.   balam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-3/#comment-50289</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Tue, 06 Jan 2009 02:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-50289</guid>
		<description>Hi quikstiks,
Short answer to your main question: yes, I think an Arduino could handle your 6 analog inputs and 6 LED outputs. The two speaker outputs are emitting sounds computed by a Max/MSP patch on a computer?  If so, the Arduino isn&#039;t really involved in that, but it would be sending data from its inputs to Max.

I tend to think in terms of input-&gt;output flows. It sounds like there are two major flows.  First, there&#039;s the immediate &quot;autonomous&quot; response of triggering the LEDs based on the various inputs.  This is a totally stand-alone Arduino sketch that could run by itself.  And it might be a good starting point for getting everything all together and working. 

Then there&#039;s the &quot;Arduino-as-input-device&quot; flow where the Arduino reads the inputs, sends them to Max/MSP over its serial/USB port, and Max outputs sound to speakers.  I assume the Max patch is doing some sort of algorithmic generation of sound.  If you&#039;re happy with just triggering lofi samples instead, you could add a &lt;a href=&quot;http://www.ladyada.net/make/waveshield/&quot; rel=&quot;nofollow&quot;&gt;Waveshield&lt;/a&gt; on top of the Arduino and have it play the sounds directly.

But if you don&#039;t do that, you&#039;ve got two cables running from the computer to each Orb: a USB cable and a speaker cable.

This project sounds really cool. Send me some links when you get it up and running!</description>
		<content:encoded><![CDATA[<p>Hi quikstiks,<br />
Short answer to your main question: yes, I think an Arduino could handle your 6 analog inputs and 6 LED outputs. The two speaker outputs are emitting sounds computed by a Max/MSP patch on a computer?  If so, the Arduino isn&#8217;t really involved in that, but it would be sending data from its inputs to Max.</p>
<p>I tend to think in terms of input->output flows. It sounds like there are two major flows.  First, there&#8217;s the immediate &#8220;autonomous&#8221; response of triggering the LEDs based on the various inputs.  This is a totally stand-alone Arduino sketch that could run by itself.  And it might be a good starting point for getting everything all together and working. </p>
<p>Then there&#8217;s the &#8220;Arduino-as-input-device&#8221; flow where the Arduino reads the inputs, sends them to Max/MSP over its serial/USB port, and Max outputs sound to speakers.  I assume the Max patch is doing some sort of algorithmic generation of sound.  If you&#8217;re happy with just triggering lofi samples instead, you could add a <a href="http://www.ladyada.net/make/waveshield/" rel="nofollow">Waveshield</a> on top of the Arduino and have it play the sounds directly.</p>
<p>But if you don&#8217;t do that, you&#8217;ve got two cables running from the computer to each Orb: a USB cable and a speaker cable.</p>
<p>This project sounds really cool. Send me some links when you get it up and running!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: quikstiks</title>
		<link>http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/comment-page-3/#comment-50288</link>
		<dc:creator>quikstiks</dc:creator>
		<pubDate>Tue, 06 Jan 2009 00:18:08 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2006/10/23/diy-ambient-orb-with-arduino-update/#comment-50288</guid>
		<description>P.s. the LED&#039;s have max. current ranges from 25-100mA</description>
		<content:encoded><![CDATA[<p>P.s. the LED&#8217;s have max. current ranges from 25-100mA</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic page generated in 0.690 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-06 22:36:38 -->

