<?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[[Solved]Can‘t find IP5306 I2C address]]></title><description><![CDATA[<p dir="auto">I want to get the battery charge status, but can't find IP5306 I2C address, only find the MPU9250 I2C address (0x68)<br />
<img src="/assets/uploads/files/1555144391227-wechat-image_20190413171547-resized.jpg" alt="0_1555144376330_WeChat Image_20190413171547.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/topic/878/solved-can-t-find-ip5306-i2c-address</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Mar 2026 02:53:33 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/878.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Apr 2019 08:33:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Tue, 16 Apr 2019 01:47:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1321">@BlueWhite</a></p>
<p dir="auto">Really sorry about that !!</p>
<p dir="auto">After downloading this iic example for detecting iic address, if the screen shows 0x75, it means the IP5306 chip is IIC version. Otherwise, the IP5306 on your core is not IIC version.</p>
]]></description><link>https://community.m5stack.com/post/3772</link><guid isPermaLink="true">https://community.m5stack.com/post/3772</guid><dc:creator><![CDATA[m5-docs]]></dc:creator><pubDate>Tue, 16 Apr 2019 01:47:26 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Mon, 15 Apr 2019 18:46:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1321">@bluewhite</a></p>
<p dir="auto">If the I2C scanner does not show 75 and the program returns -1, then I can only assume you have the older version of the IP5306 chip. ☹️</p>
<p dir="auto">I have the M5Stack fire and grey. I only tested the fire (which works with the program above) because my grey is a 2017 model. So I knew it didn’t have the newer chip.</p>
]]></description><link>https://community.m5stack.com/post/3769</link><guid isPermaLink="true">https://community.m5stack.com/post/3769</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Mon, 15 Apr 2019 18:46:50 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Mon, 15 Apr 2019 05:08:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/187">@world101</a> The code is  no work. Return -1</p>
]]></description><link>https://community.m5stack.com/post/3760</link><guid isPermaLink="true">https://community.m5stack.com/post/3760</guid><dc:creator><![CDATA[BlueWhite]]></dc:creator><pubDate>Mon, 15 Apr 2019 05:08:22 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Mon, 15 Apr 2019 05:06:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/187">@world101</a>  My m5stack grey is 2018.3, but i don't know if with the IP5306_I2C chip.</p>
]]></description><link>https://community.m5stack.com/post/3759</link><guid isPermaLink="true">https://community.m5stack.com/post/3759</guid><dc:creator><![CDATA[BlueWhite]]></dc:creator><pubDate>Mon, 15 Apr 2019 05:06:06 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Sun, 14 Apr 2019 12:42:28 GMT]]></title><description><![CDATA[<p dir="auto">It will depend if your m5stack grey is the newer version with the IP5306_I2C chip. See this thread:<br />
<a href="https://github.com/m5stack/M5Stack/issues/74" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/issues/74</a></p>
<p dir="auto">Your picture shows the same hardware version as the one in the above thread, so I assume you have the newer version. However, run this code in the Arduino IDE to see if it works.</p>
<pre><code>#include &lt;M5Stack.h&gt;

int8_t getBatteryLevel()
{
  Wire.beginTransmission(0x75);
  Wire.write(0x78);
  if (Wire.endTransmission(false) == 0
   &amp;&amp; Wire.requestFrom(0x75, 1)) {
    switch (Wire.read() &amp; 0xF0) {
    case 0xE0: return 25;
    case 0xC0: return 50;
    case 0x80: return 75;
    case 0x00: return 100;
    default: return 0;
    }
  }
  return -1;
}

void setup() {
    M5.begin();
    Wire.begin();
  }

void loop() {
  delay(1000);
  M5.Lcd.clear();
  M5.Lcd.setTextColor(GREEN);
  M5.Lcd.setCursor(0, 20);
  M5.Lcd.setTextSize(2);
  M5.Lcd.print("Battery Level: ");
  M5.Lcd.print(getBatteryLevel());
  M5.Lcd.print("%");
}
</code></pre>
<p dir="auto">I am working on a battery gauge indicator for uiFlow that I will do the same as above, but using MicroPython instead of Arduino C. I hope to release it soon.</p>
]]></description><link>https://community.m5stack.com/post/3739</link><guid isPermaLink="true">https://community.m5stack.com/post/3739</guid><dc:creator><![CDATA[world101]]></dc:creator><pubDate>Sun, 14 Apr 2019 12:42:28 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Sun, 14 Apr 2019 10:09:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1321">@bluewhite</a> said in <a href="/post/3731">Can‘t find IP5306 I2C address</a>:</p>
<blockquote>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/724">@salty_good</a> Yes. I use Arduino IDE. <img src="/assets/uploads/files/1555235832050-wechat-image_20190414185624.jpg" alt="0_1555235830046_WeChat Image_20190414185624.jpg" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">You are on the internal I2C bus, 68 is showing that the code works.<br />
<a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/724">@salty_good</a> the code needs to be altered to define and use wire2. At the Moment I can't remember how I did it because I've lost my sourcecode for the grove port.</p>
]]></description><link>https://community.m5stack.com/post/3732</link><guid isPermaLink="true">https://community.m5stack.com/post/3732</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 14 Apr 2019 10:09:56 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Sun, 14 Apr 2019 09:57:18 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/724">@salty_good</a> Yes. I use Arduino IDE. <img src="/assets/uploads/files/1555235832050-wechat-image_20190414185624.jpg" alt="0_1555235830046_WeChat Image_20190414185624.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/3731</link><guid isPermaLink="true">https://community.m5stack.com/post/3731</guid><dc:creator><![CDATA[BlueWhite]]></dc:creator><pubDate>Sun, 14 Apr 2019 09:57:18 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Sun, 14 Apr 2019 09:52:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> I using the one that cannot be found</p>
]]></description><link>https://community.m5stack.com/post/3730</link><guid isPermaLink="true">https://community.m5stack.com/post/3730</guid><dc:creator><![CDATA[BlueWhite]]></dc:creator><pubDate>Sun, 14 Apr 2019 09:52:02 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Sat, 13 Apr 2019 16:21:09 GMT]]></title><description><![CDATA[<p dir="auto">The UIFlow scanner shows it as Decimal 117 which is the address 0x75.</p>
]]></description><link>https://community.m5stack.com/post/3721</link><guid isPermaLink="true">https://community.m5stack.com/post/3721</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 13 Apr 2019 16:21:09 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Sat, 13 Apr 2019 16:06:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1321">@bluewhite</a> Hi, I am Shio.</p>
<p dir="auto">Did you use Arduino IDE?<br />
If you yes, Please try Sketch sample -&gt; M5Stack -&gt; Advanced -&gt; I2C_Tester<br />
The I2C address of IP5306 is <strong>0x75</strong></p>
<p dir="auto">Thank you.</p>
]]></description><link>https://community.m5stack.com/post/3719</link><guid isPermaLink="true">https://community.m5stack.com/post/3719</guid><dc:creator><![CDATA[salty_good]]></dc:creator><pubDate>Sat, 13 Apr 2019 16:06:06 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Sat, 13 Apr 2019 09:51:29 GMT]]></title><description><![CDATA[<p dir="auto">which device are you using?</p>
]]></description><link>https://community.m5stack.com/post/3715</link><guid isPermaLink="true">https://community.m5stack.com/post/3715</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 13 Apr 2019 09:51:29 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Sat, 13 Apr 2019 09:42:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/443">@ajb2k3</a> But I can find IP5306 on another board by same program.</p>
]]></description><link>https://community.m5stack.com/post/3714</link><guid isPermaLink="true">https://community.m5stack.com/post/3714</guid><dc:creator><![CDATA[BlueWhite]]></dc:creator><pubDate>Sat, 13 Apr 2019 09:42:01 GMT</pubDate></item><item><title><![CDATA[Reply to [Solved]Can‘t find IP5306 I2C address on Sat, 13 Apr 2019 09:18:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/1321">@bluewhite</a> said in <a href="/post/3712">Can‘t find IP5306 I2C address</a>:</p>
<blockquote>
<p dir="auto">I want to get the battery charge status, but can't find IP5306 I2C address, only find the MPU9250 I2C address (0x68)<br />
<img src="/assets/uploads/files/1555144391227-wechat-image_20190413171547-resized.jpg" alt="0_1555144376330_WeChat Image_20190413171547.jpg" class=" img-fluid img-markdown" /></p>
</blockquote>
<p dir="auto">According to the documents, the IP5306 is on the Grove Port (I2C 2).<br />
The M5Stacks and sticks run on an esp32 which has 2 I2C ports.</p>
]]></description><link>https://community.m5stack.com/post/3713</link><guid isPermaLink="true">https://community.m5stack.com/post/3713</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 13 Apr 2019 09:18:44 GMT</pubDate></item></channel></rss>