New Version Arduino Ethernet W5100 Network Expansion Board Mini SD TF Card

Customer Review 0Review(s) | Product Details
218 Units in Stock
Price :
US$8.81



Quantity: - +
Total :
US$8.81
VIP Center Learn more 0
Silver VIP 3% off
Gold VIP 5% off
PLATINUM vip 10% off


Introduction

By using Arduino Ethernet W5100 network extension module, we can make the Arduino becomea simple Web server or Arduino digital and analog interface control, speaking,reading and writing through the network and other network applications. We candirectly use the IDE of the Ethernet library files to realize a simple Webserver. At the same time, this version supports mini SD card (TF card) to readand write. The extension board can be stacked, and directly inserted into theArduino board. Furthermore, other similar extension board can also be pluggedup.

Features

l  Can be realized as a server easily

l  Support mini SD/TF card

l  Can be stacked easily,

l  And compatible with other extensionboard

 

Specifications

l  Mini SD TF card

l  Ethernet interface

 

Package List

Number

Name

Specification

Quantity

Note

1

W5100

Normal

1

None






Warm Prompt


 

Note

 

ArduinoW5100 Ethernet CODE

/*

 * Web Server

 *

 * A simple web server that shows the value ofthe analog input pins.

 */

 

#include

 

bytemac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };

byteip[] =  { 192, 168, 0, 15 };

Serverserver(80);

voidsetup()

{

  Ethernet.begin(mac, ip);

  server.begin();

}

 

voidloop()

{

  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 theline (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 responseheader

          client.println("HTTP/1.1 200OK");

          client.println("Content-Type:text/html");

          client.println();

        

          // output the value of each analoginput pin

          client.print("welcome totinyos");

          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 thecurrent line

          current_line_is_blank = false;

        }

      }

    }

    client.stop();

  }

}

Pictures

 


Reviews

Create your own review

You can get 5 SmartArduino Points by commenting on the products( Login first ).

User Name: *
Comment Rank: 1 2 3 4 5 *
Confirm Text: captcha *
Content: *