<?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: BlinkM Hello, Video Guides, Example Code</title>
	<atom:link href="http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/</link>
	<description>Random experiments, circuits, code, rapid prototyping, sometimes things to buy, and the odd tune by Tod E. Kurt.</description>
	<lastBuildDate>Sat, 14 Apr 2012 16:47:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-75028</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Wed, 15 Sep 2010 05:01:30 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-75028</guid>
		<description>Hi Chris,
If you mean this &lt;a href=&quot;http://arduino.cc/en/Main/ArduinoBoardPro&quot; rel=&quot;nofollow&quot;&gt;Arduino Pro&lt;/a&gt;, then yes, you should be able connect to Analog pins 2,3,4,5 (or pins 5V,Gnd and Analog pins 4,5), just like a normal Arduino.</description>
		<content:encoded><![CDATA[<p>Hi Chris,<br />
If you mean this <a href="http://arduino.cc/en/Main/ArduinoBoardPro" rel="nofollow">Arduino Pro</a>, then yes, you should be able connect to Analog pins 2,3,4,5 (or pins 5V,Gnd and Analog pins 4,5), just like a normal Arduino.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-75027</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 15 Sep 2010 04:03:45 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-75027</guid>
		<description>I was just wondering how I could connect the blinkM to my arduino pro mini? and also if i was to use analogue plugs A1 and A2, how and where would i need to edit the communication code? 

many thanks</description>
		<content:encoded><![CDATA[<p>I was just wondering how I could connect the blinkM to my arduino pro mini? and also if i was to use analogue plugs A1 and A2, how and where would i need to edit the communication code? </p>
<p>many thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BlinkM Hello, Video Guides, Example Code</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-71253</link>
		<dc:creator>BlinkM Hello, Video Guides, Example Code</dc:creator>
		<pubDate>Mon, 31 May 2010 17:49:21 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-71253</guid>
		<description>[...] [originally published on 25 Jan 2008 on todbot blog] [...]</description>
		<content:encoded><![CDATA[<p>[...] [originally published on 25 Jan 2008 on todbot blog] [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stetho-phone V0.2-2010 &#187; Blog Archive &#187; Dot matrix display</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-58259</link>
		<dc:creator>Stetho-phone V0.2-2010 &#187; Blog Archive &#187; Dot matrix display</dc:creator>
		<pubDate>Thu, 26 Nov 2009 10:02:33 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-58259</guid>
		<description>[...] to http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/   [...]</description>
		<content:encoded><![CDATA[<p>[...] to <a href="http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/" rel="nofollow">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/</a>   [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-58054</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Wed, 18 Nov 2009 01:45:06 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-58054</guid>
		<description>Hi Giovanni,
I&#039;m not quite sure what Arduino sketch you&#039;re working from.  And it&#039;s unclear what you mean by &quot;not work&quot;.  Do you mean does not compile?  Because the code snippet you list is missing an &#039;=&#039; between &quot;hue&quot; and &quot;127&quot;.  E.g. that line should read:&lt;pre&gt;
hue = 127;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi Giovanni,<br />
I&#8217;m not quite sure what Arduino sketch you&#8217;re working from.  And it&#8217;s unclear what you mean by &#8220;not work&#8221;.  Do you mean does not compile?  Because the code snippet you list is missing an &#8216;=&#8217; between &#8220;hue&#8221; and &#8220;127&#8243;.  E.g. that line should read:
<pre>
hue = 127;
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Giovanni</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-58052</link>
		<dc:creator>Giovanni</dc:creator>
		<pubDate>Wed, 18 Nov 2009 01:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-58052</guid>
		<description>Tod,

any ideas why something like this does not work:
&lt;pre&gt;
hue 127;
  
blinkm_script_line script1_lines[] = {
  {1,  {&#039;f&#039;, 10, 00, 00}},
  {25, {&#039;h&#039;, hue, 0xff, 0xff}},  // Custom Color
  {25, {&#039;h&#039;, 43, 0x00, 0xff}},  // Bright White
};
&lt;/pre&gt;

If I replace hue inside the array with a number it works fine...been scratching my head about this for awhile now.  

Hope you can help,
-G</description>
		<content:encoded><![CDATA[<p>Tod,</p>
<p>any ideas why something like this does not work:</p>
<pre>
hue 127;

blinkm_script_line script1_lines[] = {
  {1,  {'f', 10, 00, 00}},
  {25, {'h', hue, 0xff, 0xff}},  // Custom Color
  {25, {'h', 43, 0x00, 0xff}},  // Bright White
};
</pre>
<p>If I replace hue inside the array with a number it works fine&#8230;been scratching my head about this for awhile now.  </p>
<p>Hope you can help,<br />
-G</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-53693</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Tue, 21 Jul 2009 01:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-53693</guid>
		<description>Hi mcozire,
Because BlinkMs communicate via I2C, all the Arduinos need the same number of pins to control all BlinkMs: two (not including 5V &amp; Gnd).  These two pins are called &quot;SDA&quot; and &quot;SCL&quot;, on the BlinkM they are abbreviated &quot;d&quot; and &quot;c&quot;. 

With the traditional Arduino, SDA &amp; SCL due double duty with Analog In pins 4 &amp; 5.  On the Arduino MEGA, SDA &amp; SCL have their own dedicated holes.

Now as to how many you BlinkMs you can control over these two pins, theoretically it&#039;s up to 120.  In practice you start to run into issues with cable length and power requirements (each BlinkM can draw up to 60mA of current, and a USB-powered Arduino can supply about 450mA of current)

I&#039;ve regularly driven 8 BlinkMs off a USB-powered Arduino on a 3-ft cable.  My &lt;a href=&quot;http://todbot.com/blog/2008/06/17/get-on-the-blinkm-bus-with-a-blinkm-cylon/&quot; rel=&quot;nofollow&quot;&gt;BlinkM Cylon&lt;/a&gt; project used 13 BlinkMs on a 6-ft cable.</description>
		<content:encoded><![CDATA[<p>Hi mcozire,<br />
Because BlinkMs communicate via I2C, all the Arduinos need the same number of pins to control all BlinkMs: two (not including 5V &#038; Gnd).  These two pins are called &#8220;SDA&#8221; and &#8220;SCL&#8221;, on the BlinkM they are abbreviated &#8220;d&#8221; and &#8220;c&#8221;. </p>
<p>With the traditional Arduino, SDA &#038; SCL due double duty with Analog In pins 4 &#038; 5.  On the Arduino MEGA, SDA &#038; SCL have their own dedicated holes.</p>
<p>Now as to how many you BlinkMs you can control over these two pins, theoretically it&#8217;s up to 120.  In practice you start to run into issues with cable length and power requirements (each BlinkM can draw up to 60mA of current, and a USB-powered Arduino can supply about 450mA of current)</p>
<p>I&#8217;ve regularly driven 8 BlinkMs off a USB-powered Arduino on a 3-ft cable.  My <a href="http://todbot.com/blog/2008/06/17/get-on-the-blinkm-bus-with-a-blinkm-cylon/" rel="nofollow">BlinkM Cylon</a> project used 13 BlinkMs on a 6-ft cable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mcozire</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-53159</link>
		<dc:creator>mcozire</dc:creator>
		<pubDate>Thu, 02 Jul 2009 19:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-53159</guid>
		<description>Hi there!! Love the look of these BlinkMs.

I was just wondering.. if I get a Arduino Mega.. how many BlinkMs could I connect directly to it? 

Also I want to be able to place BlinkMs along a meter long box, with the arduino situated at the back of it. Is this possible? Do I just need long wires from the BlinkMs connecting directly to the to Analog Ins on the Arudino Mega?

Many thanks!</description>
		<content:encoded><![CDATA[<p>Hi there!! Love the look of these BlinkMs.</p>
<p>I was just wondering.. if I get a Arduino Mega.. how many BlinkMs could I connect directly to it? </p>
<p>Also I want to be able to place BlinkMs along a meter long box, with the arduino situated at the back of it. Is this possible? Do I just need long wires from the BlinkMs connecting directly to the to Analog Ins on the Arudino Mega?</p>
<p>Many thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-51803</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Thu, 28 May 2009 20:17:32 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-51803</guid>
		<description>Love the BS2Px robot idea. Got any pics or links?  

As for reprogramming scripts 1-16, the short answer is &quot;no, not yet&quot;. A more detailed answer is here: http://getsatisfaction.com/thingm/topics/re_program_scripts_1_through_16</description>
		<content:encoded><![CDATA[<p>Love the BS2Px robot idea. Got any pics or links?  </p>
<p>As for reprogramming scripts 1-16, the short answer is &#8220;no, not yet&#8221;. A more detailed answer is here: <a href="http://getsatisfaction.com/thingm/topics/re_program_scripts_1_through_16" rel="nofollow">http://getsatisfaction.com/thingm/topics/re_program_scripts_1_through_16</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: modemman</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-51774</link>
		<dc:creator>modemman</dc:creator>
		<pubDate>Tue, 26 May 2009 20:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-51774</guid>
		<description>Tod,

I just put 2 BlinkM-s as headlights / moodlights / statuslights on my BS2Px based robot and my kids are going nuts with it.

Forgive me if I missed the discussions on this - did you make changes to the firmware that allow us to re-program all 16 scripts, or we&#039;re still at script 0 only?

Thanks for making one of the most fun little gadgets ever (I&#039;m also waiting for my Max, this will be used with a pot to create mood light in a room...)</description>
		<content:encoded><![CDATA[<p>Tod,</p>
<p>I just put 2 BlinkM-s as headlights / moodlights / statuslights on my BS2Px based robot and my kids are going nuts with it.</p>
<p>Forgive me if I missed the discussions on this &#8211; did you make changes to the firmware that allow us to re-program all 16 scripts, or we&#8217;re still at script 0 only?</p>
<p>Thanks for making one of the most fun little gadgets ever (I&#8217;m also waiting for my Max, this will be used with a pot to create mood light in a room&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-51044</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Wed, 01 Apr 2009 04:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-51044</guid>
		<description>Hi BlackFire,
Wow, that&#039;s a lot of BlinkMs!  You should contact us directly to help out for your project.

There are a variety of issues when dealing with large numbers of I2C devices.  One is, as you guessed, that standard I2C has a 7-bit address space so can only address up to 127 devices (really around 100 due to some reserved addresses)  The Arduino is a standard I2C master, so figure 100 BlinkMs per Arduino.  The Arduino really has no provision for multiple I2C buses. There are ways around this, like with I2C bus switching chips, but can get complex.  But with 100 BlinkMs/Arduino, you&#039;d be controlling 10 Arduinos, which can be done with a single PC pretty easily.

Another issue with large numbers of I2C devices is bus length (really, bus capacitance).  As either the length of the bus increases or the number of devices increase, each device has to work a bit harder to wiggle the I2C signal lines.  What you&#039;ll see is as you add devices or increase the length of the cable, things will start getting flaky. I&#039;ve only experimented with up to 24 BlinkMs on a 30 foot cable. (I can never keep enough in-house to try out a larger experiment) There are I2C bus driver chips to help out with this issue.  I&#039;ve been meaning to investigate these chips to once and for all solve the &quot;long BlinkM cable&quot; question.</description>
		<content:encoded><![CDATA[<p>Hi BlackFire,<br />
Wow, that&#8217;s a lot of BlinkMs!  You should contact us directly to help out for your project.</p>
<p>There are a variety of issues when dealing with large numbers of I2C devices.  One is, as you guessed, that standard I2C has a 7-bit address space so can only address up to 127 devices (really around 100 due to some reserved addresses)  The Arduino is a standard I2C master, so figure 100 BlinkMs per Arduino.  The Arduino really has no provision for multiple I2C buses. There are ways around this, like with I2C bus switching chips, but can get complex.  But with 100 BlinkMs/Arduino, you&#8217;d be controlling 10 Arduinos, which can be done with a single PC pretty easily.</p>
<p>Another issue with large numbers of I2C devices is bus length (really, bus capacitance).  As either the length of the bus increases or the number of devices increase, each device has to work a bit harder to wiggle the I2C signal lines.  What you&#8217;ll see is as you add devices or increase the length of the cable, things will start getting flaky. I&#8217;ve only experimented with up to 24 BlinkMs on a 30 foot cable. (I can never keep enough in-house to try out a larger experiment) There are I2C bus driver chips to help out with this issue.  I&#8217;ve been meaning to investigate these chips to once and for all solve the &#8220;long BlinkM cable&#8221; question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BlackFire</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-51038</link>
		<dc:creator>BlackFire</dc:creator>
		<pubDate>Tue, 31 Mar 2009 14:33:16 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-51038</guid>
		<description>I am putting together a large lighting project that will require almost 1000 BlinkM&#039;s. I Know the IC2 on one Arduino can handle 100-127 Blink M&#039;s (with seperate power source)
Is it capable of doing multiple IC2 data lines? or will I need to get multiple boards and another as a master board to run them? 

Or, would you reccoment a better way to run all of the individual BlinkM&#039;s? The color patterns are not too precise but I would like to at least have some control over them.</description>
		<content:encoded><![CDATA[<p>I am putting together a large lighting project that will require almost 1000 BlinkM&#8217;s. I Know the IC2 on one Arduino can handle 100-127 Blink M&#8217;s (with seperate power source)<br />
Is it capable of doing multiple IC2 data lines? or will I need to get multiple boards and another as a master board to run them? </p>
<p>Or, would you reccoment a better way to run all of the individual BlinkM&#8217;s? The color patterns are not too precise but I would like to at least have some control over them.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-3/#comment-50518</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Wed, 25 Feb 2009 23:07:24 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-50518</guid>
		<description>Tod;
Received my Blinkm yesterday, and was up until midnight turning my living room into a disco with it. This thing is very cool! Two questions: How much brighter is the MaxP? And secondly, I&#039;ve seen a couple of sites selling I2C bus extenders. Have you ever used one of these? It would be great to get 3 to 5 feet between each Blinkm, so, for example, I could place one in each corner of my cubicle, as my &quot;mood indicator&quot; (Then to an ultrasonic pinger so the blinks would grow read as the boss walked closer...)</description>
		<content:encoded><![CDATA[<p>Tod;<br />
Received my Blinkm yesterday, and was up until midnight turning my living room into a disco with it. This thing is very cool! Two questions: How much brighter is the MaxP? And secondly, I&#8217;ve seen a couple of sites selling I2C bus extenders. Have you ever used one of these? It would be great to get 3 to 5 feet between each Blinkm, so, for example, I could place one in each corner of my cubicle, as my &#8220;mood indicator&#8221; (Then to an ultrasonic pinger so the blinks would grow read as the boss walked closer&#8230;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wireless BlinkM control - Hack a Day</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-2/#comment-50298</link>
		<dc:creator>Wireless BlinkM control - Hack a Day</dc:creator>
		<pubDate>Sun, 11 Jan 2009 00:39:51 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-50298</guid>
		<description>[...] has been working with several BlinkM RGB devices. He&#8217;s created a controller to talk to each of the BlinkMs wirelessly and change [...]</description>
		<content:encoded><![CDATA[<p>[...] has been working with several BlinkM RGB devices. He&#8217;s created a controller to talk to each of the BlinkMs wirelessly and change [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JonXP</title>
		<link>http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/comment-page-2/#comment-50264</link>
		<dc:creator>JonXP</dc:creator>
		<pubDate>Wed, 24 Dec 2008 02:40:56 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/2008/01/25/blinkm-hello-video-guides-example-code/#comment-50264</guid>
		<description>Good to know.  Thanks.  Unfortunately, I am programmerless, but look forward to the future firmware revision.</description>
		<content:encoded><![CDATA[<p>Good to know.  Thanks.  Unfortunately, I am programmerless, but look forward to the future firmware revision.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

