Support: [email protected]
More Views

The Ethernet W5100 network expansion board SD card expansion

CC1212130143

Available

Quick Overview

Seller Name : Mod N Shields
Best Quality Wholesale Price
Rs616.00
Cash-On-Delivery: Not Available for this product

OR

Details

Product Details

Arduino compatible Ethernet W5100 network expansion module, Arduino compatible can become a simple Web server or a network control to read and write Arduino compatible digital and analog interface and other network applications. IDE can be used directly in the Ethernet library files can be achieved with a simple Web server.

Meanwhile, the version of the mini SD card support?TF card?Read and write, features powerful, not to be missed!

The expansion board uses a stackable design, it can be directly plugged into the Arduino compatible , while our other expansion boards can also plug in to.

IDE The experiment 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 line
// 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 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 ();
)
)


Related Images









Additional Information

SKU CC1212130143
Cash on Delivery No

Product Tags

Use spaces to separate tags. Use single quotes (') for phrases.

Don't Miss Out

Stay up-to-date with the latest news, hottest trends and new arrivals direct to your inbox