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

    TermTab5

    Scheduled Pinned Locked Moved PROJECTS
    15 Posts 3 Posters 642 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.
    • H Offline
      h0lmes @Powersoft
      last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • H Offline
        h0lmes @Powersoft
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • H Offline
          h0lmes @easytarget
          last edited by

          @easytarget I assume you did not read my message carefully. G1/G3 are in the PDF Schematics
          b7f3a2c7-5c9e-45d0-bb35-06b177bd4fb0-image.jpeg

          easytargetE 1 Reply Last reply Reply Quote 0
          • H Offline
            h0lmes @Powersoft
            last edited by

            @Powersoft Hi!
            You can easily use any pins with SoftwareSerial, though I did not test it. One of my primary goals was to make it work fast (which is not what you usually expect from software serial).
            Can you do it yourself? Or maybe use a GhatGPT (point it to the main .ino file and ask to change to pins you want).
            If you encounter any problems message me, I'll try to find some time to do tests.

            easytargetE P 2 Replies Last reply Reply Quote 0
            • easytargetE Offline
              easytarget @h0lmes
              last edited by easytarget

              @h0lmes Software Serial is best left for smaller devices with limited IO mapping. For any of the recent ESP32 chips you should one of the hardware UARTS, the P4 has six of them!

              You can mux any GPIO pin to any hardware UART. That way you get speed with no cpu load, and the option to do DTS/CTS etc by just specifying the extra pins.

              https://docs.espressif.com/projects/arduino-esp32/en/latest/tutorials/io_mux.html#peripheral-table

              https://docs.espressif.com/projects/esp-idf/en/stable/esp32p4/api-reference/peripherals/uart.html#set-communication-pins

              However if (and I have not looked at the code) you just use the default esp functions it will default to a hardware UART if it can and only use soft serial as needed, so you may be good anyway ;-)

              1 Reply Last reply Reply Quote 0
              • easytargetE Offline
                easytarget @h0lmes
                last edited by

                @h0lmes
                Actually I was ignoring that; I am using the actual P5 GPIO pin numbers for clarity.

                If you look at the image I pasted, which is from the Tab5 main documentation, you can see that it also uses the real GPIO pin numbers.

                The M5_BUS uses pin names based on the original M5Stack, and the schematic shows the M5_BUS pin names there, and this is very important if interfacing to other stack modules! But the actual GPIO numbers are what you need in your terminal code. Using the M5_BUS labels just confuses things.

                So; I prefer to use the actual P5 GPIO pin numbers, rather than having to do a mental 'GPIO pin X == M5_BUS pin Y' conversion every time.

                H 1 Reply Last reply Reply Quote 0
                • P Offline
                  Powersoft @h0lmes
                  last edited by

                  @h0lmes
                  Hello, thanks for your information, please can you point me where to find in the code I should search for the pinnumbers, i have search a lot of time but no result.
                  With kindley regards
                  Jan

                  H 1 Reply Last reply Reply Quote 0
                  • H Offline
                    h0lmes @Powersoft
                    last edited by

                    @Powersoft Hi!
                    I have updated the project and added a feature flag at line 26 of PlatformConfig.hpp. If you uncomment it the source compiles with grove connector as a UART.
                    As can be seen at TermTab.ino lines 136-137: pin 53 is TX and pin 54 is RX.
                    You are welcome.

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      h0lmes @easytarget
                      last edited by

                      @easytarget
                      It seems to me that the M5 team could've done a better job with the Tab5 schematics to avoid all this potential confusion.
                      Thanks for taking the time to point out all those details.

                      1 Reply Last reply Reply Quote 0
                      • H Offline
                        h0lmes
                        last edited by h0lmes

                        I didn't implement those pins selectable in software because it is intended for use on almost any ESP-based hardware.
                        Though if I have a good idea on how to do it without sacrificing portability I might add it later.

                        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