You are on page 1of 11

:

:
Arduino

WWW
SMTP

USB

Arduino UNO
DHT11

Ethernet Shield

WWW
SMTP

Internet

()

[6]
3

10cm

[ 7]

()
DHT11 (
4 ) DHT 2090% RH
0505.0%RH
0+502.0 5 [ 8]
DHT11

12*15.5*5.5mm

4 DHT11

5 DHT11 [ 9]

() Arduino UNO
1. Arduino
Arduino 11
Arduino

Arduino
Arduino I/O
Arduino
Arduino

Google Youtube
Arduino
Arduino [ 10]
2. Arduino
1
IDE Arduino

Arduino
Arduino
Arduino

6 Arduino
() Arduino Ethernet Shield
Adriano internet
wizent W5100 TCP UDP
PIN Adriano

osi 8

8 Arduino Etherne Shield


[ 4]

7 WiznetW5100 [ 5]
() Arduino Ethernet WiznetW5100
7 TCP
UDP TCP
UDP
5

TCP ICMP
Tx/Rx Buffer
RS232 1 bit
1 Byte 1 Byte

RJ45

RJ45 hub [ 5]

Arduino C
HTML ASP
PC
IEChrome
1. http://www.arduino.cc/
2. http://www.w3schools.com/

()

()
LED
LED 1
2 ( 9
10 )

LED
9

10 LED

LED

( 11 ) SMTP
( 12 )
( 13 )

12
11

13
()
1
(
14 15 )

14

15


byte
byte
byte
byte
char

mac[] = { 0x90, 0xA2, 0xDA, 0x00, 0xFB, 0x30 };


ip[]={10,0,6,20};
// IP
dns_server[]={210,70,131,1};
// DNS
gateway[]={10,0,6,254};
// IP
serverName[] = "210.70.131.46";// IP

void loop()
{
if ((millis()-timeSeconds) > 60000)

//record a data per 60000ms(60s)

{
timeSeconds=millis();
chk = DHT11.read(DHT11PIN);
switch (chk)
{
case 0: SendStr="p=3&status=HT&humi=";
SendStr += DHT11.humidity;
SendStr += "&temp=";
SendStr += DHT11.temperature;
postPage(SendStr);
break;
case -1: Serial.println("Checksum error"); break;
case -2: Serial.println("Time out error"); break;
default: Serial.println("Unknown error"); break;
}
}
}


()
Arduino Uno

e-mail

1. Arduino http://arduino.cc/en/Main/arduinoBoardUno(ARDUINO
)2013 3 27
2. Arduino Cookbook ( )Michael Margolis
2012 10
3. Arduino
2011 3
4. Arduino Ethernet google
5. Adriano Ethernet Board
http://arduino.tw/allarticlesindex/bt-rfid-xbee-ir/243-ethernet-board.html

6. www.lib.wfu.edu.tw/files/
.pdf2013 3 27
7. www.auto.fcu.edu.tw/wSite/public/
Attachment/f1256196774942.pdf2013 3 27
8. DHT11
http://www.89idea.com/shop/goods.php?id=142013 3 27
9. DHT11 Arduino
http://www.saperel.com/DHT-11%20Senzor%20temperature%20i%20vla%C5%B
Enosti2013 3 27
10. Arduino
http://140.138.40.170/articlesystem/article/compressedfile/(2011-11-18)%20Arduino%
20%E7%B0%A1%E4%BB%8B%E8%88%87%E8%BB%9F%E9%AB%94%E5%AE
%89%E8%A3%9D.pdf2013 3 27

10

You might also like