洋天科技洋天科技
公司簡介訂購方式匯款確認檔案下載 聯絡我們保固說明訂單查詢討論區
電子郵件:

密碼:

忘記密碼
加入會員
  首頁 | 原廠 Arduino® | 特殊服務設計 | 轉接座及轉接板/麵包板 | 開發板/燒錄器/模擬器 | 相容 For Arudino® 週邊及配件 | 旭日 RDK開發板 系列 | OKdo系列 | Saleae 系列 | Adafruit 系列 | ArduCam 系列 | Camera 攝像頭 | ROCK 系列 | Debix系列開發板 | Raspberry Pi 樹莓派 | Banana Pi 香蕉派 | BeagleBone 狗骨頭 | M5Stack系列 | Micro:bit (BBC)系列 | NVIDIA Jetson Nano系列 | Pololu 系列 | Pycom 系列 | Seeed 系列 | Sparkfun 系列 | WeMos 系列 | 傳感器 | Cubieboard/CubieTruck系列 | Firefly 系列 | Microduino系列 | Orange Pi 香橙派 | PCB板 | PLC 系列 | Robot 機器人 | UDOO 系列 | RedBearLab 系列 | LattePanda系列 | LittleBits 系列 | Libelium 系列 | Luxonis 相機系列 | PCduino | RobotElectronics 系列 | MageDok 顯示屏 | LCD/LCM/TFT/LVDC | Dimension Engineer 系列 | 通訊模組 | 影音器材(含轉換器) | 線材/連結器/轉換器 | 測量儀器 | 馬達/馬逹控制器/電源模組 | 其他 | 焊接/維修工具 | IC零件 | LED燈-裝飾燈 | 工作站迷你電腦 mini PC | 擴大器 | 雕刻機 | 電池 | 電腦周邊 | AI 顯卡 | 停售商品
  首頁 » 商品目錄 » 相容 For Arudino® 週邊及配件 » 50135776
商品搜尋 進階
 |  購物車內容  |  結帳   
商品分類
  For Arduino® book 書
  For Arduino® LCD 屏
  For Arduino® RGB LED模組
  For Arduino® SD卡模組
  For Arduino® 傳感器模塊
  For Arduino® 套件/套餐
  For Arduino® 學習套件
  For Arduino® 按鍵 按鈕模塊 搖桿
  For Arduino® 控制板
  For Arduino® 擴展板
  For Arduino® 繼電器
  For Arduino® 車
  For Arduino® 電機 馬達 驅動
  Makeblock mBot 系列
  MiCOKit 銀爾達
  NodeMcu Lua系列
  WRTnode系列
  電源模塊
  For Arduino® 外殼/壓克力板/麵包板/杜邦線/配件
Arduino
Pololu
Seeed
Sparkfun
robot-electronics
dimensionengineering
libelium
adafruit
udoo
redbearlab
Arducam
goembed
Saleae
okdo
服務台
公司簡介
退換貨服務
訂購方式
聯絡我們
匯款確認
[<< 前一頁]  瀏覽相同分類產品 132 / 438  [下一頁 >>]
●(DFR-ADW51) Ethernet W5100網路擴展板mini SD卡 For Arduino®
NT$750
運費NT$50
條碼50135776
產品說明1

資料下載請點我一下

資料下載地址:

http://www.kuaipan.cn/file/id_121557448606624567.htm

Arduino Ethernet  W5100網絡擴展模組,可以使Arduino成為簡單的Web服務器或者通過網絡控制讀寫Arduino的數字和模擬接口等網絡應用。可直接使用IDE中的Ethernet庫文件便可實現一個簡單Web服務器。

    同時該版本的支持mini SD卡(TF卡)讀寫

該擴展板採用了可堆疊的設計,可直接插到Arduino上,同時我們的其他擴展板也可以插上去。

代碼:

/*
 * Web Server
 *
 * A simple web server that shows the value of the analog input pins.
 */

 #include

 byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip[] =  { 192, 168, 0, 15 };

Server server(80);

void setup()
{
  Ethernet.begin(mac, ip);
  server.begin();
}

void loop()
{
  Client client = server.available();
  if (client) {
    // an http request ends with a blank line
    boolean current_line_is_blank = true;
    while (client.connected()) {
      if (client.available()) {
        char c = client.read();
        // if we've gotten to the end of the line (received a newline
        // character) and the line is blank, the http request has ended,
        // so we can send a reply
        if (c == 'n' && current_line_is_blank) {
          // send a standard http response header
          client.println("HTTP/1.1 200 OK");
          client.println("Content-Type: text/html");
          client.println();
         
          // output the value of each analog input pin
          client.print("welcome to tinyos");
          client.println("
");
          client.print("//*************************************");
          client.println("
");
          client.print(
www.tinyos.net.cn);
          client.println("
");
          client.print("//*************************************");
          client.println("
");
          for (int i = 0; i < 6; i++) {
            client.print("analog input ");
            client.print(i);
            client.print(" is ");
            client.print(analogRead(i));
            client.println("
");
          }
          break;
        }
        if (c == 'n') {
          // we're starting a new line
          current_line_is_blank = true;
        } else if (c != 'r') {
          // we've gotten a character on the current line
          current_line_is_blank = false;
        }
      }
    }
    client.stop();
  }
}

問與答

目前沒有任何商品問答!
本商品上架日期:2013-04-29.
評價
建議購買的商品清單!可以參考看看喔
●(金色)SW-520D 角度傳感器模塊 滾珠震動開關 傾斜傳感器 (3針)
●(金色)SW-520D 角度傳感器模塊 滾珠震動開關 傾斜傳感器 (3針)
#LY-KREE K482403 (鐵殼 中鋁殼),36V 48V(最大60V) 轉 24V 3A 72W 降壓模塊 電源
#LY-KREE K482403 (鐵殼 中鋁殼),36V 48V(最大60V) 轉 24V 3A 72W 降壓模塊 電源
#LY-KREE DL482415 (大鋁殼),36V 48V(最大60V) 轉24V 15A 降壓模塊 電源 74*74*32
#LY-KREE DL482415 (大鋁殼),36V 48V(最大60V) 轉24V 15A 降壓模塊 電源 74*74*32
大特價(台製) Uno R3 開發板 (DFR533) For Arduino®
大特價(台製) Uno R3 開發板 (DFR533) For Arduino®
購物車 更多
空的...
查詢訂單狀態
 
請輸入您的訂單編號
商品通知狀態 更多
通知●(DFR-ADW51) Ethernet W5100網路擴展板mini SD卡 For Arduino®
更新時通知我
推薦給朋友
 
推薦這個商品給朋友

聯絡方式:手機:0933807110 或 0968222607
E-mail:i0104@ms13.hinet.net(主要信箱) & i03070309@yahoo.com.tw(次要) & a_te0307@hotmail.com & A9215017@mail.ntust.edu.tw & r94922042@ntu.edu.tw