查看“Microduino W5500 Network (1)”的源代码
←
Microduino W5500 Network (1)
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{| style="width: 800px;" |- | ==Purpose== This course will show you how to have a Ping connection with Microduino-W5500. ==Equipment== *'''[[Microduino-Core]]''' *'''[[Microduino-USBTTL]]''' *'''[[Microduino-W5500]]''' *'''[[Microduino-RJ45]]''' *Other Hardware Equipment **USB cable One ==Schematic== *Microduino-W5500 *Microduino-RJ45 *Microduino-Core *Microduino-USBTTL Stack them and then plug in network cable. Just as follows: [[File:MicroduinoW5500Show.png|600px|center|thumb]] Pin picture of Microduino W5500: *Pin Description: {|class="wikitable" ! rowspan="1" | Pin name of W5500 ||Microduino pin || Function |- | SO || D11|| Data output of SPI interface |- | SI|| D12|| Data input of SPI interface |- | SCK|| D13|| Clock input of SPI interface |- | CS||D10 by default(Also can be changed to D8) || Chip selection input of SPI interface |- | RESET|| RESET|| Low-level effective device reset input |} ==Program== [[https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced_Tutorial/W5500Code/MicroduinoW5500One MicroduinoW5500One]] ==Debugging== Step 1: First, make sure you have _02_Microduino_Ethernet_WIZ library in your IDE. If not, please download and put it into your library folder of IDE and restart IDE. Step 2: If there is previous Ethernet in the library folder of IDE, you need to delete it since the previous Ethernet is compiled according to W5100 protocol. Then, you need to change _02_Microduino_Ethernet_WIZ file to make library functions corresponding with Microduino in pin. Find w5100.h in utility folder in _02_Microduino_Ethernet_WIZ library. Change #define wiz_cs_pin 8 //CS_PIN of the code to #define wiz_cs_pin 10 //CS_PIN. Step 3: Explain the code: Define the IP address and port: // Enter a MAC address and IP address for your controller below. // The IP address will be dependent on your local network. // gateway and subnet are optional: byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED}; IPAddress ip(192,168,1, 177); IPAddress gateway(192,168,1, 1); IPAddress subnet(255, 255, 255, 0); // telnet defaults to port 23 EthernetServer server(23); boolean alreadyConnected = false; // whether or not the client was connected previously We start service of 23 port in the code and point to a specified IP address. // initialize the ethernet device Ethernet.begin(mac, ip, gateway); Start service Step 4: Download the code and pass the compiling. Step 5: Ping connection! The simplest way to have a ping connection of W5500 is to check if it is networked correctly. Enter Ping in the computer and check the IP address of the device. [[File:MicroduinoW55001.png|600px|center|thumb]] ==Result== When it is showed as the picture above, it means “connected to network”. ==Video== |}
返回至
Microduino W5500 Network (1)
。
导航菜单
个人工具
创建账户
登录
名字空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
Welcome
首页
创客大赛
大赛详情
3D打印
安装月球车
图形化编程
操控月球车
升级月球车
编程工具下载
软件下载
Arduino
Processing
Mixly
Scratch
模块套件
Microduino 102
mCookie 102
mCookie 202
mCookie 302
IBC
其他
应用套件
四轴飞行器
平衡车
小车CUBE
音乐播放器
刷卡音乐播放器
wifi气象站
彩虹音乐触摸灯
分贝检测仪
迎门汇报
LED点阵时钟
LED点阵屏幕
硬件
mCookie
Sensor
Microduino
MicroWrt
MicroNux
MicroRobot-Core
MicroRobot-CoreESP
ideaBoard
ideaBox
MicroMV
MicroAI
帮助
常见问题
帮助
工具
链入页面
相关更改
特殊页面
页面信息