久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 3706|回復: 1
打印 上一主題 下一主題
收起左側

W5100的Arduino源碼與IP地址查找方法

[復制鏈接]
跳轉到指定樓層
樓主
ID:412731 發表于 2018-10-20 14:58 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
W5100 IP地址查找
  • 點擊電腦左下鍵盤的 開始
  • 然后在點擊運行
  • 然后會跳出一個框框 再里面輸入 cmd
  • 然后點擊確定就會出現另外一個黑色的框框
  • 再在里面輸入ipconfig
  • 然后點擊回車鍵 就可以看到自己的IP了

Arduino W5100 Test
1.Stack your W5100 shield on you arduino board,make sure all the pins contact OK.
SIZE:   L-69MM    W-53.6MM
2.Download the test sketch
arduino w5100 test code:
  1. /************************************************/

  2. #include <SPI.h>

  3. /*
  4. * Web Server
  5. *
  6. * A simple web server that shows the value of the analog input pins.
  7. */
  8. #include <Ethernet.h>
  9. byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
  10. byte ip[] =  { 192, 168, 0, 15 };
  11. Server server(80);
  12. void setup()
  13. {
  14.   Ethernet.begin(mac, ip);
  15.   server.begin();
  16. }
  17. void loop()
  18. {
  19.   Client client = server.available();
  20.   if (client) {
  21.     // an http request ends with a blank line
  22.     boolean current_line_is_blank = true;
  23.     while (client.connected()) {
  24.       if (client.available()) {
  25.         char c = client.read();
  26.         // if we've gotten to the end of the line (received a newline
  27.         // character) and the line is blank, the http request has ended,
  28.         // so we can send a reply
  29.         if (c == 'n' && current_line_is_blank) {
  30.           // send a standard http response header
  31.           client.println("HTTP/1.1 200 OK");
  32.           client.println("Content-Type: text/html");
  33.           client.println();
  34.          
  35.           // output the value of each analog input pin
  36.           client.print("welcome to tinyos electronics");
  37.           client.println("<br />");
  38.           client.print("//*************************************");
  39.           client.println("<br />");
  40.           client.print("");
  41.           client.println("<br />");
  42.           client.print("//*************************************");
  43.           client.println("<br />");
  44.           for (int i = 0; i < 6; i++) {
  45.             client.print("analog input ");
  46.             client.print(i);
  47.             client.print(" is ");
  48.             client.print(analogRead(i));
  49.             client.println("<br />");
  50.           }
  51.           break;
  52.         }
  53.         if (c == 'n') {
  54.           // we're starting a new line
  55.           current_line_is_blank = true;
  56.         } else if (c != 'r') {
  57.           // we've gotten a character on the current line
  58.           current_line_is_blank = false;
  59.         }
  60.       }
  61.     }
  62.     client.stop();
  63.   }
  64. }

  65. /************************************************/
復制代碼

3.Connet your W5100 board and PC with cable(you may need a crossover cable if you direct connect PC and W5100)
4. Setting your local PC IP
5.You will see PC Local connection show connected and W5100 4 LEDS will turn ON
FULLD,100M,LINK,PWR
If not please try to press RESET button on W5100 Shield.
5.Now you can PING the W5100
6.Visit 192.168.0.15 you can see the test web page


全部資料51hei下載地址:
W5100 網絡擴展板 資料.rar (355.87 KB, 下載次數: 11)

分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

沙發
ID:162514 發表于 2018-10-29 13:36 | 只看該作者
過時了,現在是wifi!
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

手機版|小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 国产主播第一页 | av播播 | www.久久久久久久久久久久 | 日韩中文字幕一区 | 密室大逃脱第六季大神版在线观看 | 欧美精品成人影院 | 麻豆国产精品777777在线 | 日韩成人免费在线视频 | av黄色网 | 中文字幕乱码一区二区三区 | 国产人久久人人人人爽 | 一区二区三区在线 | 国产精品视频免费观看 | 成人深夜小视频 | 看av网 | 狠狠干狠狠操 | 久久久国产精品视频 | 亚洲精品www| 久久久在线视频 | 国产日韩一区二区三免费 | 91视频麻豆| 国产精品久久久久久久久久尿 | 久久亚洲国产精品 | 日韩午夜影院 | 欧美在线一区二区三区 | 91精品中文字幕一区二区三区 | 亚洲成人免费观看 | 黄色网址在线免费播放 | 欧美日韩国产高清 | 欧美精品一区三区 | 青草青草久热精品视频在线观看 | 欧美日韩一区二区三区四区五区 | 国产精品av久久久久久毛片 | 久草视频在线播放 | 瑟瑟视频在线看 | 一区二区免费看 | 欧美精品一区二区三区在线 | 国产伦精品 | 一本岛道一二三不卡区 | 欧美黑人体内she精在线观看 | 欧美日韩高清一区 |