Smart Electronics ~Ethernet Shield W5100, Network/SD card expansion board module for UNO R3

FOB Reference Price:Get Latest Price
$4.80 - $20.00 / Pieces | 1 Piece/Pieces (Min. Order)
Report Suspicious Activity
Overview
Quick Details
Place of Origin:
Guangdong, China
Brand Name:
Smartbes
Model Number:
Module
Color:
Picture
Supply Ability
Supply Ability:
10000 Piece/Pieces per Month
Packaging & Delivery
Packaging Details
vaccum
Port
Shenzhen
universal

 

The Arduino Ethernet W5100 network expansion module enables the Arduino to be a simple web server or to control the network applications such as the digital and analog interfaces of the Arduino through network control. A simple web server can be implemented directly using the Ethernet library files in the IDE.

    At the same time, this version supports mini SD card (TF card) reading and writing. The expansion board adopts a stackable design, which can be directly inserted into the Arduino, and our other expansion boards can also be plugged in.

Code:

/* 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();
  }
}

 

 

 

Send Message to us:

 

  • Part Number | Package Type | Quantity are needed if you send mesages to us
  • Send all models you are looking for to us, we can quote all of them.
  • Welcome to attach Purchase / Factory BOM

 

 

 

 

 

 

*Well and high quality control
*Prompt delivery
*Small order acceptable
*Perfect craft procedure
*Customer's designs are welcome