<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[Fixed] Scanning the i2c ports on the camera.]]></title><description><![CDATA[<p dir="auto">First of, I am lost and utterly confused.<br />
I am trying to run the following code</p>
<p dir="auto">void setup()<br />
{<br />
Wire.begin();</p>
<p dir="auto">Serial.begin(9600);<br />
while (!Serial);             // Leonardo: wait for serial monitor<br />
Serial.println("\nI2C Scanner");<br />
}</p>
<p dir="auto">void loop()<br />
{<br />
byte error, address;<br />
int nDevices;</p>
<p dir="auto">Serial.println("Scanning...");</p>
<p dir="auto">nDevices = 0;<br />
for(address = 1; address &lt; 127; address++ )<br />
{<br />
// The i2c_scanner uses the return value of<br />
// the Write.endTransmisstion to see if<br />
// a device did acknowledge to the address.<br />
Wire.beginTransmission(address);<br />
error = Wire.endTransmission();</p>
<pre><code>if (error == 0)
{
  Serial.print("I2C device found at address 0x");
  if (address&lt;16) 
    Serial.print("0");
  Serial.print(address,HEX);
  Serial.println("  !");

  nDevices++;
}
else if (error==4) 
{
  Serial.print("Unknown error at address 0x");
  if (address&lt;16) 
    Serial.print("0");
  Serial.println(address,HEX);
}    
</code></pre>
<p dir="auto">}<br />
if (nDevices == 0)<br />
Serial.println("No I2C devices found\n");<br />
else<br />
Serial.println("done\n");</p>
<p dir="auto">delay(5000);           // wait 5 seconds for next scan<br />
}</p>
<p dir="auto">Serial monitor reports -</p>
<p dir="auto">Scanning...<br />
No I2C devices found</p>
<p dir="auto">I think this is because its not looking at the correct pins.</p>
<p dir="auto">How do I get this to work on the esp32?</p>
]]></description><link>https://community.m5stack.com/topic/338/fixed-scanning-the-i2c-ports-on-the-camera</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 11:55:24 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/338.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Sep 2018 15:48:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Fixed] Scanning the i2c ports on the camera. on Sat, 29 Sep 2018 16:15:03 GMT]]></title><description><![CDATA[<p dir="auto">Solved, please see this post.</p>
<p dir="auto"><a href="http://forum.m5stack.com/topic/343/i2c-scanner-working-on-cameras-grove-connector" target="_blank" rel="noopener noreferrer nofollow ugc">http://forum.m5stack.com/topic/343/i2c-scanner-working-on-cameras-grove-connector</a></p>
]]></description><link>https://community.m5stack.com/post/1634</link><guid isPermaLink="true">https://community.m5stack.com/post/1634</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 29 Sep 2018 16:15:03 GMT</pubDate></item><item><title><![CDATA[Reply to [Fixed] Scanning the i2c ports on the camera. on Sat, 29 Sep 2018 03:33:55 GMT]]></title><description><![CDATA[<p dir="auto">hello, the old camera version's IP5306 maybe connect to I2C, maybe confused.  so if u need to use I2C, you should cut the sda/scl pin <img src="/assets/uploads/files/1538192032682-f49fff66-59d8-413e-9629-60ed4cd885a6-image.png" alt="0_1538192027124_f49fff66-59d8-413e-9629-60ed4cd885a6-image.png" class=" img-fluid img-markdown" /> of IP5306.</p>
]]></description><link>https://community.m5stack.com/post/1626</link><guid isPermaLink="true">https://community.m5stack.com/post/1626</guid><dc:creator><![CDATA[Jimmy]]></dc:creator><pubDate>Sat, 29 Sep 2018 03:33:55 GMT</pubDate></item><item><title><![CDATA[Reply to [Fixed] Scanning the i2c ports on the camera. on Fri, 28 Sep 2018 14:45:22 GMT]]></title><description><![CDATA[<p dir="auto">OK, found an error on the prams card.<br />
SDA and Vsinc are both assigned to G22<br />
Soic and SCL assigned to G23</p>
<p dir="auto">How do I access the MPU6050 and BME280?</p>
]]></description><link>https://community.m5stack.com/post/1622</link><guid isPermaLink="true">https://community.m5stack.com/post/1622</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Fri, 28 Sep 2018 14:45:22 GMT</pubDate></item><item><title><![CDATA[Reply to [Fixed] Scanning the i2c ports on the camera. on Thu, 27 Sep 2018 17:48:07 GMT]]></title><description><![CDATA[<p dir="auto">Switched to debug mode and now get</p>
<blockquote>
<p dir="auto">[V][esp32-hal-i2c.c:693] i2c_isr_handler_default(): AcK Err errorByteCnt=1, errorQueue=0 queuepos=0</p>
</blockquote>
<p dir="auto">No information from google except that its to do with the Ack bit</p>
]]></description><link>https://community.m5stack.com/post/1612</link><guid isPermaLink="true">https://community.m5stack.com/post/1612</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 27 Sep 2018 17:48:07 GMT</pubDate></item></channel></rss>