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

    Arduino using GROVE B as I2C

    Scheduled Pinned Locked Moved M5Stack Fire
    4 Posts 2 Posters 4.4k Views
    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.
    • A Offline
      alpaka
      last edited by

      Can anyone give me help using Grove B (BLACK) as I2c to read a compass module. I cannot use Port A (RED) as there is no space in my waterproof case.

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

        Hello @alpaka

        unfortunately GPIO36 (one of the GPIOs used for Port B) is an input only GPIO. See here - section M5GO Base Pins and here - GPI: GPIO34-39 can only be set as input mode and do not have software-enabled pullup or pulldown functions.

        I2C however requires one GPIO as output (SCL) and one GPIO which can be an out- or input (SDA). Therefore Port B cannot be used for I2C.

        Thanks
        Felix

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

        A 1 Reply Last reply Reply Quote 1
        • A Offline
          alpaka @felmue
          last edited by

          @felmue

          Hi Felix
          thanks for your fast answer. Meanwhile I have also been looking at the GPIOs used on M5Stack and found out that GPIO36 can only be used as an input. I got my soldering gun and removed the black GROVE connector and wired a new one in White. directly to the PoGo Pins at the bottom of the M5GO. Works perfect. Would have fine not modify the module but you cannot have everything.

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            alpaka @alpaka
            last edited by

            @felmue

            BTW i forgot to mention that I also removed those nasty magnets as they disturb the used magnetometer. The metal screws where also replaced with plastic made.

            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