Arduino Nano ESP32 - Ethernet
This guide shows you how to connect Arduino Nano ESP32 to the internet or your local network using the W55010 Ethernet module. You will learn the following:
- How to connect Arduino Nano ESP32 to W5500 Ethernet Module
- How to program Arduino Nano ESP32 for HTTP Requests through Ethernet
- How to create a simple Web Server on Arduino Nano ESP32 with Ethernet

Hardware Preparation
Or you can buy the following kits:
| 1 | × | DIYables Sensor Kit (18 sensors/displays) |
Additionally, some of these links are for products from our own brand, DIYables .
Overview of W5500 Ethernet module
The W550io Ethernet module has two kinds of connections:
- RJ45 interface: Connect this to a router or switch using an Ethernet cable.
- SPI interface: Use this to link to an Arduino Nano ESP32 board. It includes 10 pins:
- NC pin: Leave this pin unconnected.
- INT pin: Leave this pin unconnected.
- RST pin: This is the reset pin; connect it to the Arduino Nano ESP32's RST pin.
- GND pin: Connect this to the Arduino Nano ESP32's GND pin.
- 5V pin: Do not connect this pin.
- 3.3V pin: Connect this to the Arduino Nano ESP32's 3.3V pin.
- MISO pin: Connect this to the Arduino Nano ESP32's SPI MISO pin.
- MOSI pin: Connect this to the Arduino Nano ESP32's SPI MOSI pin.
- SCS pin: Connect this to the Arduino Nano ESP32's SPI CS pin.
- SCLK pin: Connect this to the Arduino Nano ESP32's SPI SCK pin.

Wiring Diagram between Arduino Nano ESP32 and W5500 Ethernet module

This image is created using Fritzing. Click to enlarge image
Jumper wires can come loose when you move the project. The Arduino Nano ESP32 fits a Screw Terminal Expansion Board for Arduino Nano, which turns every pin into a screw terminal. This is how it looks with the screw terminal board:

This image is created using Fritzing. Click to enlarge image
Arduino Nano ESP32 code for Ethernet Module - Making HTTP request via Ethernet
This code functions like a web client. It sends HTTP requests to the web server at http://example.com/.
Detailed Instructions
To get started with Arduino Nano ESP32, follow these steps:
- If you are new to Arduino Nano ESP32, refer to the tutorial on how to set up the environment for Arduino Nano ESP32 in the Arduino IDE.
- Connect the Arduino Nano ESP32 to the Ethernet module according to the provided diagram.
- Connect the Ethernet module to your router or switch using a Ethernet cable.
- Connect the Arduino Nano ESP32 board to your computer using a USB cable.
- Launch the Arduino IDE on your computer.
- Select the Arduino Nano ESP32 board and its corresponding COM port.
- Click to the Libraries icon on the left bar of the Arduino IDE.
- Search “Ethernet”, then find the Ethernet library by Various
- Click Install button to install Ethernet library.

- Open the Serial Monitor in the Arduino IDE.
- Copy the code given and paste it into the Arduino IDE.
- Press the Upload button in the Arduino IDE to send the code to the Arduino Nano ESP32.
- Check out the Serial Monitor which will display the output as below.
※ NOTE THAT:
If another device on the same network has the same MAC address, it might cause problems.
Arduino Nano ESP32 code for Ethernet Module - Web Server
The code below turns the Arduino Nano ESP32 into a web server. This server sends a simple webpage to web browsers.
Detailed Instructions
- Copy the code provided and paste it into the Arduino IDE.
- Click the Upload button in Arduino IDE to send the code to your Arduino Nano ESP32 board.
- Check the Serial Monitor to view the results as shown.
- Enter the IP address provided into your web browser's address bar. You will see a simple webpage displayed by the Arduino Nano ESP32.
