| With the continuous acceleration of my country’s urbanization process,the area of arable land has gradually decreasing,and the centralization of agricultural planting land has become a general trend.Traditional farming methods have been unable to meet the needs of our society today.At present,most agricultural greenhouses adopt wired transmission and short-distance wireless communication methods to conduct environmental monitoring and equipment control for a single greenhouse.There are problems such as short communication distance,complex networking,and greater influence from the network environment.In response to the above problems,this article uses the Internet of Things technology as a carrier,combined with sensor technology,embedded technology and wireless communication technology,to design and implement a set of intelligent agricultural greenhouse control systems based on the Internet of Things.First,the development status of smart agriculture and related technologies are explained.According to the specific needs of the system,the overall architecture of the system is designed.The system can be divided into four information collection nodes,data transmission nodes,execution equipment control nodes,and remote monitoring nodes.In this part,LoRa wireless communication technology is used to realize data transmission between nodes.Then,the overall architecture of the hardware part of the system is designed,and the main controller,acquisition sensor,LoRa module,Wi-Fi module and GPRS module of each node in the system are selected and the peripheral circuit design is carried out.At the same time,the STM32F103C8T6 minimum system circuit was designed using Altium Designer software,PCB drawing and welding were completed,and a control box for controlling 380 V motor equipment was designed and manufactured,which can control rolling shutters,fans and other equipment.Then,using Keil5 software to design and compile the STM32 MCU program of each node,the LoRa networking mode and data transmission mode were improved,the development of the intelligent decision-making program was completed,and the program flow chart of the function modules of each node was drawn.Then,a Web information management system based on the B/S architecture was designed.The front-end development uses vue.js,Element UI and Echarts technologies,and the back-end development uses Spring Boot and Mybatis-Plus frameworks,which can realize real-time monitoring of environmental information in the greenhouse and query historical records.As well as the management of the greenhouse and other functions.The user can manually control the execution equipment in the shed,or turn on the automatic control mode to achieve a more scientific management of the shed.If there is an abnormal situation in the equipment,it will be reported in time to facilitate subsequent maintenance work.Finally,the system was built as a whole,and the main functions and stability of each part were tested separately,with emphasis on testing the LoRa wireless communication performance and the Web information management system.The test results show that the system has complete functions and good stability.It solves the problems of traditional wireless communication methods such as short communication distance,complex networking,and message collisions when multiple transmissions and receptions are performed.It can meet the needs and has good application prospects. |