Skip to content

technopolistv/PlatformIO-RobotDyn-LeonardoETH

Repository files navigation

How to use RobotDyn Arduino Leonardo Ethernet W5500 with PlatformIO

RobotDyn Arduino Leonardo Ethernet W5500

Here is a working example for RobotDyn Arduino Leonardo ETH with PlatformIO.

How it works

TL;DR Pull RST pin 11 HIGH before Ethernet.begin(). Optionally pull SS pin 10 LOW before Ethernet.begin() and HIGH afterwards.

#define SS  10  // W5500 CS
#define RST 11  // W5500 RST

pinMode(RST, OUTPUT);
digitalWrite(RST, HIGH);

Ethernet.begin(mac, ip);

You can assign a static IP address and connect to it via netcat or other UDP client on port 8888.

$ echo -n "0123456789 abcdef ABCDEF" | nc -u 192.168.23.23 8888

Every received UDP packet will be acknowledged with uptime of the device in milliseconds and echo of the received packet.

✍️ Blog: https://www.technopolis.tv/PlatformIO-How-to-use-RobotDyn-Arduino-Leonard-Ethernet-W5500/

About

How to use RobotDyn Arduino Leonardo Ethernet W5500 with PlatformIO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages