Difference between revisions of "Microduino Update temperature and humidity to Yeelink(LM35, DS18b20, DHT11, SHT10, AM2321)"
(2 intermediate revisions by 2 users not shown) | |||
Line 40: | Line 40: | ||
==Debug== | ==Debug== | ||
− | Step | + | 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 | + | 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 | + | 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 | + | Step 4: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE. |
− | Step | + | Step 5: Make up connection and run program. |
− | Step | + | 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 | + | 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 | + | 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 | + | 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 | + | Step 1: Set up hardware, as follows: |
[[File:Microduino温湿度上传到Yeelink(DHT11)连接图.jpg|600px|center|thumb]] | [[File:Microduino温湿度上传到Yeelink(DHT11)连接图.jpg|600px|center|thumb]] | ||
− | Step | + | 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] | + | 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. | The number behind "Device" is your device ID, the number behind "sensor" is your sensor ID, every user has different ID. | ||
− | Step | + | Step 3: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE. |
− | Step | + | Step 4: Make up connection, run program. |
− | Step | + | 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 | + | 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 | + | Step 1: Set up hardware, as follows: |
[[File:Microduino温湿度上传到Yeelink(AM2321)连接图.jpg|600px|center|thumb]] | [[File:Microduino温湿度上传到Yeelink(AM2321)连接图.jpg|600px|center|thumb]] | ||
− | Step | + | Step 2: Modify the API KEY, deviceID and sensorID to your own ID in code, and copy to IDE. |
− | Step | + | Step 3: Make up connection, run program. |
− | Step | + | 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 | + | 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 | + | 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== | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} |
Latest revision as of 10:18, 28 September 2016
Language: | English • 中文 |
---|
ContentsObjectiveThis 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
Stack all of them, and then connect the LM35 and ethernet cable. ProgramRefer to yeelink_LM35_DS18b20 DebugStep 1: Set up hardware, as follows: Step 2: Register on yeelink and then enter into [User center], add a device, as follows: 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: At this point, you can see the data curve in [Device management].
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: At last, you can check the data in yeelink. ResultIn device management, your temperature sensor will be show as following. If there is a value, that means success.
Experiment 2 (DS18b20)Schematic
Stack all of them, and then connect the DS18B20 and ethernet cable. ProgramRefer to yeelink_LM35_DS18b20 DebugStep 1: Set up hardware, as follows: 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: At last, you can see the temperature data in yeelink. ResultIn device management, your temperature sensor will be show as following. If there is a value, that means successed.
Experiment (DHT11)Schematic
Stack all of them, and then connect the DHT11 and ethernet cable. ProgramRefer to yeelink_DHT11 DebugStep 1: Set up hardware, as follows:
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: At last, you can see the temperature data in yeelink. ResultIn device management, your temperature sensor will be show as following. If there is a value, that means it is successful. Experiment 4(AM2321)Schematic
Stack all of them, and then connect to ethernet cable. ProgramRefer to yeelink_AM2321 DebugStep 1: Set up hardware, as follows: 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: At last, you can see the temperature data in yeelink. ResultIn device management, your temperature sensor will be show as following. If there is a value, that means it is successful.
Video |