Difference between revisions of "Microduino Update temperature and humidity to Yeelink(LM35, DS18b20, DHT11, SHT10, AM2321)"

From Microduino Wiki
Jump to: navigation, search
 
(2 intermediate revisions by 2 users not shown)
Line 40: Line 40:
 
==Debug==
 
==Debug==
  
Step 1:Set up hardware, as follows:
+
Step 1: Set up hardware, as follows:
 
[[File:Microduino温湿度上传到Yeelink(LM35_DS18b20)连接图.jpg|600px|center|thumb]]
 
[[File:Microduino温湿度上传到Yeelink(LM35_DS18b20)连接图.jpg|600px|center|thumb]]
  
Step 2:Register on yeelink and then enter into [User center], add a device, as follows:
+
Step 2: Register on yeelink and then enter into [User center], add a device, as follows:
 
[[File:yeelink添加设备.jpg|600px|center|thumb]]
 
[[File:yeelink添加设备.jpg|600px|center|thumb]]
  
 
Then generate a API KEY in [my account setting]
 
Then generate a API KEY in [my account setting]
  
Step 3:Add a sensor, one device can add more sensors, click [+ add a sensor] in [Device management], then you can see following picture:
+
Step 3: Add a sensor, one device can add more sensors, click [+ add a sensor] in [Device management], then you can see following picture:
 
[[File:yeelink添加温度传感器.jpg|600px|center|thumb]]
 
[[File:yeelink添加温度传感器.jpg|600px|center|thumb]]
  
Line 56: Line 56:
 
The number behind "Device" is your device ID, the number behind "sensor" is your sensor ID, every user has different ID.
 
The number behind "Device" is your device ID, the number behind "sensor" is your sensor ID, every user has different ID.
  
Step 4:Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.
+
Step 4: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.
  
Step 5:Make up connection and run program.
+
Step 5: Make up connection and run program.
  
Step 6:Then you can see the IP address and data information in serial monitor window, as following picture:
+
Step 6: Then you can see the IP address and data information in serial monitor window, as following picture:
 
[[File:连接到yeelink串口显示信息(LM35_DS18b20).jpg|600px|center|thumb]]
 
[[File:连接到yeelink串口显示信息(LM35_DS18b20).jpg|600px|center|thumb]]
  
Line 66: Line 66:
  
 
==Result==
 
==Result==
In device management, your temperature sensor will be show as following. If there is a value, that means successed.
+
In device management, your temperature sensor will be show as following. If there is a value, that means success.
 
[[File:yeelink温度传感器数据(LM35_DS18b20).jpg|600px|center|thumb]]
 
[[File:yeelink温度传感器数据(LM35_DS18b20).jpg|600px|center|thumb]]
  
Line 90: Line 90:
 
==Debug==
 
==Debug==
  
Step 1:Set up hardware, as follows:
+
Step 1: Set up hardware, as follows:
 
[[File:Microduino温湿度上传到Yeelink(LM35_DS18b20)连接图.jpg|600px|center|thumb]]
 
[[File:Microduino温湿度上传到Yeelink(LM35_DS18b20)连接图.jpg|600px|center|thumb]]
  
 
Step 2: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.
 
Step 2: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.
  
Step 3:Make up connection, and then program.
+
Step 3: Make up connection, and then program.
  
 
Step 4: At this point, you can see the IP address and data information in serial monitor window, as following picture:
 
Step 4: At this point, you can see the IP address and data information in serial monitor window, as following picture:
Line 125: Line 125:
 
==Debug==
 
==Debug==
  
Step 1:Set up hardware, as follows:
+
Step 1: Set up hardware, as follows:
 
[[File:Microduino温湿度上传到Yeelink(DHT11)连接图.jpg|600px|center|thumb]]
 
[[File:Microduino温湿度上传到Yeelink(DHT11)连接图.jpg|600px|center|thumb]]
  
  
Step 2:Add a sensor, one device can add more sensors, click [+ add a sensor] in [Device management], then you can see following picture:
+
Step 2: Add a sensor, one device can add more sensors, click [+ add a sensor] in [Device management], then you can see following picture:
 
[[File:yeelink添加湿度传感器.jpg|600px|center|thumb]]
 
[[File:yeelink添加湿度传感器.jpg|600px|center|thumb]]
  
At this point, you can see the data curve in [Device management], URL's address:
+
At this point, you can see the data curve in [Device management].
http://api.yeelink.net/v1.0/device/4444/sensor/77777datapoints
 
  
 
The number behind "Device" is your device ID, the number behind "sensor" is your sensor ID, every user has different ID.
 
The number behind "Device" is your device ID, the number behind "sensor" is your sensor ID, every user has different ID.
  
Step 3:Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.
+
Step 3: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.
  
Step 4:Make up connection, run program.
+
Step 4: Make up connection, run program.
  
Step 5:At this point, you can see the IP address and data information in serial monitor window, as following picture:
+
Step 5: At this point, you can see the IP address and data information in serial monitor window, as following picture:
 
[[File:连接到yeelink串口显示信息(DHT11).jpg|600px|center|thumb]]
 
[[File:连接到yeelink串口显示信息(DHT11).jpg|600px|center|thumb]]
  
Line 147: Line 146:
  
 
==Result==
 
==Result==
In device management, your temperature sensor will be show as following. If there is a value, that means successed.
+
In device management, your temperature sensor will be show as following. If there is a value, that means it is successful.
 
[[File:yeelink温湿度传感器数据(DHT11).jpg|600px|center|thumb]]
 
[[File:yeelink温湿度传感器数据(DHT11).jpg|600px|center|thumb]]
  
Line 170: Line 169:
 
==Debug==
 
==Debug==
  
Step 1:Set up hardware, as follows:
+
Step 1: Set up hardware, as follows:
 
[[File:Microduino温湿度上传到Yeelink(AM2321)连接图.jpg|600px|center|thumb]]
 
[[File:Microduino温湿度上传到Yeelink(AM2321)连接图.jpg|600px|center|thumb]]
  
Step 2:Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.
+
Step 2: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.
  
Step 3:Make up connection, run program.
+
Step 3: Make up connection, run program.
  
Step 4:At this point, you can see the IP address and data information in serial monitor window, as following picture:
+
Step 4: At this point, you can see the IP address and data information in serial monitor window, as following picture:
  
 
[[File:连接到yeelink串口显示信息(AM2321).jpg|600px|center|thumb]]
 
[[File:连接到yeelink串口显示信息(AM2321).jpg|600px|center|thumb]]
Line 185: Line 184:
 
==Result==
 
==Result==
  
In device management, your temperature sensor will be show as following. If there is a value, that means successed.
+
In device management, your temperature sensor will be show as following. If there is a value, that means it is successful.
 
[[File:yeelink温湿度传感器数据(AM2321).jpg|600px|center|thumb]]
 
[[File:yeelink温湿度传感器数据(AM2321).jpg|600px|center|thumb]]
  
  
At last you can see your device in google map from link http://www.yeelink.net/explore, as following picture:
+
At last you can see your device in google map from link http://www.yeelink.net/explore, as following picture:
 
[[File:Yeelink地图显示设备.jpg|600px|center|thumb]]
 
[[File:Yeelink地图显示设备.jpg|600px|center|thumb]]
  
Line 195: Line 194:
 
==Video==
 
==Video==
  
Microduino temperature and humiidty update to Yeelink(LM35):
 
 
http://v.youku.com/v_show/id_XNjk4NDI5NTE2.html
 
 
Microduino temperature and humiidty update to Yeelink(DS18b20):
 
 
http://v.youku.com/v_show/id_XNjk4NDI5NTE2.html
 
 
Microduino temperature and humiidty update to Yeelink(DHT11):
 
 
http://v.youku.com/v_show/id_XNjk4NDI3ODky.html
 
 
Microduino temperature and humiidty update to Yeelink(AM2321):
 
  
http://v.youku.com/v_show/id_XNjk4NDI1NTY4.html
 
  
  
 
|}
 
|}

Latest revision as of 10:18, 28 September 2016

Language: English  • 中文

Objective

This tutorial will introduce the yeelink (http://www.yeelink.net/) which is a famous internet things platfrom. We will update the temperature and humidity data got from LM35, DS18B20, DHT11, SHT10 and AM2321 to yeelink via the Microduino-RJ45 and Microduino-ENC28J60 module.

Equipment

Experiment 1 (LM35)

Schematic

Microduino温湿度上传到Yeelink(LM35)原理图.jpg
  • Microduino-RJ45
  • Microduino-ENC28J60
  • Microduino-Core
  • Microduino-FT232R

Stack all of them, and then connect the LM35 and ethernet cable.

Program

Refer to yeelink_LM35_DS18b20

Debug

Step 1: Set up hardware, as follows:

Microduino温湿度上传到Yeelink(LM35 DS18b20)连接图.jpg

Step 2: Register on yeelink and then enter into [User center], add a device, as follows:

Yeelink添加设备.jpg

Then generate a API KEY in [my account setting]

Step 3: Add a sensor, one device can add more sensors, click [+ add a sensor] in [Device management], then you can see following picture:

Yeelink添加温度传感器.jpg

At this point, you can see the data curve in [Device management].


The number behind "Device" is your device ID, the number behind "sensor" is your sensor ID, every user has different ID.

Step 4: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.

Step 5: Make up connection and run program.

Step 6: Then you can see the IP address and data information in serial monitor window, as following picture:

连接到yeelink串口显示信息(LM35 DS18b20).jpg

At last, you can check the data in yeelink.

Result

In device management, your temperature sensor will be show as following. If there is a value, that means success.

Yeelink温度传感器数据(LM35 DS18b20).jpg



Experiment 2 (DS18b20)

Schematic

Microduino温湿度上传到Yeelink(DS18b20)原理图.jpg
  • Microduino-RJ45
  • Microduino-ENC28J60
  • Microduino-Core
  • Microduino-FT232R

Stack all of them, and then connect the DS18B20 and ethernet cable.

Program

Refer to yeelink_LM35_DS18b20

Debug

Step 1: Set up hardware, as follows:

Microduino温湿度上传到Yeelink(LM35 DS18b20)连接图.jpg

Step 2: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.

Step 3: Make up connection, and then program.

Step 4: At this point, you can see the IP address and data information in serial monitor window, as following picture:

连接到yeelink串口显示信息(LM35 DS18b20).jpg

At last, you can see the temperature data in yeelink.

Result

In device management, your temperature sensor will be show as following. If there is a value, that means successed.

Yeelink温度传感器数据(LM35 DS18b20).jpg


Experiment (DHT11)

Schematic

Microduino温湿度上传到Yeelink(DHT11)原理图.jpg
  • Microduino-RJ45
  • Microduino-ENC28J60
  • Microduino-Core
  • Microduino-FT232R

Stack all of them, and then connect the DHT11 and ethernet cable.

Program

Refer to yeelink_DHT11

Debug

Step 1: Set up hardware, as follows:

Microduino温湿度上传到Yeelink(DHT11)连接图.jpg


Step 2: Add a sensor, one device can add more sensors, click [+ add a sensor] in [Device management], then you can see following picture:

Yeelink添加湿度传感器.jpg

At this point, you can see the data curve in [Device management].

The number behind "Device" is your device ID, the number behind "sensor" is your sensor ID, every user has different ID.

Step 3: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.

Step 4: Make up connection, run program.

Step 5: At this point, you can see the IP address and data information in serial monitor window, as following picture:

连接到yeelink串口显示信息(DHT11).jpg

At last, you can see the temperature data in yeelink.

Result

In device management, your temperature sensor will be show as following. If there is a value, that means it is successful.

Yeelink温湿度传感器数据(DHT11).jpg

Experiment 4(AM2321)

Schematic

Microduino温湿度上传到Yeelink(AM2321)原理图.jpg
  • Microduino-RJ45
  • Microduino-ENC28J60
  • Microduino-Core
  • Microduino-FT232R
  • Microduino-Weatherstation

Stack all of them, and then connect to ethernet cable.

Program

Refer to yeelink_AM2321

Debug

Step 1: Set up hardware, as follows:

Microduino温湿度上传到Yeelink(AM2321)连接图.jpg

Step 2: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE.

Step 3: Make up connection, run program.

Step 4: At this point, you can see the IP address and data information in serial monitor window, as following picture:

连接到yeelink串口显示信息(AM2321).jpg

At last, you can see the temperature data in yeelink.

Result

In device management, your temperature sensor will be show as following. If there is a value, that means it is successful.

Yeelink温湿度传感器数据(AM2321).jpg


At last you can see your device in google map from link http://www.yeelink.net/explore, as following picture:

Yeelink地图显示设备.jpg


Video