🤖Have you ever tried Chat.M5Stack.com before asking??😎
Group Details Private

Global Moderators

Forum wide moderators

  • RE: M5 Dial and wired ethernet is possible?

    Hello @MitchBuckanon

    like @robski mentioned, M5Dial has two ports: A and B which gives you 4 GPIOs you can use. In my test I configured the GPIOs like below:

    #define ETH_PHY_CS    1
    #define ETH_PHY_IRQ  -1
    #define ETH_PHY_RST  -1
    #define ETH_SPI_SCK  13
    #define ETH_SPI_MISO 15
    #define ETH_SPI_MOSI  2
    

    Below is how I wired M5Dial to the LAN module (using a Bus Module) and some Grove/Dupont cables.
    M5Dial_to_LAN_via_Bus_Module_20260302.png

    Hope this helps.

    Thanks
    Felix

    posted in Units
  • RE: Seeking for a specific unit, .. any ideas

    Hello @HappyUser

    ESP32P4 has 5 (five) UARTs. See here.

    AFAIK all other ESP32 variants only have 3 (three) or less UARTs. (Of which the first one is used for debugging.)

    Edit: ESP32S3 devices which have USB-C connected directly to the MCU (e.g. no dedicated USB-Serial chip) can use USB-C to debug (e.g. Serial) and still has 3 (three) UARTs free (e.g. Serial0, Serial1, Serial2).

    Please find an example here.

    BTW: are you aware of the fact that SIM76XXX is different from what is in IoT Base CatM (SIM7080G) and Atom DTU NBIoT2 (SIM7028)?

    • SIM76XXX uses LTE (which is different from NBIoT or LTE-M)
    • SIM7080G uses NBIoT or LTE-M
    • SIM7028 uses NBIoT only

    Thanks
    Felix

    posted in Units
  • RE: M5Unit C6L Lora initialisation error

    Hello @HappyUser

    glad to hear you figured it out.

    Well, part of M5GFX is used to try to figure out which board is in use. See code starting from here. Maybe this detection went wrong somehow?

    Thanks
    Felix

    posted in Units
  • RE: M5Unit C6L Lora initialisation error

    Hello @HappyUser

    hmm, both examples (w/o any modifications) work for me ok - no error.

    Question: why are you using SPI.begin() in your code? I don't see that in the linked example.

    Thanks
    Felix

    posted in Units
  • RE: M5 Dial and wired ethernet is possible?

    Hello @MitchBuckanon

    Arduino Espressif library now contains Ethernet drivers for W5500 and it seems W5500 can be used without RST or INT.

    I successfully ran ETH_W5500_Arduino_SPI example with Base LAN module connected to M5Dial via port A and B. I only needed to adapt SCLK, MOSI, MISO and CS to the proper GPIOs and set RST and INT to -1 (eg not used).

    Thanks
    Felix

    posted in Units
  • RE: How to connect three Unit Reflective IR via Unit PaHUB V2 in UIFlow2?

    Hello @mb

    Unit Reflective IR is a port B unit (black connector). So in order to connect multiple units you'll need a PbHub. (The b stands for port B.)

    (A PaHub is meant to connect multiple port A units (red connector) aka I2C with the same I2C address.)

    I created an UIFlow2 example to read three Unit Reflective IR via PbHub in UIFlow2 Project Zone called M5AtomLite_Three_ReflectiveIRUnit_UIFlow2.4.2

    Note: The example is how I think three reflective IR units can be read via PbHub. But actually this method is untested by me as I do not have the necessary hardware.

    Thanks
    Felix

    posted in UiFlow 2.0
  • RE: Different reset behaviour of Atom Matrix and Atom S3 Lite?

    Hello @mb

    M5Atom Matrix has a dedicated USB-Serial chip which is not affected by the ESP32 reset and thus is keeping the serial connection alive.

    In contrast the ESP32S3 inside M5AtomS3 Lite has USB built-in (and doesn't need a dedicated USB-Serial chip). The 'downside' being what you observe - resetting ESP32S3 also resets the USB connection.

    Thanks
    Felix

    posted in Atom
  • RE: Slow battery performance with M5PaperS3

    Hello @Kampi

    yes, the RTC (via PMS150G) is used to wake up the system.

    And here you can see how the power off pulse is generated in M5Unified.

    Thanks
    Felix

    posted in PROJECTS
  • RE: Slow battery performance with M5PaperS3

    Hello @Kampi

    well, quickly looking though your code I see you are using ESP32 deep sleep. In ESP32 deep sleep the system consumes about 5 - 6 mA according to measurements I did a while ago. See here. And official values from M5Stack here.

    With the 1800 mAh battery that gives you a theoretical run time of about 10 days. But since your system isn't in ESP32 deep sleep all the time and the battery cannot be completely emptied before the voltage is too low, 4 days sound about right.

    If you want substantially longer runtime per battery charge you need to power off M5PaperS3 instead of using ESP32 deep sleep. Doing that brings the current down to a couple of uAs instead of mAs.

    M5.Power.timerSleep(x) is used to shutdown M5PaperS3. See example here.

    Thanks
    Felix

    posted in PROJECTS
  • RE: OSError: [Errno 1] EPERM: ESP_FAIL M5Stack CoreS3 + Unit CamS3 displaying image on m5Stack

    Hello @katastrofiko

    may I suggest that you - as a beginner - try something simpler to start with? Displaying an image from Unit CamS3 camera on M5Stack CoreS3 screen is not exactly a simple thing.

    However if you insist on doing that then I suggest you feed the error message into your AI and let AI fix it. Or try the next 100 scripts AI spits out. (Edison ultimately had success too.)

    Personal side note: As a human being and software engineer I am glad that AI was not (yet) able to figure it out. That gives me hope for mankind.

    Thanks
    Felix

    posted in Micropython