| In recent years,with the increasing emphasis on agricultural development by the state,agricultural development has also advanced by leaps and bounds.China’s agricultural irrigation technology is gradually becoming mature,and is developing in the direction of automation and informationization.However,the research on the standard of drainage and the development of drainage technology are relatively lagging.The development of agriculture is inseparable from irrigation and cannot be separated from drainage.In order to precisely and accurately carry out farmland waterlogging,it is necessary to actively study the farmland drop-reducing model and vigorously construct integrated farmland and water-reducing equipment,aiming at the development of the original artificially controlled dredging drainage system towards automation and informationization.That enables real-time monitoring and control.Based on the existing domestic and international water-reducing drainage standards,combined with the weather conditions and groundwater dynamics of the study area,this article studies the local farmland drop-reduction model,and designs the integrated monitoring and control device for the self-discharge with STM32 as the main controllerIn this article,the hardware design and software development of the integrated measurement and control device for the self-discharge scheduling of sedimentation are the main research objectives and contents.At the same time,combined with the farmland dewatering model,the device can realize the flow regulation control of the groundwater level,and can also integrate the strong drainage pump station,to achieve the integration of the function of self-discharge and scheduling.As the main controller of the design of the self-discharge integrated measurement and control device,the CPU needs to meet the characteristics of low power consumption,fast response and numerous input and output ports.Therefore,we chose an ARM chip that is cost-effective by ST and whose core is Cortex-M3-STM32F103ZET6 Because the data of groundwater depth,precipitation,evaporation and 50cm soil water content need to be collected,and data interaction with the platform is required,this project also includes power modules,data acquisition modules,motor drive modules and communication functional module.The software system makes full use of the internal resources of STM32F103ZET6.On the basis of the built-in external hardware circuit,the main program,ADC sampling subroutine,motor driver subroutine and communication subroutine are compiled in the programming environment of KEIL software to realize various functions.The platform system designed the data center and valve monitoring in the C#language development environment.The real-time data can display the collected real-time data and can be visualized with a time-data curve.The research and development of the integrated self-discharge and dispatching measurement and control device can control the groundwater level and flow PI adjustment.In the PI adjustment control process,the dark pipe flow is used as the input quantity,and the difference between the target value and the current value is ealculated by the flow eomparator,and finally the groundwater flow rate in the drainage area is adjusted by adjusting the opening degree of the valve,in the area where strong drainage is required.The collection of the strong pumping station realizes the drainage mode of the self-discharge control and the strong pumping station,so as to achieve the purpose of automatically adjusting and controlling the groundwater level by the integrated monitoring and control device for the self-discharge.The valve opening control of this device can also be divided into local control and remote control,and the two modes can be switched at will.After completing the hardware,software and platform design of the device,the project tested the hardware circuit,software communication,motor control and platform display.The results show that the hardware circuit design is accurate,the communication is reliable and safe,the control is stable in real time,and it meets the design requirements. |