您现在的位置:维库电子市场网 > 元器件 > 印刷线路板

新版 Arduino Ethernet W5100 网络扩展板 SD卡扩展

新版 Arduino Ethernet W5100 网络扩展板 SD卡扩展
新版 Arduino Ethernet W5100 网络扩展板 SD卡扩展
  • 加工定制:

  • 品牌/商标:

    W5100

  • 型号/规格:

    W5100

  • 机械刚性:

    刚性

  • 基材:

  • *缘材料:

    金属基

  • *缘层厚度:

    常规板

  • 阻燃特性:

    V2板

  • 加工工艺:

    电解箔

  • 增强材料:

    玻纤布基

  • *缘树脂:

    酚醛树脂

  • 产品性质:

    新品

普通会员
  • 企业名:陈金炎

    类型:经销商

    电话: 0755-88358258

    联系人:陈金炎

    地址:广东深圳华强北赛格高科德电子市场一楼12300柜

商品信息

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 *og 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-T*e: text/html");
client.println();

// output the value of each *og 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("*og input ");
client.print(i);
client.print(" is ");
client.print(*ogRead(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();

联系方式

企业名:陈金炎

类型:经销商

电话: 0755-88358258

联系人:陈金炎

地址:广东深圳华强北赛格高科德电子市场一楼12300柜

提示:您在维库电子市场网上采购商品属于商业贸易行为。以上所展示的信息由卖家自行提供,内容的真实性、准确性和合法性由发布卖家负责,请意识到互联网交易中的风险是客观存在的。请广大采购商认准带有维库电子市场网认证的供应商进行采购!

电子元器件产品索引: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9