created date: 2021-03-10
modified date:
2026-08-23
- IDE
Arduino V1.8.19 - Library
Ethernet enc v2.x
接线
| Arduino Uno | Enc28j60 |
|---|---|
| Pin 10 | CS |
| Pin 11 | SI |
| Pin 12 | SO |
| Pin 13 | SCK |
| Reset | RST* |
| +3v3 | Vcc |
| GND* | GND |

Enc28j60
INTN: 置空(不接)
*Rst接线: 注意 Nano V3 Ethernet Shield 接7号线柱,如下图所示:

Arduino Uno
*GND接线: 5V旁边的GND.
供电: 必须使用USB接口. 使用 圆形 DC 接口 无法工作!
网络及PC驱动
两种方式:
-
平行线
接路由器Lan口。 -
交叉线
接PC的Lan口。
Network
设置同一网段的IP地址。
- PC
Control Panel -> Network and Internet -> Network Connections
Ethernet -> Properties:
Internet Protocol Version 4(TCP/IPv4)
- Enc28J60
IP and MAC 在源代码中更改.
Router
不支持以下路由器:
Huawei AX2 Pro
Driver
-
Windows 10 Enterprise LTSC 2019 English(x64)
No need to manually install drivers. -
Windows 7 SP1 简体中文专业版(x64)
首先,解压缩Arduino IDE下的drivers\Old_Arduino_Drivers.zip;
然后,通过设备管理器-〉未知设备-〉“更新驱动程序软件”,即可安装完成。
example
If there is a new board manager please upgrade it.
Tools -> Boards Manager
Arduino AVR Boards -> update
If there is a new EthernetENC library please update it.
Tools -> Library Manager
EthernetENC -> update
-
Board
Tools -> Arduino Uno -
Port
Tools -> Arduino Uno(COM3) -
Programmer
AVRISP mkII
添加Ethernet库
UIP Ethernet工程 导入 到 Atmel Studio(Microchip Studio) 无法编译
Ethernet enc 没有这个问题
Arduin IDE v1.8.19
Sketch -> Include Library
Add .ZIP Library
Code
Ethernet_Demo_1.ino
#include <SPI.h>
#include <EthernetENC.h>
...
Use Arduino’s Ethernet Demo; only the (library) header file needs to be changed.
Browser
使用浏览器进入http://192.168.0.86:1000
Support
-
IE
支持交叉线和路由器网络
-
Firefox
两种(交叉网络和路由器网络)都不支持。 -
Chrome
v111.0 需要连接到路由器。
