SD卡扩展板 ARDUINO Ethernet W5100网络扩展板 For Arduino
信息编号:2886806 浏览:545次- 供应商
- 深圳市弯弯树技术开发有限公司 商铺
- 认证
- 报价
- 请来电询价
- 类型
- 品牌
- WWS
- 型号
- W5100
- 所在地
- 深圳市龙华新区龙华街道民清路9号龙华公寓D3303室
- 手机号
- 13266550639
- 联系人
- 刘光超 请说明来自顺企网,优惠更多
- 让卖家联系我
产品详细介绍
以w5100为核心的arduinoethernet网络扩展模块,可以使arduino成为简单的web服务器或者通过网络控制读写arduino的数字和模拟接口等网络应用。可直接使用ide中的ethernet库文件便可实现一个简单web服务器。
同时该版本的支持mini
sd卡(tf卡)读写,功能强悍,不容错过!
该扩展板采用了可堆叠的设计,可直接插到arduino上,同时我们的其他扩展板也可以插上去。
arduino
ethernet网络扩展模块与arduino uno 控制器
arduino
ethernet网络扩展模块与arduino mega2560控制器
ide中的实验代码:
/*
* 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();
}
}
本产品的类型是单片机,品牌是WWS,型号是W5100,功率是5V,用途是网络应用,封装是ip