🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    [Core2] UiFlow - BOTTOM2 support

    Features Wish List
    5
    16
    22.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • MatiM
      Mati
      last edited by

      Hey,

      please let us know when we could see BOTTOM2 support in UiFlow.

      Regards
      Mati

      1 Reply Last reply Reply Quote 1
      • ZontexZ
        Zontex
        last edited by

        There is support already, you can go to the hardware tab and get the RGB and IMU which are located on Bottom2 as well - they have the same pin map as Core2.

        1 Reply Last reply Reply Quote 0
        • MatiM
          Mati
          last edited by

          Hey @Zontex you mean this ?
          0_1609441567820_0d9721be-17af-4289-b101-c7d84d843f21-image.png

          if Yes this is not working on my core2 + bottom.

          1 Reply Last reply Reply Quote 1
          • MatiM
            Mati
            last edited by

            also port mapping is a bit wrong
            0_1609442825137_8730f1aa-72f0-4ec6-acc8-f327ad4701ea-image.png

            maybe the old idea with add a a core as the unit would be better.

            1 Reply Last reply Reply Quote 0
            • felmueF
              felmue
              last edited by

              Hello @Zontex

              for I2C you are correct, SDA/SCL (GPIOs 21/22) are identical on the Core2 Expansion board and M5GO2 so either IMU will work.

              However for RGB the original M5GO is using GPIO 15 whereas the newer M5GO2 uses GPIO 25 for RGB - so most likely it will not just work. (Or am I missing something?)

              Thanks
              Felix

              GPIO translation table M5Stack / M5Core2
              Information about various M5Stack products.
              Code examples

              ZontexZ 1 Reply Last reply Reply Quote 0
              • ZontexZ
                Zontex @felmue
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • felmueF
                  felmue
                  last edited by

                  Hello @Mati

                  I have received my M5GO2 bottom yesterday. @Zontex was correct, UIFlow support for M5GO2 is already in M5Core2 firmware 1.7.1. What is missing is enabling the 5 volts boost IC in M5Core2. W/o that the RGB LEDs do not have power. This works for me:

                  0_1610134667796_UIFlowM5Core2Bottom2RGB_20210108.png

                  Cheers
                  Felix

                  GPIO translation table M5Stack / M5Core2
                  Information about various M5Stack products.
                  Code examples

                  MatiM 1 Reply Last reply Reply Quote 0
                  • MatiM
                    Mati @felmue
                    last edited by Mati

                    @felmue said in [Core2] UiFlow - BOTTOM2 support:

                    Hello @Mati

                    I have received my M5GO2 bottom yesterday. @Zontex was correct, UIFlow support for M5GO2 is already in M5Core2 firmware 1.7.1. What is missing is enabling the 5 volts boost IC in M5Core2. W/o that the RGB LEDs do not have power. This works for me:

                    0_1610134667796_UIFlowM5Core2Bottom2RGB_20210108.png

                    Cheers
                    Felix

                    Great find ! big thx @felmue

                    Lets hope @Zontex will fix this. core2 section is missing https://docs.m5stack.com/#/en/uiflow/hardware?id=power-m5stack

                    1 Reply Last reply Reply Quote 0
                    • MatiM
                      Mati
                      last edited by

                      Fun fact ... after a while when all was working my env2 or tvoc is unable to communicate ....
                      0_1610297963551_20210110_175915.jpg
                      Sounds like i will contact support ...0_1610298037189_20210110_175941.jpg

                      1 Reply Last reply Reply Quote 0
                      • felmueF
                        felmue
                        last edited by

                        Hi @Mati

                        I am just wondering if the I2C failure could be a connectivity issue between M5Core2 and M5GO2? Maybe try to separate the two and then stack them again?

                        Thanks
                        Felix

                        GPIO translation table M5Stack / M5Core2
                        Information about various M5Stack products.
                        Code examples

                        1 Reply Last reply Reply Quote 0
                        • MatiM
                          Mati
                          last edited by

                          Well did it already on solo mode ic is dead as well...

                          1 Reply Last reply Reply Quote 0
                          • O
                            Ove
                            last edited by

                            If you are using firmware version 1.7.1 then I suggest trying version 1.7.0 because in 1.7.1 the power to external devices are off when the device is powered on and even if you use the "Set bus power mode" block it is trying to initialize your "Units" before they get any power and this will cause problems like this.
                            It is possible to enable power before the Units are initialized if you switch to the python tab... but this should be fixed in a new firmware release.

                            MatiM 1 Reply Last reply Reply Quote 0
                            • felmueF
                              felmue
                              last edited by

                              Hi guys

                              @Mati : sorry to hear. Are you saying your M5Core2 with, lets say factory firmware installed, no longer is able to detect any internal I2C devices?

                              @Ove : you are correct, when I run below code in UIFlow 1.7.1 with firmware 1.7.1 on M5Core2 the attached unit (Ameter) is correctly found by the I2C scan
                              0_1610368755388_UIFlowPortAI2CScan20210111.png
                              and returns a list with the two devices, e.g. [72, 81].

                              However that is only true as long as I do not define / add the Ameter unit. As soon as I add the Ameter unit I get an error that the Ameter is not found. So yes, it looks like some I2C initialisation is already taking place before the UIFlow code has a chance to run.

                              @Zontex : maybe it would make sense to allow setting the initial Bus Power Mode similar to the WiFi settings via M5Burner?

                              Thanks
                              Felix

                              GPIO translation table M5Stack / M5Core2
                              Information about various M5Stack products.
                              Code examples

                              1 Reply Last reply Reply Quote 0
                              • MatiM
                                Mati @Ove
                                last edited by

                                @ove said in [Core2] UiFlow - BOTTOM2 support:

                                If you are using firmware version 1.7.1 then I suggest trying version 1.7.0 because in 1.7.1 the power to external devices are off when the device is powered on and even if you use the "Set bus power mode" block it is trying to initialize your "Units" before they get any power and this will cause problems like this.
                                It is possible to enable power before the Units are initialized if you switch to the python tab... but this should be fixed in a new firmware release.

                                yep rollback to 1.7.0 bring back the i2c. Thx @Ove
                                so we have a big issue inside 1.7.1 ...

                                1 Reply Last reply Reply Quote 1
                                • felmueF
                                  felmue
                                  last edited by

                                  Hi guys

                                  UIFlow 1.7.1.1 for M5Core2 is out and it seems to fix the power issue on port A. I can now scan and use units on port A w/o the need to add the Set bus power mode 0 instruction.

                                  Happy Stacking!
                                  Felix

                                  GPIO translation table M5Stack / M5Core2
                                  Information about various M5Stack products.
                                  Code examples

                                  1 Reply Last reply Reply Quote 2
                                  • C
                                    ctenophore
                                    last edited by

                                    Hello everyone,

                                    I just wanted to chime in and mention that with UIFlow firmware 1.7.1.1 that I also do not have the RGB leds showing up as hardware options in block view in the UIFlow IDE. I do not have the "Set bus power mode" as an available block. I CAN however call rgb.setColorAll() and other rgb functions from the python code and get the correct output from the LED strips on the Core2 M5go Bottom2 hardware. So I am not sure what that means as far as where the bug is.

                                    Thank you!

                                    1 Reply Last reply Reply Quote 0
                                    • First post
                                      Last post