Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. delaere
    D
    • Continue chat with delaere
    • Start new chat with delaere
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    delaere

    @delaere

    1
    Reputation
    4
    Posts
    90
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    delaere Follow

    Posts made by delaere

    • RE: unable to connect to CO2L unit

      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).

      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.

      The first call to scd4x.stopPeriodicMeasurement() returns an error saying: Error writing to I2C bus. Then it hangs apparently on the subsequent scd4x.startPeriodicMeasurement() call, for what I can say.

      posted in Units
      D
      delaere
    • RE: unable to connect to CO2L unit

      Thanks for checking!
      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 @mtylerjr) I got the serial number (and nothing else) but that it was not reproducible: I got the error immediately after that first attempt.

      I can try to look with arduino UI, but I have no experience there, so it is likely to take some time.

      In the meanwhile, I repeated the test with an ATOM Lite for the same result.

      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.

      posted in Units
      D
      delaere
    • RE: unable to connect to CO2L unit

      I think so: I installed the v1.12.3

      posted in Units
      D
      delaere
    • unable to connect to CO2L unit

      Hi,

      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.

      My current setup is thus made of a CORE2 connected to a CO2L unit, and I am using uiflow.

      0_1692889775167_Screenshot_20230824_170417.png

      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:

      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)
      

      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)?
      Is there any way to debug?

      Thanks!

      posted in Units
      D
      delaere