###### Thanks in advance to Lichuang for giving us the opportunity to learn and develop IoT sockets. From the study, I initially understood the development process of the Internet of Things socket. Everyone in the training camp advanced class group is very enthusiastic, exchanging hardware, rewriting code, helping each other, and learning spirit 6666666666666666. I learned a lot from it.
###### Special thanks to the two elders for their guidance and help. The hardware design and code were completed under the guidance of Song Gong from the Internet of Things Zero Demon. The automatic temperature control was realized with the help of teacher Xie Zhaoyan. I only made a few changes. The work can realize temperature display, manual control and automatic temperature control.
###### System software: The 51 microcontroller uses the AT command of the Alibaba Feiyan Cloud platform to realize remote control of the relay switch on and off and automatic temperature control by the mobile phone f Cloud Smart APP.
##### A brief introduction to the main hardware is as follows:
##### 1. Introduction to the EMW3080 module:
######
######
###### ![20180816174538932.png]

#### ## **2. STC15W4K48S4** single-chip microcontroller comes with Lichuang Mall connection:
###### [https://item.szlcsc.com/88433.html](https://item.szlcsc.com/88433. html)
###### ![86DA3C243328E1E27182ECBB8BF892DB.jpg]

######
##### 3. For more hardware and sensors, please see the schematic diagram and the introduction below.
##### Main instructions of the circuit board:
![3.jpg]

##### Indicator description:
LED1 flashes once to indicate the microcontroller data transmission;
LED2 flashes once to indicate receipt of Alibaba Cloud data,
LDE3 is always on for automatic temperature control, if it does not light up, it means manual control.
If LED4 flashes slowly, it is not connected to the Internet. If it stays on, it means the connection is successful. If it flashes quickly, it means Wifi pairing mode. (If pairing fails within one minute, it will automatically enter AP mode.)
Because it is the first time to learn the IoT switch, two sets of serial port jumper pins are added to the circuit board to facilitate serial port data monitoring and program adjustment.
##### Main Alibaba Cloud function definitions, burning attachment code can achieve automatic temperature control.
##### ![12.png]

##### Mobile APP interface
![2.jpg]

##### Actual picture
![1.jpg]

#### Currently, relay switch can be used for simple temperature control Function. PID temperature control will be added in the future to achieve precise temperature control, temperature alarm and other functions.
######
######
######