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

    Bus Mapping M5Core2 <-> M5Stack

    Core 2
    5
    10
    16.2k
    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.
    • S
      sheepDog
      last edited by sheepDog

      Hello,

      in past I used some M5Stack modules at M5Stack and now I like to migrate to M5Core2. The challenge ist the different bus system.

      Pin	M5Stack	M5Core2
      GND	2	1,3,5
      SCK	4	11
      MISO	6	9
      RESET	8	6
      nu	10	-
      nu	12	-
      A0	14	-
      A1	16	-
      A2	18	-
      A3	20	-
      A4	22	-
      A5	24	-
      AREF	26	-
      IO12	28	-
      IO13	30	-
      5V	1	28
      MOSI	3	7
      SS	5	-
      D0/RX	7	13
      D1/Tx	9	14
      D2/SDA	11	SYS:17, EXT:19
      D3/SCI	13	SYS:18, EXT:20
      D4	15	-
      D5	17	-
      D6	19	-
      D7	21	-
      IO8	23	-
      IO9	25	-
      IO10	27	-
      IO11	29	-
      IO35	-	2
      IO36	-	4
      IO25	-	8
      IO26	-	10
      3,3V	-	12
      Rx2	-	15
      Tx2	-	16
      IO19	-	22
      IO0	-	24
      IO34	-	26
      BAT	-	30
      

      Who has experience with using an M5Stack module on an M5Core2?

      1 Reply Last reply Reply Quote 0
      • m5stackM
        m5stack
        last edited by

        Core2-bus has some differences with M5-bus. so when you stack the module to the core2. you need to make some pin num change in your code.

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

          Hi guys

          I've put together a comparison sheet showing the similarities and differences between M5Stack / M5Core2 bus and GPIO usage. You can find it here:

          https://www.gwendesign.ch/kb/m5stack/m5core2/#m5core2-bus-and-gpios-compared-to-m5stack

          Cheers
          Felix

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

          m5stackM 1 Reply Last reply Reply Quote 0
          • m5stackM
            m5stack @felmue
            last edited by

            @felmue Thank you for your help.

            1 Reply Last reply Reply Quote 0
            • N
              Nlindin @m5stack
              last edited by

              @m5stack Hi! Could you please put an example? I can not find a valid one. For example, how can we -using arduino- mix Core2 and GoPlus2 module? The example does not work. Thank you very much!

              ajb2k3A 1 Reply Last reply Reply Quote 0
              • ajb2k3A
                ajb2k3 @Nlindin
                last edited by

                @nlindin what is arduino- mix Core2 ?
                Go plus2 is sat on my bench waiting to be documented when i finish the coreink but had some issue with the coreink delaying documentation.

                UIFlow, so easy an adult can learn it!
                If I don't know it, be patient!
                I've ether not learned it or am too drunk to remember it!
                Author of the WIP UIFlow Handbook!
                M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

                N 2 Replies Last reply Reply Quote 0
                • N
                  Nlindin @ajb2k3
                  last edited by

                  @ajb2k3 Thank you for your answer. I want to say an example in arduino for Core2+Goplus2. With Uiflow it seems to work fine. With Arduino I am totally stuck in this scenario.

                  1 Reply Last reply Reply Quote 0
                  • N
                    Nlindin
                    last edited by

                    Hi again!
                    For now I have changed the .ino from GPIO 5 to GPIO 33, (35 is the same for both, Stack and Core2) but the ir receiver gives only "PARAM LEN ERROR" from all my remotes and buttons. I continue doing something wrong with the Core2+Goplus 2.
                    Any help, please?
                    Thank you!

                    1 Reply Last reply Reply Quote 0
                    • N
                      Nlindin @ajb2k3
                      last edited by

                      @ajb2k3 The IR in the GoPlus2 gives this by the serial monitor. Any updates?
                      Thank you and happy 2021.
                      E (42353) rmt: rmt_write_items(797): RMT PARAM LEN ERROR
                      send done
                      76
                      recv done
                      76
                      .
                      .
                      .

                      N 1 Reply Last reply Reply Quote 0
                      • N
                        Nlindin @Nlindin
                        last edited by Nlindin

                        @nlindin This one works!

                        #include <M5Core2.h>
                        #include <IRremote.h>

                        IRrecv irrecv(35);
                        decode_results ircode;

                        void setup() {
                        M5.begin();
                        irrecv.enableIRIn();
                        }

                        void loop()
                        {
                        if (irrecv.decode(&ircode))
                        {
                        Serial.println(ircode.value, HEX);
                        delay(100);
                        irrecv.resume();
                        }
                        m5.update();
                        }

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