Small and micro gates are important water conservancy facilities for informatization and automation in irrigation areas,and the informatization of small gates is one of the important technical means of water conservancy and agricultural modernization.Based on network communication technology,image recognition technology,fuzzy control technology and embedded technology,this thesis studies a small integrated gate control system of measurement and control,which can remotely monitor the gate status and perform automatic gate control through a computer or mobile phone.Based on the embedded processor and 4-Generation(4G)communication module,this thesis designs the hardware controller of the measurement and control integrated gate system,which solves the problems that the traditional Programmable Logic Controller(PLC)cannot meet the remote program upgrade and the adaptation of various non-standard protocol sensors.This thesis also completes the design and development of the background device management software,the Web-based front-end user platform and the application software of the mobile phone.Besides,this thesis proposes a method of identifying the water level before and after the gate based on video stream and produces a water level data set based on the water scale in multiple scenes and trains the neural network model.Moreover,this thesis realizes the control of the over-gate flow based on the fuzzy algorithm on the remote platform,and solves the closed-loop control of the integrated measurement and control gate measurement and control.The thesis completes the hardware design of integrated gate controller based on embedded processor and 4G communication module.The system hardware consists of power supply system,gate controller and water condition monitoring equipment.The gate controller is developed based on STM32F103,uses Air724 UG chip to achieve 4G communication,and uploads the gate status and water conditions before and after the gate to the local server.The thesis completes the design of background equipment management software,Web-based front-end user platform and mobile phone application software.The software part of this system adopts the development method of front-end and back-end separation,which decouples the front-end and back-end functions to improve the development efficiency.The front-end of the integrated measurement and control gate system based on web development enables users to intuitively see the state of the gate and the water regime data before and after the gate,and perform remote measurement and control of the gate.The data acquisition terminal management platform developed based on C# is mainly responsible for the analysis and storage of the data uploaded from the integrated gate controller and the remote configuration of the acquisition equipment.Aiming at the problems of high equipment cost and difficult maintenance existing in the existing traditional water level detection technology,a visual-based water level recognition method is adopted.By using the real-time picture provided by the camera monitoring the state of the gate,the YOLOv4 algorithm is used to identify the water gauge scale in the picture.This thesis also improves the speed of image processing and the efficiency of image recognition by combining traditional image processing algorithms.Aiming at the problem that the rapid change of the flow through the gate caused by the change of the water level before the gate cannot be discovered by the measurement and control personnel in time,this system proposes a constant current control method based on fuzzy control.Based on the experience of operators or experts,a series of rules are set for gate opening control.The deviation between the target over-gate flow value and the actual value and the rate of change of the deviation are used as the system input,and the gate opening is used as the output to realize constant current control.At present,the system has been put into use in more than 70 monitoring points in Chengdu,Sichuan Province and has been running stably for nearly a year.The practical results show that the system can effectively ensure the more reliable and stable operation of the gate control,and the constant current control can control the over-gate flow within the expected flow range of ±0.005m3/s in practical applications,and has achieved good control results. |