---
title: "Arduino nano + W5500 development issues"
url: "https://maker.wiznet.io/chen/projects/arduino-nano-w5500-development-issues/"
markdown_url: "https://maker.wiznet.io/chen/projects/arduino-nano-w5500-development-issues/md"
type: "UCC: User Created Content"
author: "RayCongLiang"
author_url: "https://blog.csdn.net/RayCongLiang/article/details/104937028?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_utm_term~default-0-104937028-blog-79240054.pc_relevant_recovery_v2&spm=1001.2101.3001.4242.1&utm_relevant_index=3"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "RayCongLiang"
original_url: "https://blog.csdn.net/RayCongLiang/article/details/104937028?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_utm_term~default-0-104937028-blog-79240054.pc_relevant_recovery_v2&spm=1001.2101.3001.4242.1&utm_relevant_index=3"
license: "Apache License 2.0 (Apache-2.0)"
published: "2022-11-01"
language: "en"
tags: ["W5500", "Arduino"]
hardware: ["Arduino Nano R3"]
likes: 4
views: 4605
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Arduino nano + W5500 development issues

> This blog article introduces the development issues of Arduino nano using W5500 module.

Original author: RayCongLiang (source: https://blog.csdn.net/RayCongLiang/article/details/104937028?utm_medium=distribute.pc_relevant.none-task-blog-2~default~baidujs_utm_term~default-0-104937028-blog-79240054.pc_relevant_recovery_v2&spm=1001.2101.3001.4242.1&utm_relevant_index=3)

## Components

- **Arduino Nano R3** x 1 ([docs](https://www.farnell.com/datasheets/1682238.pdf))
- Software: **Arduino IDE** ([docs](https://www.arduino.cc/en/software))

## Article

引言
最近接触到Arduino模块的开发，并且模块的主要使用场景是机房，因此选择使用以太网W5500模组使得数据能够通过网线稳定而快速地将数据上传到外网。在开发的过程中发现，Arduino模块的库示例代码配套使用的是W5100模块。
网上的教程依然五花八门，有的说W5500的API与W5100的是一样的，也有的说官方WIZ550io与国内W5500模组的设计区别，导致W5500模组不能自动写入MAC地址，以驱动其获取IP与联网。在这里，我分享一下我的项目经验，以供相关领域同志参考。

模块清单
1、Arduino Nano模块
2、泥人W5500以太网模组
3、网线与数据线
4、路由器

接线介绍
因为Arduino与W5500使用的是快速SPI连接，因此我们首先要知道Arduino-Nano模块的SPI接口以及工作原理：
这里借用一篇详细的博客说明：Arduino-Nano各个接口的博客：
Arduino Nano 引脚分配图及定义详解

（图片也是借用的）
因此详细的接线应该为：

Arduino W5500
D10 SCS
D11 MOSI
D12 MISO
D13 SCLK
至于INT、RST这两个引脚，要根据自己的需求去接，我这次开发没有用到可以置空
关于VCC的话，建议使用5V供电，个人测试，3V3供电会发现W5500工作不正常

Arduino代码操作
1、下载使用W5500的Arduino库

2、使用最新下载的Ethernet2库中的例程即可：

3、例程需要修改的地方：

总结
个人觉得Arduino虽然简单，简单就是简单在Arduino提供了大量的库以供使用，其实我们更加应该深入去了解以及学习一下Arduino库里面是应该怎么写，以及怎么实现的。同时，这也为什么很多商家包括泥人，提供的只有51以及STM32的例程原因之一吧。
此博客以作为一次Arduino项目开发的笔记记录，希望对你也有帮助。
————————————————
版权声明：本文为CSDN博主「RayCongLiang」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。
原文链接：https://blog.csdn.net/RayCongLiang/article/details/104937028

---

Source: https://maker.wiznet.io/chen/projects/arduino-nano-w5500-development-issues/
