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

    Set MISO for GRBL 13.2 and Core2

    Scheduled Pinned Locked Moved Modules
    4 Posts 2 Posters 5.4k Views 1 Watching
    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.
    • E Offline
      em
      last edited by

      I am trying to use GRBL 13.2 module with Core2. But i can't figure out how to set MISO to GPIO38 in UIFlow and Android since it changed from GPIO19.

      Without adapting Core2 reboots after calling the library.

      Could anyone please gibe me a hint if this is possible and how?

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

        Hello @em

        you are correct MISO has changed in M5Core2 from GPIO19 to GPIO38. However you shouldn't need to modify that manually. Instead it will be taken care of when you use the M5Core2 library (instead of M5Stack library).
        In the Arduino example change the include file

        // #include <M5Stack.h>
        #include <M5Core2.h>
        

        and then in setup comment these lines out

        //  M5.Power.begin();
        ...
        //  Serial.begin(115200);
        

        With the above changes I can compile and run the code on my M5Core2 (no crash). Please note though - I don't have the GBRL module so I cannot fully test the result.

        In UiFlow the correct MISO GPIO should be used automatically when you select M5Core2 as device.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • E Offline
          em
          last edited by

          Thanks for the hints. I connected the module and now it works in UIFlow and with your hint in Anduino! Thanks a lot!

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

            Hello @em

            glad to hear. And thanks for reporting back.

            Thanks
            Felix

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

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post