<?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[unable to connect to CO2L unit]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I am new to M5Stack and started to play with small things to learn. After playing with basic UI controls (which works great), I wanted to use some external sensor and connected my CO2L unit to port A.</p>
<p dir="auto">My current setup is thus made of a CORE2 connected to a CO2L unit, and I am using uiflow.</p>
<p dir="auto"><img src="/assets/uploads/files/1692889849709-screenshot_20230824_170417.png" alt="0_1692889775167_Screenshot_20230824_170417.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I reduced the test progam to the bare minimum: I declared the CO2L unit and left everything else empty. This results in the following micropython code:</p>
<pre><code>from m5stack import *
from m5stack_ui import *
from uiflow import *
import unit


screen = M5Screen()
screen.clean_screen()
screen.set_screen_bg_color(0xFFFFFF)
co2l_1 = unit.get(unit.CO2_SCD41, unit.PORTA)
</code></pre>
<p dir="auto">So, I am stuck with a "CO2 unit maybe not connect" error message as if nothing was connected.  Am I doing something wrong, or is the sensor faulty (I just received it)?<br />
Is there any way to debug?</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://community.m5stack.com/topic/5606/unable-to-connect-to-co2l-unit</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:47:31 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5606.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 24 Aug 2023 15:15:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to unable to connect to CO2L unit on Thu, 14 Dec 2023 16:31:35 GMT]]></title><description><![CDATA[<p dir="auto">To close this topic: I have no problem with a newly ordered sensor. I was apparently unlucky enough that my first sensor was faulty.</p>
]]></description><link>https://community.m5stack.com/post/23044</link><guid isPermaLink="true">https://community.m5stack.com/post/23044</guid><dc:creator><![CDATA[delaere]]></dc:creator><pubDate>Thu, 14 Dec 2023 16:31:35 GMT</pubDate></item><item><title><![CDATA[Reply to unable to connect to CO2L unit on Fri, 25 Aug 2023 13:13:22 GMT]]></title><description><![CDATA[<p dir="auto">I managed to get the Arduino UI running with the CORE2 (using the M5Unified 0.1.9 and the Sensirion I2C SCD4X 0.4.4 libraries).</p>
<p dir="auto">I took the example ino file and modified the header to use M5Unified.h instead of M5stack.h... and the problem seems to be there as well.</p>
<p dir="auto">The first call to <code>scd4x.stopPeriodicMeasurement()</code> returns an error saying: <code>Error writing to I2C bus</code>. Then it hangs apparently on the subsequent <code>scd4x.startPeriodicMeasurement()</code> call, for what I can say.</p>
]]></description><link>https://community.m5stack.com/post/22068</link><guid isPermaLink="true">https://community.m5stack.com/post/22068</guid><dc:creator><![CDATA[delaere]]></dc:creator><pubDate>Fri, 25 Aug 2023 13:13:22 GMT</pubDate></item><item><title><![CDATA[Reply to unable to connect to CO2L unit on Fri, 25 Aug 2023 09:13:24 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for checking!<br />
I will be happy to make any additional test with my unit. It may be worth noting that on my first attempt (reproducing the example with default fonts just as <a class="plugin-mentions-user plugin-mentions-a" href="/user/mtylerjr" aria-label="Profile: mtylerjr">@<bdi>mtylerjr</bdi></a>) I got the serial number (and nothing else) but that it was not reproducible: I got the error immediately after that first attempt.</p>
<p dir="auto">I can try to look with arduino UI, but I have no experience there, so it is likely to take some time.</p>
<p dir="auto">In the meanwhile, I repeated the test with an ATOM Lite for the same result.</p>
<p dir="auto">P.S.: I tried accessing the UNIT with bare I2C without success, but I have no working example to confirm that I am using the I2C blocks properly.</p>
]]></description><link>https://community.m5stack.com/post/22064</link><guid isPermaLink="true">https://community.m5stack.com/post/22064</guid><dc:creator><![CDATA[delaere]]></dc:creator><pubDate>Fri, 25 Aug 2023 09:13:24 GMT</pubDate></item><item><title><![CDATA[Reply to unable to connect to CO2L unit on Fri, 25 Aug 2023 09:00:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mtylerjr" aria-label="Profile: mtylerjr">@<bdi>mtylerjr</bdi></a> Just tested the M5 demo example with my CO2 unit.. I don't have the L version, actually was not aware of its existence.<br />
After a first run the sketch reported errors, the demo program uses Ubuntu font that does not exist on Core 2 UIFlow 1.12.3... I replaced all the labels fonts by default and yes the sensor works on Core 2<img src="/assets/uploads/files/1692954031261-co2sensor-resized.jpg" alt="0_1692954046604_CO2sensor.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/22063</link><guid isPermaLink="true">https://community.m5stack.com/post/22063</guid><dc:creator><![CDATA[csierra67]]></dc:creator><pubDate>Fri, 25 Aug 2023 09:00:41 GMT</pubDate></item><item><title><![CDATA[Reply to unable to connect to CO2L unit on Fri, 25 Aug 2023 04:14:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mtylerjr" aria-label="Profile: mtylerjr">@<bdi>mtylerjr</bdi></a> It likely works in Arduino IDE.</p>
]]></description><link>https://community.m5stack.com/post/22057</link><guid isPermaLink="true">https://community.m5stack.com/post/22057</guid><dc:creator><![CDATA[teastain]]></dc:creator><pubDate>Fri, 25 Aug 2023 04:14:28 GMT</pubDate></item><item><title><![CDATA[Reply to unable to connect to CO2L unit on Fri, 25 Aug 2023 00:13:38 GMT]]></title><description><![CDATA[<p dir="auto">I am placing another order tomorrow, and this is one of the units I was intending to add.</p>
<p dir="auto">Does the slightly less pro version of this (the non-L version) have the same issue? Anyone know?</p>
<p dir="auto">(and I realize the issue is almost certainly in the interface/UIFlow/libraries and not the unit itself)</p>
]]></description><link>https://community.m5stack.com/post/22056</link><guid isPermaLink="true">https://community.m5stack.com/post/22056</guid><dc:creator><![CDATA[mtylerjr]]></dc:creator><pubDate>Fri, 25 Aug 2023 00:13:38 GMT</pubDate></item><item><title><![CDATA[Reply to unable to connect to CO2L unit on Thu, 24 Aug 2023 17:49:43 GMT]]></title><description><![CDATA[<p dir="auto">I just checked and yes I agree that there is an issue with UIFlow.</p>
]]></description><link>https://community.m5stack.com/post/22053</link><guid isPermaLink="true">https://community.m5stack.com/post/22053</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 24 Aug 2023 17:49:43 GMT</pubDate></item><item><title><![CDATA[Reply to unable to connect to CO2L unit on Thu, 24 Aug 2023 16:05:19 GMT]]></title><description><![CDATA[<p dir="auto">I think so: I installed the v1.12.3</p>
]]></description><link>https://community.m5stack.com/post/22052</link><guid isPermaLink="true">https://community.m5stack.com/post/22052</guid><dc:creator><![CDATA[delaere]]></dc:creator><pubDate>Thu, 24 Aug 2023 16:05:19 GMT</pubDate></item><item><title><![CDATA[Reply to unable to connect to CO2L unit on Thu, 24 Aug 2023 16:03:10 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/m5stack" aria-label="Profile: m5stack">@<bdi>m5stack</bdi></a> I'm getting error 19 with latest UIFLow (1) firmware.</p>
]]></description><link>https://community.m5stack.com/post/22051</link><guid isPermaLink="true">https://community.m5stack.com/post/22051</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 24 Aug 2023 16:03:10 GMT</pubDate></item><item><title><![CDATA[Reply to unable to connect to CO2L unit on Thu, 24 Aug 2023 15:58:33 GMT]]></title><description><![CDATA[<p dir="auto">Have you updated to the Latest firmware for the Core2?</p>
]]></description><link>https://community.m5stack.com/post/22050</link><guid isPermaLink="true">https://community.m5stack.com/post/22050</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Thu, 24 Aug 2023 15:58:33 GMT</pubDate></item></channel></rss>