<?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[Core2 v1.1 KmeterISO]]></title><description><![CDATA[<p dir="auto">I’m trying to test KmeterISO with core2 v1.1 and UIFlow 2.0</p>
<p dir="auto">I connected the KmeterISO to the red port, but if i try ti scan i2c addresses on port A (33, 32) it always shows zero addresses, so it fails to connect to address 0x66</p>
<p dir="auto">Any idea?</p>
<p dir="auto">Is KmeterISO compatible with Core2 v1.1?</p>
]]></description><link>https://community.m5stack.com/topic/6534/core2-v1-1-kmeteriso</link><generator>RSS for Node</generator><lastBuildDate>Sun, 03 May 2026 07:55:25 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/6534.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Jun 2024 15:06:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core2 v1.1 KmeterISO on Wed, 28 Aug 2024 20:59:30 GMT]]></title><description><![CDATA[<p dir="auto">I just wanted to give an update in the event someone comes across the same issue in the future:</p>
<p dir="auto">I was able to get the KMeterISO to work with the Core.2 unit and using the Arduino IDE by doing the following:</p>
<ul>
<li>
<p dir="auto">I needed to download the M5Unit-KMeterISO library from GITHUB - <a href="https://github.com/m5stack/M5Unit-KMeterISO" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Unit-KMeterISO</a></p>
</li>
<li>
<p dir="auto">I used the included "demo" example that was part of the library download but I had to make a few changes: I added a line "#include &lt;M5Core2.h&gt;" to the beginning. Added "M5.begin();" in void setup(), and finally changed the i2c pins from 21 &amp; 22 to 32 &amp; 33 in the kmeter.begin line - "while (!kmeter.begin(&amp;Wire, KMETER_DEFAULT_ADDR, 32, 33, 100000L)) {"</p>
</li>
</ul>
<p dir="auto">Here is the complete modified demo example code:</p>
<pre><code>#include "M5UnitKmeterISO.h"
#include &lt;M5Core2.h&gt;
#define INTERVAL_TIME 500

M5UnitKmeterISO kmeter;
uint8_t error_status = 0;
long delay_time      = 0;

long map(long x, long in_min, long in_max, long out_min, long out_max) {
    return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}

void setup() {
  M5.begin();
    Serial.begin(115200);
    while (!kmeter.begin(&amp;Wire, KMETER_DEFAULT_ADDR, 32, 33, 100000L)) {
        Serial.println("Unit KmeterISO not found");
    }

    delay_time = millis() + INTERVAL_TIME;
}

void loop() {
    if (millis() &gt; delay_time) {
        error_status = kmeter.getReadyStatus();
        if (error_status == 0) {
            Serial.printf("Celsius Temp: %.2fC\r\n",
                          ((float)(kmeter.getCelsiusTempValue())) / 100);
            Serial.printf("Fahrenheit Temp: %.2fF\r\n",
                          ((float)(kmeter.getFahrenheitTempValue())) / 100);
            Serial.printf(
                "Chip Celsius Temp: %.2fC\r\n",
                ((float)(kmeter.getInternalCelsiusTempValue())) / 100);
            Serial.printf(
                "Chip Fahrenheit Temp: %.2fF\r\n",
                ((float)(kmeter.getInternalFahrenheitTempValue())) / 100);
        } else {
            Serial.printf("Error: %d", kmeter.getReadyStatus());
        }

        delay_time = millis() + INTERVAL_TIME;
    }
}
</code></pre>
]]></description><link>https://community.m5stack.com/post/26264</link><guid isPermaLink="true">https://community.m5stack.com/post/26264</guid><dc:creator><![CDATA[czm88]]></dc:creator><pubDate>Wed, 28 Aug 2024 20:59:30 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 v1.1 KmeterISO on Wed, 28 Aug 2024 00:33:42 GMT]]></title><description><![CDATA[<p dir="auto">Hi guys</p>
<p dir="auto">KmeterISO unit is available in UIFlow2.1.2. Does it not work? (Note: I don't have that unit so I cannot test.)</p>
<p dir="auto">If you want to run an I2C scan (internal and on port A) check out my example in the UIFlow2 Project Zone: <em>M5Core2_I2CScan_Intern_PortA_UIFlow2.1.2</em></p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/26249</link><guid isPermaLink="true">https://community.m5stack.com/post/26249</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Wed, 28 Aug 2024 00:33:42 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 v1.1 KmeterISO on Tue, 27 Aug 2024 21:11:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/czm88" aria-label="Profile: czm88">@<bdi>czm88</bdi></a> The Core 2  I2C pins are SDA 32, SCL 33.<br />
Perhaps this is the problem?</p>
]]></description><link>https://community.m5stack.com/post/26246</link><guid isPermaLink="true">https://community.m5stack.com/post/26246</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Tue, 27 Aug 2024 21:11:39 GMT</pubDate></item><item><title><![CDATA[Reply to Core2 v1.1 KmeterISO on Tue, 27 Aug 2024 20:37:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bignerd95" aria-label="Profile: bignerd95">@<bdi>bignerd95</bdi></a> Did you ever get this working? I have the same problem, came here looking for help and found this post.</p>
]]></description><link>https://community.m5stack.com/post/26245</link><guid isPermaLink="true">https://community.m5stack.com/post/26245</guid><dc:creator><![CDATA[czm88]]></dc:creator><pubDate>Tue, 27 Aug 2024 20:37:42 GMT</pubDate></item></channel></rss>