M5Stack Core2 Which Pins can I use???
-
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:

From (hours of) studying, the ones that I don't think that I can use are:
- intSDA/intSCL (I2C Port, I'll have a 4 relay board that I'll have installed that uses I2C).
- 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:
- I can use the RXD2/TXD2 for my most important comm port.
- G27/G19 as my first SoftwareSerial RX/TX Ports.
- G25/G26 as my second SoftwareSerial RX/TX Ports.
- 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 -
@SirMichael

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 -
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
-
I did some more studying, and came up with the following table:

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
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