<?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[Thermal unit MLX90640 with Core2]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">I have obtained a Core2 with a thermal unit (MLX90640). The example code for the thermal unit does not work on the Core2. Also, in UiFlow there is no option to add the thermal unit with the "+" icon. However if I start UiFlow and select the classic Core, it is possible to add the thermal unit.</p>
<p dir="auto">Is the themal unit not compatible with the Core2?</p>
]]></description><link>https://community.m5stack.com/topic/2776/thermal-unit-mlx90640-with-core2</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 14:04:08 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/2776.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 Jan 2021 13:06:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Thermal unit MLX90640 with Core2 on Sat, 19 Nov 2022 18:56:05 GMT]]></title><description><![CDATA[<p dir="auto">Bump. Me too! I can't find an M5 copy of MLX90640_API.cpp  and MLX90640_I2C_Driver.cpp. After commenting out calls to MLX90640_BadPixelsCorrection() I tried using Sparkfun's version, but the .ino file has calls to interpolate_image() and get_point() which the Sparkfun library does not have.</p>
<p dir="auto">I tried using Blockly but the data returned by the calls to unit.get(unit.THERMAL, unit.PORTA) objects return garbage data. Well, not quite garbage - it's data but it is not corrected and interleaved in a way I can figure out.</p>
<p dir="auto">Micropython might be a better bet but I don't know how to get the Unit libraries. I don't have a spare Arduino to test on either.</p>
]]></description><link>https://community.m5stack.com/post/19335</link><guid isPermaLink="true">https://community.m5stack.com/post/19335</guid><dc:creator><![CDATA[wsanders]]></dc:creator><pubDate>Sat, 19 Nov 2022 18:56:05 GMT</pubDate></item><item><title><![CDATA[Reply to Thermal unit MLX90640 with Core2 on Fri, 28 Oct 2022 23:25:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/8570">@broder</a> Do you still have a pointer to that code?  I was just looking at doing that, but if someone already did it, I would prefer to start from a working example]</p>
]]></description><link>https://community.m5stack.com/post/19147</link><guid isPermaLink="true">https://community.m5stack.com/post/19147</guid><dc:creator><![CDATA[rhyde]]></dc:creator><pubDate>Fri, 28 Oct 2022 23:25:44 GMT</pubDate></item><item><title><![CDATA[Reply to Thermal unit MLX90640 with Core2 on Mon, 02 Aug 2021 18:59:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/8570">@broder</a><br />
It would be great if you could share the code!</p>
]]></description><link>https://community.m5stack.com/post/14568</link><guid isPermaLink="true">https://community.m5stack.com/post/14568</guid><dc:creator><![CDATA[Hexyl]]></dc:creator><pubDate>Mon, 02 Aug 2021 18:59:23 GMT</pubDate></item><item><title><![CDATA[Reply to Thermal unit MLX90640 with Core2 on Wed, 14 Jul 2021 00:55:37 GMT]]></title><description><![CDATA[<p dir="auto">Bump. No one?</p>
]]></description><link>https://community.m5stack.com/post/14388</link><guid isPermaLink="true">https://community.m5stack.com/post/14388</guid><dc:creator><![CDATA[kareemtawab]]></dc:creator><pubDate>Wed, 14 Jul 2021 00:55:37 GMT</pubDate></item><item><title><![CDATA[Reply to Thermal unit MLX90640 with Core2 on Tue, 06 Jul 2021 23:08:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/8570">@broder</a> Hi</p>
<p dir="auto">I got the Core2 without knowing that it might not work with the sensor. So, I'm quite in need of a copy of that port too!</p>
]]></description><link>https://community.m5stack.com/post/14352</link><guid isPermaLink="true">https://community.m5stack.com/post/14352</guid><dc:creator><![CDATA[kareemtawab]]></dc:creator><pubDate>Tue, 06 Jul 2021 23:08:03 GMT</pubDate></item><item><title><![CDATA[Reply to Thermal unit MLX90640 with Core2 on Wed, 14 Apr 2021 22:21:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/8570">@broder</a> Hello !<br />
Yes, good stuff !!  i'm interested by your Core2 version of the Thermal_LMX90640.ino !!<br />
Can you give me a link where I can download it please?</p>
<p dir="auto">Thx !</p>
]]></description><link>https://community.m5stack.com/post/13526</link><guid isPermaLink="true">https://community.m5stack.com/post/13526</guid><dc:creator><![CDATA[LeoZeLion]]></dc:creator><pubDate>Wed, 14 Apr 2021 22:21:52 GMT</pubDate></item><item><title><![CDATA[Reply to Thermal unit MLX90640 with Core2 on Fri, 09 Apr 2021 15:51:15 GMT]]></title><description><![CDATA[<p dir="auto">I just finished to adopt the example at <a href="https://github.com/m5stack/M5Stack/blob/master/examples/Unit/THERMAL_MLX90640/THERMAL_MLX90640.ino" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/blob/master/examples/Unit/THERMAL_MLX90640/THERMAL_MLX90640.ino</a><br />
in Arduino IDE to Core2 and it works fine. If you are interested I can share the code.</p>
]]></description><link>https://community.m5stack.com/post/13466</link><guid isPermaLink="true">https://community.m5stack.com/post/13466</guid><dc:creator><![CDATA[Broder]]></dc:creator><pubDate>Fri, 09 Apr 2021 15:51:15 GMT</pubDate></item><item><title><![CDATA[Reply to Thermal unit MLX90640 with Core2 on Mon, 18 Jan 2021 18:44:15 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/6135">@Hexyl</a></p>
<p dir="auto">most modules, units and their associated examples have been developed before M5Core2 was available and therefore often do not just work out of the box. It is a pity that the M5Stack engineers do not (can not) spare more time to adapt / fix the existing examples from M5Stack to M5Core2.</p>
<p dir="auto">That said, the issue you are facing is that in M5Stack port A uses GPIO21 / GPIO22 (same as the internal I2C bus). In M5Core2 that has changed and only the internal I2C bus uses GPIO21 and GPIO22, however the external I2C bus on port A uses GPIO32 and GPIO33.</p>
<p dir="auto">In the <a href="https://github.com/m5stack/M5Stack/blob/master/examples/Unit/THERMAL_MLX90640/THERMAL_MLX90640.ino" target="_blank" rel="noopener noreferrer nofollow ugc">Thermal unit example</a> try replacing these lines:</p>
<pre><code>  M5.begin();
  M5.Power.begin();
  Wire.begin();
</code></pre>
<p dir="auto">with</p>
<pre><code>  M5.begin(true, false, true, true);
</code></pre>
<p dir="auto">the last <code>true</code> enables the external I2C bus on GPIO32 and GPIO33.</p>
<p dir="auto">Hope this helps.</p>
<p dir="auto">Re UIFlow: I have no idea as to if and when the thermal camera will be supported. That is another question for the M5Stack engineers.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/11854</link><guid isPermaLink="true">https://community.m5stack.com/post/11854</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Mon, 18 Jan 2021 18:44:15 GMT</pubDate></item></channel></rss>