<?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: I2CScanner.pde: Arduino as I2C bus scanner</title>
	<atom:link href="http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/feed/" rel="self" type="application/rss+xml" />
	<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/</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: Tim</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-78455</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Thu, 17 Nov 2011 18:45:22 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-78455</guid>
		<description>Thanks for this Tod. What a great tool!</description>
		<content:encoded><![CDATA[<p>Thanks for this Tod. What a great tool!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: feipoa</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-78312</link>
		<dc:creator>feipoa</dc:creator>
		<pubDate>Thu, 06 Oct 2011 20:03:57 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-78312</guid>
		<description>Any thought on including a i2c.receive() feature with your i2cMaster library?  It seems it can only send data.  It would also be nice to eventually include other Wire.h-like functions, such as i2c.available() and i2c.requestFrom().

I was considering using your library for my I2C real-time clock in order to free up 2 analogue pins, but alas there isn&#039;t an i2c.receive() feature.</description>
		<content:encoded><![CDATA[<p>Any thought on including a i2c.receive() feature with your i2cMaster library?  It seems it can only send data.  It would also be nice to eventually include other Wire.h-like functions, such as i2c.available() and i2c.requestFrom().</p>
<p>I was considering using your library for my I2C real-time clock in order to free up 2 analogue pins, but alas there isn&#8217;t an i2c.receive() feature.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trike</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-78176</link>
		<dc:creator>Trike</dc:creator>
		<pubDate>Fri, 16 Sep 2011 17:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-78176</guid>
		<description>Hey Dan or anyone else that has a suggestion,

I know you posted it a long time ago, But did you ever resolve your issue? I&#039;m having the exact same problem on my Arduino Mega 2560. I don&#039;t have any i2c device connected, I get the same result even if a device is connected. Once twi_write() executes, it crashes and resets. It never makes it past the first address it polls. It just continues to loop after the twi_write function starting at the beginning of the setup function and never makes it out to the loop function. 

I have tried other sketches and the same thing happens. With a different sample sketch, it crashes/resets after the wire.endtransmission() function. I can&#039;t get a return code from it.

Any help to point me in the right direction in troubleshooting this is greatly appreciated. I&#039;m not sure what else to check or overlooked.

Thanks!</description>
		<content:encoded><![CDATA[<p>Hey Dan or anyone else that has a suggestion,</p>
<p>I know you posted it a long time ago, But did you ever resolve your issue? I&#8217;m having the exact same problem on my Arduino Mega 2560. I don&#8217;t have any i2c device connected, I get the same result even if a device is connected. Once twi_write() executes, it crashes and resets. It never makes it past the first address it polls. It just continues to loop after the twi_write function starting at the beginning of the setup function and never makes it out to the loop function. </p>
<p>I have tried other sketches and the same thing happens. With a different sample sketch, it crashes/resets after the wire.endtransmission() function. I can&#8217;t get a return code from it.</p>
<p>Any help to point me in the right direction in troubleshooting this is greatly appreciated. I&#8217;m not sure what else to check or overlooked.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-78046</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Wed, 27 Jul 2011 04:24:25 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-78046</guid>
		<description>I&#039;ve seen some self-addressed I2C devices have an address of less than 8 and I chose an upper bound of 100 just so the print out looked even.  A hack, yes. :)</description>
		<content:encoded><![CDATA[<p>I&#8217;ve seen some self-addressed I2C devices have an address of less than 8 and I chose an upper bound of 100 just so the print out looked even.  A hack, yes. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luke</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-78045</link>
		<dc:creator>Luke</dc:creator>
		<pubDate>Wed, 27 Jul 2011 00:44:47 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-78045</guid>
		<description>Why do you scan from the addresses 1 to 100? The only valid device addresses for I2C are addresses 8 through 119. (0b0001000 to 0b1110111)

http://www.i2c-bus.org/addressing/</description>
		<content:encoded><![CDATA[<p>Why do you scan from the addresses 1 to 100? The only valid device addresses for I2C are addresses 8 through 119. (0b0001000 to 0b1110111)</p>
<p><a href="http://www.i2c-bus.org/addressing/" rel="nofollow">http://www.i2c-bus.org/addressing/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: I2C Bus Scanner &#124; Omar Francisco</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-78035</link>
		<dc:creator>I2C Bus Scanner &#124; Omar Francisco</dc:creator>
		<pubDate>Sat, 23 Jul 2011 15:53:52 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-78035</guid>
		<description>[...] cables and faulty devices can drive you to drink while debugging a problem.  I have been using a PDE created by Tod E. Kurt to perform bus scanning when troubleshooting connectivity to I2C [...]</description>
		<content:encoded><![CDATA[<p>[...] cables and faulty devices can drive you to drink while debugging a problem.  I have been using a PDE created by Tod E. Kurt to perform bus scanning when troubleshooting connectivity to I2C [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niko</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-76402</link>
		<dc:creator>Niko</dc:creator>
		<pubDate>Sun, 28 Nov 2010 15:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-76402</guid>
		<description>Same problem for me... need help for this. If i plug TWI wires off it will print all 1...100 buss adress.</description>
		<content:encoded><![CDATA[<p>Same problem for me&#8230; need help for this. If i plug TWI wires off it will print all 1&#8230;100 buss adress.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-75029</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Wed, 15 Sep 2010 13:09:01 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-75029</guid>
		<description>This sketch is not working for me at all....I am trying to get a knockoff nunchuck (intec) to work with my duemilanova...and am having trouble, so I want to &quot;ping&quot; the address to make sure it is the same as the nintendo nunchuck....

The sketch just hangs after

I2CScanner ready!

starting scanning of I2C bus from 1 to 100...


I plugged in some printlns and inside the following....the before prints, but the after does not.

&lt;code&gt;
  for( byte addr = from_addr; addr &lt;= to_addr; addr++ ) {
Serial.print(&quot;before&quot;);
    rc = twi_writeTo(addr, &amp;data, 0, 1);
Serial.println(&quot;after&quot;);
    callback( addr, rc );
  }
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>This sketch is not working for me at all&#8230;.I am trying to get a knockoff nunchuck (intec) to work with my duemilanova&#8230;and am having trouble, so I want to &#8220;ping&#8221; the address to make sure it is the same as the nintendo nunchuck&#8230;.</p>
<p>The sketch just hangs after</p>
<p>I2CScanner ready!</p>
<p>starting scanning of I2C bus from 1 to 100&#8230;</p>
<p>I plugged in some printlns and inside the following&#8230;.the before prints, but the after does not.</p>
<p><code><br />
  for( byte addr = from_addr; addr &lt;= to_addr; addr++ ) {<br />
Serial.print(&quot;before&quot;);<br />
    rc = twi_writeTo(addr, &amp;data, 0, 1);<br />
Serial.println(&quot;after&quot;);<br />
    callback( addr, rc );<br />
  }<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-72562</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Fri, 30 Jul 2010 00:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-72562</guid>
		<description>Thanks Rob.  What sensors are you using?  I&#039;m interested in all things I2C.</description>
		<content:encoded><![CDATA[<p>Thanks Rob.  What sensors are you using?  I&#8217;m interested in all things I2C.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Smith</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-72561</link>
		<dc:creator>Rob Smith</dc:creator>
		<pubDate>Thu, 29 Jul 2010 20:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-72561</guid>
		<description>Awesome little sketch, just what i needed to get my sensors going!!</description>
		<content:encoded><![CDATA[<p>Awesome little sketch, just what i needed to get my sensors going!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-71292</link>
		<dc:creator>David</dc:creator>
		<pubDate>Thu, 10 Jun 2010 11:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-71292</guid>
		<description>Hi,
I am trying to use your sketch to confirm the address of a modified Electronic speed control unit.  I can control these units ( I have 3 of them) but I would like to be able to confirm addresses of units which have an unknown address.  My problem is that I cannot get your sketch to detect the units.  Using the known, working units which have addresses of &amp;h52,54 &amp;56 respectively, the sketch runs and no known units are found.  I have tried with and without pull up resistors.  Any suggestions?  I&#039;m afraid my understanding of I2C and Arduino is limited so any pointers would be appreciated.
Thanks
David</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I am trying to use your sketch to confirm the address of a modified Electronic speed control unit.  I can control these units ( I have 3 of them) but I would like to be able to confirm addresses of units which have an unknown address.  My problem is that I cannot get your sketch to detect the units.  Using the known, working units which have addresses of &amp;h52,54 &amp;56 respectively, the sketch runs and no known units are found.  I have tried with and without pull up resistors.  Any suggestions?  I&#8217;m afraid my understanding of I2C and Arduino is limited so any pointers would be appreciated.<br />
Thanks<br />
David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: todbot</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-63713</link>
		<dc:creator>todbot</dc:creator>
		<pubDate>Sun, 14 Mar 2010 04:13:46 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-63713</guid>
		<description>Hi Stephan,
The normal value one sees for pull-up resistors on an I2C bus is 4.7k.  But if you&#039;re running many devices or a long bus cable, you should lower that to 2.2k or even 1.0k.</description>
		<content:encoded><![CDATA[<p>Hi Stephan,<br />
The normal value one sees for pull-up resistors on an I2C bus is 4.7k.  But if you&#8217;re running many devices or a long bus cable, you should lower that to 2.2k or even 1.0k.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-63515</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Sat, 13 Mar 2010 10:03:47 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-63515</guid>
		<description>Hi,

You noticed the two resistors on the SDA and SCL line, but what are the values?

Stephen</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>You noticed the two resistors on the SDA and SCL line, but what are the values?</p>
<p>Stephen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brokenlcd</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-58950</link>
		<dc:creator>brokenlcd</dc:creator>
		<pubDate>Wed, 10 Feb 2010 09:26:44 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-58950</guid>
		<description>I had to change the end address to 127 to have my DS1307 show up in the scanner. If your device isn&#039;t showing up, you might try increasing the end address accordingly.</description>
		<content:encoded><![CDATA[<p>I had to change the end address to 127 to have my DS1307 show up in the scanner. If your device isn&#8217;t showing up, you might try increasing the end address accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobi</title>
		<link>http://todbot.com/blog/2009/11/29/i2cscanner-pde-arduino-as-i2c-bus-scanner/comment-page-1/#comment-58882</link>
		<dc:creator>Tobi</dc:creator>
		<pubDate>Wed, 03 Feb 2010 22:11:44 +0000</pubDate>
		<guid isPermaLink="false">http://todbot.com/blog/?p=731#comment-58882</guid>
		<description>that&#039;s awesome! thanks for sharing this..</description>
		<content:encoded><![CDATA[<p>that&#8217;s awesome! thanks for sharing this..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

