M5 Dial and wired ethernet is possible?
-
Hello all!
Is it possible M5 Dial extend with any wired ethernet module, like a W5500?
I'm open to any solution.Thank you!
-
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 -
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
-
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 -
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
-
@MitchBuckanon M5Dial has 2 external ports PortA and PortB
PortA -> G15/G13/V/G
PortB ->G/V/G2/G1Pins 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

-
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 2Below is how I wired M5Dial to the LAN module (using a Bus Module) and some Grove/Dupont cables.

Hope this helps.
Thanks
Felix
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