| This paper is based on the research of indoor temperature collector in the Internet of things.This design is applied to the application electronic professional training room managed by the author.In the course of writing the paper,the middle school that the author works in is in the stage of the development of the application electronic specialty transformation into the Internet of Things technology,so the research of the Internet of Things technology is added to this design.This design mainly collects indoor temperature data through the Internet of Things technology,processes the temperature data and sends it to the administrator,so as to achieve the purpose of remote monitoring of temperature in the training room.Because the Internet of things technology is based on the data collected by sensors,the author builds up the sensor resource base with the existing teaching cloud platform of the middle vocational school.This design selects the type of temperature sensor from the sensor resource base,and then carries out the design work with the actual application environment.This design follows the principle of modular design.After formulating the overall design idea,the hardware and software design is carried out from the author's actual teaching and working environment equipment resources.According to the application environment and design requirements,this design consists of two parts: hardware and software.Hardware design from the sensor resources to select the temperature sensor,and give full consideration to the content of the course taught in the work,through the simple operation and principle of easy to understand components of the hardware circuit design,in order to apply this design to teaching work in the future.The software part design takes the opportunity of the professional transformation of the middle school students I work in as an opportunity to make full use of the resources of the Internet of Things technology.Starting from the characteristics of the Internet of Things structure,the Internet of Things is combined with WebSocket,TCP/IP protocols,etc..The software environment is designed to meet the demand of indoor temperature collection.Based on the existing resources,this design designs an Internet of Things temperature collector that meets the management conditions of the training room,and applies the design results to the future work after the design is completed.The hardware part of this design is composed of STC89C52 microcontroller.The peripheral circuit includes DS18B20 temperature collection module,W5100 Ethernetmodule and LCD1602 display module.The software part is mainly consists of the client,database and server.In this design,the temperature sensor obtains indoor real-time temperature data from the actual training room.After processing by MCU terminal,the temperature data is transferred from W5100 Ethernet module to the server,and the server holds the data and transmits it to the database for temperature data statistics.The Web client and the server communicate through WebSocket,pushing real-time temperature data to Web client for display.After the Web client receives the temperature data pushed by the server,the Web page updates the temperature data in real time,and displays the temperature changes 24 hours a day on the Web page through eCharts chart.The administrator of the training room can learn about the room temperature of the training room through the landing page of the computer or mobile electronic equipment.If the actual training room temperature exceeds the rated temperature,the information will be pushed to the administrator in time,so that the administrator can respond to the emergency. |