🤖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

    M5Stack Fire
    2
    4
    2.0k
    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
      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
        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
          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
            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
            • First post
              Last post