Microduino Update temperature and humidity to Yeelink(LM35, DS18b20, DHT11, SHT10, AM2321)
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 |