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

    M5Stack Core2 Which Pins can I use???

    Modules
    2
    4
    697
    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
      SirMichael
      last edited by

      I have an M5Stack Core2 AWS and working on designing a project.

      I haven't been able to find a document that really tells me which pins I can and can not use.

      I need 3 Comm Ports (probably 2 will use EspSoftwareSerial) and 2 other pins, a Digital Input and a Digital Output. I don't see where RXD1/TXD1 (has a UART) pins are available!

      For the Core2 the pins are listed:
      M5StackCore2Pinout.jpg

      From (hours of) studying, the ones that I don't think that I can use are:

      1. intSDA/intSCL (I2C Port, I'll have a 4 relay board that I'll have installed that uses I2C).
      2. RXD0/TXD0 (used for USB Comms)

      Are there other pins that are RESERVED? (besides the obvious: GND, RST, 3.3v, 5v & BAT)

      What I THINK I CAN USE:

      1. I can use the RXD2/TXD2 for my most important comm port.
      2. G27/G19 as my first SoftwareSerial RX/TX Ports.
      3. G25/G26 as my second SoftwareSerial RX/TX Ports.
      4. G35 & G36 as my Discrete Input and Output pins.
        (I have a MAX3232 Serial Interface chip that I can use with 3.3v power.)

      Is this correct?
      Are there any other pins that I could use?

      Thanks for your help!
      Sir Michael

      kurikoK 1 Reply Last reply Reply Quote 0
      • kurikoK
        kuriko @SirMichael
        last edited by

        @SirMichael
        9c8fd8ff-b123-40b8-b941-5b1d7066e6de-image.png
        yes i personally think you're mostly right
        and, maybe you can try out PbHub to expand ports?
        https://docs.m5stack.com/en/unit/pbhub_1.1

        Good morning, and welcome to the Black Mesa Transit System.

        S 1 Reply Last reply Reply Quote 0
        • S
          SirMichael @kuriko
          last edited by

          @kuriko

          But the question gets to be, using the pbhub_1.1, can I somehow communicate from the I2C port (PortA) with a Serial Port?

          I can't seem to find an I2C to Serial Converter...

          Sir Michael

          S 1 Reply Last reply Reply Quote 0
          • S
            SirMichael @SirMichael
            last edited by

            @SirMichael

            I did some more studying, and came up with the following table:

            2d232859-84b4-4421-9143-baaf384d0c65-image.png

            I hope this is right!
            Now, I'm not using the M5Stack bottom board which has the PortB and PortC, so I figure that I can use the RXD2/TXD2 pins as well as the G36 and G26 pins. I'll use those for the other 2 SoftwareSerial ports, and G27 and G19 for the other pins.

            The thing that I found confusing was that they do list the pins in the M5Stack documents, but they don't really explain what is available to the user. This took a lot more work than it should have!

            Sir Michael

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