<?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[Core S3 with ENV3 sensor bug?]]></title><description><![CDATA[<p dir="auto">Hi everyone,</p>
<p dir="auto">I'm quite new to the m5stack community and I today received my Core S3 and some sensors.<br />
I've been playing around with a m5atom matrix since a couple of weeks and wanted to step up the game.</p>
<p dir="auto">For testing, I just wanted to output data from the ENV3 sensor to the display, but it did not work... it took me quite a while to realize, that the core was power cycling  when the app is running and the sensor is connected.<br />
I stripped down my program just leaving the initializing part of the sensor in it, and had the same issue...<br />
I also tried port B and C, swapped around the pins on the I2C init, tried it with the ENV1 and ENV2 unit in uiflow... all of this gave me an error message, but no power cycling. When I switched back to the way it's meant to be, it starts power cycling again.</p>
<p dir="auto">I've tested the sensor with my m5atom, it worked fine. I've also tested the port A on the Core S3 by setting some Pins high/low, this also works.</p>
<p dir="auto">Is anyone experiencing the same problems with this configuration?</p>
<p dir="auto">Cheers,<br />
Stefan</p>
]]></description><link>https://community.m5stack.com/topic/5485/core-s3-with-env3-sensor-bug</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Mar 2026 00:19:09 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/5485.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 13 Jul 2023 18:05:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Core S3 with ENV3 sensor bug? on Fri, 17 Nov 2023 13:08:42 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/47256">@stefan-h</a></p>
<p dir="auto">I've tried the similar code as above with an M5CoreS3 and ENV III unit as well and it worked fine for me.</p>
<p dir="auto">I suggest you try the latest available UIFlow2 firmware version which is UIFlow2.0.0. alpah-28 at the time of this post.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/22798</link><guid isPermaLink="true">https://community.m5stack.com/post/22798</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 17 Nov 2023 13:08:42 GMT</pubDate></item><item><title><![CDATA[Reply to Core S3 with ENV3 sensor bug? on Fri, 17 Nov 2023 12:57:37 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/57755">@dwarren</a></p>
<p dir="auto">With UIFlow2.0.0. alpha-28 using an M5AtomS3 I can use the ENV III unit just fine. Code below:</p>
<pre><code>import os, sys, io
import M5
from M5 import *
from hardware import *
from unit import *

label0 = None
label1 = None
label2 = None
i2c0 = None
env3_0 = None

def setup():
  global label0, label1, label2, i2c0, env3_0

  M5.begin()
  label0 = Widgets.Label("label0", 4, 8, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu18)
  label1 = Widgets.Label("label1", 3, 32, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu18)
  label2 = Widgets.Label("label2", 3, 54, 1.0, 0xffffff, 0x222222, Widgets.FONTS.DejaVu18)

  i2c0 = I2C(0, scl=Pin(1), sda=Pin(2), freq=100000)
  env3_0 = ENVUnit(i2c=i2c0, type=3)

def loop():
  global label0, label1, label2, i2c0, env3_0
  M5.update()
  label0.setText(str(env3_0.read_temperature()))
  label1.setText(str(env3_0.read_pressure()))
  label2.setText(str(env3_0.read_humidity()))

if __name__ == '__main__':
  try:
    setup()
    while True:
      loop()
  except (Exception, KeyboardInterrupt) as e:
    try:
      from utility import print_error_msg
      print_error_msg(e)
    except ImportError:
      print("please update to latest firmware")
</code></pre>
<p dir="auto">Note: I do not have an M5AtomS3 lite, so I don't know if there might still be an issue there.</p>
<p dir="auto">Thanks<br />
Felix</p>
]]></description><link>https://community.m5stack.com/post/22797</link><guid isPermaLink="true">https://community.m5stack.com/post/22797</guid><dc:creator><![CDATA[felmue]]></dc:creator><pubDate>Fri, 17 Nov 2023 12:57:37 GMT</pubDate></item><item><title><![CDATA[Reply to Core S3 with ENV3 sensor bug? on Wed, 04 Oct 2023 20:50:54 GMT]]></title><description><![CDATA[<p dir="auto">I'm having the same issue. Everything works fine, but once the env iii is initialized it fails and soft resets. I'm new to UIFlow and Micropython, so it's hard for me to debug this.</p>
<p dir="auto"><img src="https://i.imgur.com/qBOXsIQ.png" alt="alt text" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/22418</link><guid isPermaLink="true">https://community.m5stack.com/post/22418</guid><dc:creator><![CDATA[dwarren]]></dc:creator><pubDate>Wed, 04 Oct 2023 20:50:54 GMT</pubDate></item><item><title><![CDATA[Reply to Core S3 with ENV3 sensor bug? on Wed, 13 Sep 2023 04:51:36 GMT]]></title><description><![CDATA[<p dir="auto">Nope still hanging</p>
]]></description><link>https://community.m5stack.com/post/22220</link><guid isPermaLink="true">https://community.m5stack.com/post/22220</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Wed, 13 Sep 2023 04:51:36 GMT</pubDate></item><item><title><![CDATA[Reply to Core S3 with ENV3 sensor bug? on Tue, 12 Sep 2023 19:09:58 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>: His issue is that it hangs on the init so it never gets to the loop section, I have exactly the same issue.</p>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://community.m5stack.com/uid/47256">@stefan-h</a>: Did you manage to resolve this issue or is it still broken for you?  I'm keen to solve my issue too!</p>
]]></description><link>https://community.m5stack.com/post/22217</link><guid isPermaLink="true">https://community.m5stack.com/post/22217</guid><dc:creator><![CDATA[cdouglas845]]></dc:creator><pubDate>Tue, 12 Sep 2023 19:09:58 GMT</pubDate></item><item><title><![CDATA[Reply to Core S3 with ENV3 sensor bug? on Sun, 30 Jul 2023 06:48:51 GMT]]></title><description><![CDATA[<p dir="auto">I see you issue, you have everything in setup when it should be in loop.<br />
You code should be like this:<br />
<img src="/assets/uploads/files/1690699724122-screenshot-2023-07-30-at-07.48.13-resized.png" alt="0_1690699728031_Screenshot 2023-07-30 at 07.48.13.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/21732</link><guid isPermaLink="true">https://community.m5stack.com/post/21732</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sun, 30 Jul 2023 06:48:51 GMT</pubDate></item><item><title><![CDATA[Reply to Core S3 with ENV3 sensor bug? on Sat, 29 Jul 2023 12:43:31 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> thanks for the replay.</p>
<p dir="auto">I'm defintely having problems initializing the env3 unit in uiflow, just trying to debug with some feedbacks:</p>
<p dir="auto"><img src="/assets/uploads/files/1690634174867-bildschirmfoto-2023-07-29-um-14.34.54.png" alt="0_1690634186333_Bildschirmfoto 2023-07-29 um 14.34.54.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">after showing "env" (for 3-4 secs) it reboots and starts over. As I said, the env3 module works fine with my m5atom. Is there any way to debug my S3? Or can someone help with a .ino code or something which just initializes the unit and outputs something to debug on the serial? As I said, I'm new to all this, don't think i can manage that myself.<br />
Maybe I just messed up my librarys somehow?</p>
<p dir="auto">Here ist the python code, uiflow generates:</p>
<p dir="auto">import os, sys, io<br />
import M5<br />
from M5 import *<br />
import time<br />
from hardware import *<br />
from unit import *</p>
<p dir="auto">label0 = None<br />
i2c0 = None<br />
env3_0 = None</p>
<p dir="auto">def setup():<br />
global label0, i2c0, env3_0, random</p>
<p dir="auto">M5.begin()<br />
Widgets.fillScreen(0x222222)<br />
label0 = Widgets.Label("Text", 58, 32, 1.0, 0xffffff, 0xff0000, Widgets.FONTS.DejaVu18)</p>
<p dir="auto">time.sleep(1)<br />
label0.setText(str('Hello'))<br />
time.sleep(1)<br />
label0.setText(str('i2c'))<br />
i2c0 = I2C(0, scl=Pin(1), sda=Pin(2), freq=100000)<br />
time.sleep(1)<br />
label0.setText(str('env'))<br />
env3_0 = ENV(i2c=i2c0, type=3)<br />
label0.setText(str('DONE!'))</p>
<p dir="auto">def loop():<br />
global label0, i2c0, env3_0, random<br />
M5.update()<br />
label0.setText(str(env3_0.read_temperature()))<br />
time.sleep_ms(500)</p>
<p dir="auto">if <strong>name</strong> == '<strong>main</strong>':<br />
try:<br />
setup()<br />
while True:<br />
loop()<br />
except (Exception, KeyboardInterrupt) as e:<br />
try:<br />
from utility import print_error_msg<br />
print_error_msg(e)<br />
except ImportError:<br />
print("please update to latest firmware")</p>
<p dir="auto">Thank,<br />
Stefan</p>
]]></description><link>https://community.m5stack.com/post/21729</link><guid isPermaLink="true">https://community.m5stack.com/post/21729</guid><dc:creator><![CDATA[stefan-h]]></dc:creator><pubDate>Sat, 29 Jul 2023 12:43:31 GMT</pubDate></item><item><title><![CDATA[Reply to Core S3 with ENV3 sensor bug? on Sat, 22 Jul 2023 06:29:52 GMT]]></title><description><![CDATA[<p dir="auto">Ports B and C wont work as the ENVIII is an I2C device and Port B is for Analog (1 output and 1 input pin) and Port C is for UART communication.<br />
Its strange because the ENVIII was working fine with my CoreS3</p>
]]></description><link>https://community.m5stack.com/post/21648</link><guid isPermaLink="true">https://community.m5stack.com/post/21648</guid><dc:creator><![CDATA[ajb2k3]]></dc:creator><pubDate>Sat, 22 Jul 2023 06:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to Core S3 with ENV3 sensor bug? on Fri, 21 Jul 2023 20:23:24 GMT]]></title><description><![CDATA[<p dir="auto">sorry for pushing, but still no answer?<br />
no one using the Core S3 with ENV3 sensor in UIflow2?<br />
I just tested the latest version, Alpha-21... same issue. My code is just initializing the Unit and printing Temp data, thats all i want at this moment...<br />
CoreS3 keeps power cycling until I disconnect the sensor...</p>
]]></description><link>https://community.m5stack.com/post/21640</link><guid isPermaLink="true">https://community.m5stack.com/post/21640</guid><dc:creator><![CDATA[stefan-h]]></dc:creator><pubDate>Fri, 21 Jul 2023 20:23:24 GMT</pubDate></item></channel></rss>