Microduino Update temperature and humidity to Yeelink(LM35, DS18b20, DHT11, SHT10, AM2321)

From Microduino Wiki
Revision as of 15:22, 15 April 2014 by Jasonsheng (talk) (Created page with "{{Language | Microduino 温湿度上传到Yeelink(LM35, DS18b20, DHT11, SHT10, AM2321)}} {| style="width: 800px;" |- | ==Objective== This tutorial will introduce the yeelink (...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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], URL's address: 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.

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 successed.

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], URL's address: 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.

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 successed.

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 successed.

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

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