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

    M5 Dial and wired ethernet is possible?

    Scheduled Pinned Locked Moved Units
    7 Posts 4 Posters 2.5k 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.
    • K Offline
      kokany
      last edited by

      Hello all!

      Is it possible M5 Dial extend with any wired ethernet module, like a W5500?
      I'm open to any solution.

      Thank you!

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

        Hello @kokany

        short answer: not easily / not together with the display.

        Long answer: the issue I see is that the SPI pins used for the display are not accessible from the outside. This means it would need a second SPI instance using the pins available on port A and B. Unfortunately the M5-Ethernet library uses the first SPI instance hard-coded. See here.

        So yes, M5Dial can be extended with Ethernet, but not together with the display or one would need to modify the M5-Ethernet library accordingly.

        Please note: it's entirely possible there is another way I do not see right now.

        Thanks
        Felix

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

        1 Reply Last reply Reply Quote 0
        • M Offline
          MitchBuckanon
          last edited by

          Hi all,

          like you, @kokany, I'm very interested in this solution of adding an Ethernet port to the M5Dial, as I won't be in an environment with Wi-Fi coverage.

          Have you found a viable and stable solution since your last post, or is @felmue's solution the most reliable?

          I know this is an old thread, but I can't find it discussed anywhere else.

          Thanks a lot to the community; it's great to be able to help each other on a forum like this.

          Mitch

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

            Hello @MitchBuckanon

            Arduino Espressif library now contains Ethernet drivers for W5500 and it seems W5500 can be used without RST or INT.

            I successfully ran ETH_W5500_Arduino_SPI example with Base LAN module connected to M5Dial via port A and B. I only needed to adapt SCLK, MOSI, MISO and CS to the proper GPIOs and set RST and INT to -1 (eg not used).

            Thanks
            Felix

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

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              MitchBuckanon @felmue
              last edited by

              @felmue

              Thanks a lot,

              i'm beginner for all of that..

              When you say that SCLK, MOSI, MISO and CS need to be adapted to the proper GPIOs and RST and INT set to -1, could you explain it in simpler terms for a beginner? I saw the code you linked to, but I don't know where to start.

              Thanks in advance

              Mitch

              robskiR 1 Reply Last reply Reply Quote 0
              • robskiR Offline
                robski @MitchBuckanon
                last edited by robski

                @MitchBuckanon M5Dial has 2 external ports PortA and PortB
                PortA -> G15/G13/V/G
                PortB ->G/V/G2/G1

                Pins G15/G13/G2/G1 are programmable so can be used (reconfigured) to be SPI pins SCLK, MOSI, MISO and CS - needed to connect - communicate with - external device like Lan Module

                m5dial ports.JPG

                M5StickC, M5StickCPlus, M5StickCplus2,M5GO, M5Core, M5Tough, M5Core2, M5 Demo Board, M5Dial, M5Paper, M5Atom, M5Cardputer, M5StampS3, CoreMP135, StamPLC, AirQ, M5Tab, M5CardputerAdv, M5StackChan

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

                  Hello @MitchBuckanon

                  like @robski mentioned, M5Dial has two ports: A and B which gives you 4 GPIOs you can use. In my test I configured the GPIOs like below:

                  #define ETH_PHY_CS    1
                  #define ETH_PHY_IRQ  -1
                  #define ETH_PHY_RST  -1
                  #define ETH_SPI_SCK  13
                  #define ETH_SPI_MISO 15
                  #define ETH_SPI_MOSI  2
                  

                  Below is how I wired M5Dial to the LAN module (using a Bus Module) and some Grove/Dupont cables.
                  M5Dial_to_LAN_via_Bus_Module_20260302.png

                  Hope this helps.

                  Thanks
                  Felix

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

                  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