CN111813155A - Fuzzy PID-based target spray system control method, device and storage medium - Google Patents
Fuzzy PID-based target spray system control method, device and storage medium Download PDFInfo
- Publication number
- CN111813155A CN111813155A CN202010561334.1A CN202010561334A CN111813155A CN 111813155 A CN111813155 A CN 111813155A CN 202010561334 A CN202010561334 A CN 202010561334A CN 111813155 A CN111813155 A CN 111813155A
- Authority
- CN
- China
- Prior art keywords
- fuzzy pid
- control method
- solenoid valve
- pid
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05D—SYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
- G05D7/00—Control of flow
- G05D7/06—Control of flow characterised by the use of electric means
- G05D7/0617—Control of flow characterised by the use of electric means specially adapted for fluid materials
- G05D7/0629—Control of flow characterised by the use of electric means specially adapted for fluid materials characterised by the type of regulator means
- G05D7/0635—Control of flow characterised by the use of electric means specially adapted for fluid materials characterised by the type of regulator means by action on throttling means
-
- A—HUMAN NECESSITIES
- A01—AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
- A01M—CATCHING, TRAPPING OR SCARING OF ANIMALS; APPARATUS FOR THE DESTRUCTION OF NOXIOUS ANIMALS OR NOXIOUS PLANTS
- A01M21/00—Apparatus for the destruction of unwanted vegetation, e.g. weeds
- A01M21/04—Apparatus for destruction by steam, chemicals, burning, or electricity
- A01M21/043—Apparatus for destruction by steam, chemicals, burning, or electricity by chemicals
-
- A—HUMAN NECESSITIES
- A01—AGRICULTURE; FORESTRY; ANIMAL HUSBANDRY; HUNTING; TRAPPING; FISHING
- A01M—CATCHING, TRAPPING OR SCARING OF ANIMALS; APPARATUS FOR THE DESTRUCTION OF NOXIOUS ANIMALS OR NOXIOUS PLANTS
- A01M7/00—Special adaptations or arrangements of liquid-spraying apparatus for purposes covered by this subclass
- A01M7/0089—Regulating or controlling systems
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B11/00—Automatic controllers
- G05B11/01—Automatic controllers electric
- G05B11/36—Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential
- G05B11/42—Automatic controllers electric with provision for obtaining particular characteristics, e.g. proportional, integral, differential for obtaining a characteristic which is both proportional and time-dependent, e.g. P. I., P. I. D.
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B13/00—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion
- G05B13/02—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric
- G05B13/0265—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric the criterion being a learning criterion
- G05B13/0275—Adaptive control systems, i.e. systems automatically adjusting themselves to have a performance which is optimum according to some preassigned criterion electric the criterion being a learning criterion using fuzzy logic only
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V20/00—Scenes; Scene-specific elements
- G06V20/40—Scenes; Scene-specific elements in video content
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Automation & Control Theory (AREA)
- Health & Medical Sciences (AREA)
- Environmental Sciences (AREA)
- Software Systems (AREA)
- Insects & Arthropods (AREA)
- Pest Control & Pesticides (AREA)
- Wood Science & Technology (AREA)
- Zoology (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Toxicology (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Computation (AREA)
- Medical Informatics (AREA)
- Catching Or Destruction (AREA)
Abstract
本申请公开了一种基于模糊PID的靶喷系统控制方法、装置及存储介质,该靶喷系统包括摄像头、电磁阀和模糊PID控制器,所述模糊PID控制器与所述电磁阀电连接,该控制方法包括:通过获取摄像头采集的杂草图像,通过预先设定的图像识别算法获取杂草密度信息,获取所述电磁阀的当前喷洒流量,通过所述杂草密度信息从数据库中读取目标喷洒流量,根据所述当前喷洒流量和所述目标喷洒流量获取流量差值和差值变化率信息,将所述流量差值和所述差值变化率信息发送至模糊PID控制器,并获取所述模糊PID控制器输出的PID控制参数,根据所述PID控制参数调整所述电磁阀的喷洒流量;采用本实施例的技术方案,实现了根据杂草密度调整电磁阀的喷洒流量,从而实现了精准喷洒。
The present application discloses a control method, device and storage medium for a target spraying system based on fuzzy PID. The target spraying system includes a camera, a solenoid valve and a fuzzy PID controller. The fuzzy PID controller is electrically connected to the solenoid valve. The control method includes: obtaining weed images collected by a camera, obtaining weed density information through a preset image recognition algorithm, obtaining the current spray flow rate of the solenoid valve, and reading from a database through the weed density information Target spray flow, obtain flow difference and difference change rate information according to the current spray flow and the target spray flow, send the flow difference and the difference change rate information to the fuzzy PID controller, and obtain The PID control parameters output by the fuzzy PID controller are used to adjust the spray flow of the solenoid valve according to the PID control parameters; using the technical solution of this embodiment, the spray flow of the solenoid valve is adjusted according to the weed density, thereby realizing for precise spraying.
Description
技术领域technical field
本申请涉及自动控制技术领域,特别是一种基于模糊PID的靶喷系统控制方法、装置和存储介质。The present application relates to the technical field of automatic control, in particular to a control method, device and storage medium for a target spray system based on fuzzy PID.
背景技术Background technique
在农业种植的过程中,杂草对于农作物的生长有害,通常采用喷洒除草剂的形式清除杂草,传统的人手喷洒方式已经无法满足当今的需求。为了实现自动化,常见的做法是采用无人机或除草机进行自动喷洒,但是现有方案只能进行大面积均匀喷洒,而杂草并非均匀生长,很容易出现草多的地方喷药过少,或者没草的地方喷洒过多的除草剂,除草效果较差。In the process of agricultural planting, weeds are harmful to the growth of crops. Weeds are usually removed by spraying herbicides. The traditional manual spraying method can no longer meet today's needs. In order to achieve automation, the common practice is to use drones or weeders for automatic spraying, but the existing solution can only spray evenly over a large area, and weeds do not grow uniformly, and it is easy to spray too little in places with a lot of grass. Or spraying too much herbicide in the place with no grass, the weeding effect is poor.
发明内容SUMMARY OF THE INVENTION
为了克服现有技术的不足,本申请的目的在于提供一种基于模糊PID的靶喷系统控制方法、装置和存储介质,能够自动调整喷洒流量,提高除草效果。In order to overcome the deficiencies of the prior art, the purpose of the present application is to provide a fuzzy PID-based target spray system control method, device and storage medium, which can automatically adjust the spray flow and improve the weeding effect.
本申请解决其问题所采用的技术方案是:第一方面,本申请提供了一种基于模糊PID的靶喷系统控制方法,所述靶喷系统包括控制处理单元、摄像头、用于控制喷洒流量的电磁阀和模糊PID控制器,所述控制处理单元分别与模糊PID控制器、所述电磁阀和所述摄像头电连接,所述控制方法包括:The technical scheme adopted by the present application to solve its problems is: firstly, the present application provides a fuzzy PID-based control method for a target spray system, the target spray system includes a control processing unit, a camera, a control device for controlling spray flow A solenoid valve and a fuzzy PID controller, the control processing unit is respectively electrically connected with the fuzzy PID controller, the solenoid valve and the camera, and the control method includes:
获取所述摄像头采集的杂草图像,通过预先设定的图像识别算法获取杂草密度信息;obtaining the weed image collected by the camera, and obtaining the weed density information through a preset image recognition algorithm;
获取所述电磁阀的当前喷洒流量,通过所述杂草密度信息从数据库中读取目标喷洒流量,根据所述当前喷洒流量和所述目标喷洒流量获取流量差值和差值变化率信息;Acquiring the current spraying flow of the solenoid valve, reading the target spraying flow from the database through the weed density information, and obtaining the flow difference and the difference change rate information according to the current spraying flow and the target spraying flow;
将所述流量差值和所述差值变化率信息发送至模糊PID控制器,并获取所述模糊PID控制器输出的PID控制参数,根据所述PID控制参数调整所述电磁阀的喷洒流量。The flow difference value and the difference value change rate information are sent to the fuzzy PID controller, and the PID control parameters output by the fuzzy PID controller are obtained, and the spray flow of the solenoid valve is adjusted according to the PID control parameters.
进一步,所述PID控制参数至少包括如下之一Further, the PID control parameters include at least one of the following
增大开度信号;Increase the opening signal;
减小开度信号。Decrease the opening signal.
进一步,所述靶喷系统还包括溢流阀,所述溢流阀与所述模糊PID控制器电连接,若所述PID控制参数包括增大开度信号,所述根据PID控制参数调整所述电磁阀的喷洒流量具体包括:Further, the target spray system also includes an overflow valve, and the overflow valve is electrically connected to the fuzzy PID controller. If the PID control parameter includes an increase opening signal, the adjustment of the The spray flow of the solenoid valve specifically includes:
向所述电磁阀发送增大开度信号;sending an increasing opening signal to the solenoid valve;
向所述溢流阀发送减少溢流信号。Send a reduced overflow signal to the overflow valve.
进一步,若所述PID控制参数包括减小开度信号,所述根据PID控制参数调整所述电磁阀的喷洒流量具体包括:Further, if the PID control parameter includes a decreasing opening signal, the adjusting the spray flow rate of the solenoid valve according to the PID control parameter specifically includes:
向所述电磁阀发送减小开度信号;sending a decreasing opening signal to the solenoid valve;
向所述溢流阀发送增大溢流信号。An increased overflow signal is sent to the overflow valve.
进一步,所述杂草密度通过预先训练的神经网络算法获取。Further, the weed density is obtained by a pre-trained neural network algorithm.
进一步,所述靶喷系统还包括超声波传感器,所述控制方法还包括:Further, the target spray system also includes an ultrasonic sensor, and the control method also includes:
通过所述超声波传感器获取喷洒距离信息;Obtain spraying distance information through the ultrasonic sensor;
将所述喷洒距离信息输入至所述模糊PID控制器中,以使所述模糊PID控制器调整所述PID控制参数。The spraying distance information is input into the fuzzy PID controller, so that the fuzzy PID controller adjusts the PID control parameters.
进一步,所述目标喷洒流量通过查找预先设定在数据库的对照表获取。Further, the target spray flow rate is obtained by searching a pre-set comparison table in the database.
进一步,所述杂草图像为所述摄像头采集的视频中的视频帧。Further, the weed image is a video frame in a video collected by the camera.
第二方面,本申请提供了一种基于模糊PID的靶喷系统控制装置,包括至少一个控制处理单元和用于与所述至少一个控制处理单元通信连接的存储器;所述存储器存储有可被所述至少一个控制处理单元执行的指令,所述指令被所述至少一个控制处理单元执行,以使所述至少一个控制处理单元能够执行如上述所述的基于模糊PID的靶喷系统控制方法。In a second aspect, the present application provides a fuzzy PID-based target spray system control device, comprising at least one control processing unit and a memory for communicating with the at least one control processing unit; The instruction executed by the at least one control processing unit is executed by the at least one control processing unit, so that the at least one control processing unit can execute the fuzzy PID-based target spray system control method as described above.
第三方面,本申请提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机可执行指令,计算机可执行指令用于使计算机执行如上所述的基于模糊PID的靶喷系统控制方法。In a third aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to make the computer execute the above-mentioned fuzzy PID-based target spray system control method .
第四方面,本申请还提供了一种计算机程序产品,所述计算机程序产品包括存储在计算机可读存储介质上的计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使计算机执行如上所述的基于模糊PID的靶喷系统控制方法。In a fourth aspect, the present application also provides a computer program product, the computer program product includes a computer program stored on a computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer , to make the computer execute the above-mentioned fuzzy PID-based target spray system control method.
本申请实施例中提供的一个或多个技术方案,至少具有如下有益效果:本申请的控制方法应用于靶喷系统,所述靶喷系统包括摄像头、电磁阀和模糊PID控制器,所述模糊PID控制器与所述电磁阀电连接,该控制方法包括:通过获取摄像头采集的杂草图像,通过预先设定的图像识别算法获取杂草密度信息,获取所述电磁阀的当前喷洒流量,通过所述杂草密度信息从数据库中读取目标喷洒流量,根据所述当前喷洒流量和所述目标喷洒流量获取流量差值和差值变化率信息,将所述流量差值和所述差值变化率信息发送至模糊PID控制器,并获取所述模糊PID控制器输出的PID控制参数,根据所述PID控制参数调整所述电磁阀的喷洒流量;采用本实施例的技术方案,通过流量差值和差值变化率信息实现了模糊PID控制,根据杂草密度调整电磁阀的喷洒流量,从而实现了精准喷洒。One or more technical solutions provided in the embodiments of the present application have at least the following beneficial effects: the control method of the present application is applied to a target spraying system, and the target spraying system includes a camera, a solenoid valve and a fuzzy PID controller, and the fuzzy The PID controller is electrically connected to the solenoid valve, and the control method includes: acquiring weed images collected by a camera, acquiring weed density information by a preset image recognition algorithm, acquiring the current spray flow of the solenoid valve, and The weed density information reads the target spray flow rate from the database, obtains the flow difference value and the difference value change rate information according to the current spray flow rate and the target spray flow rate, and changes the flow difference value and the difference value. The rate information is sent to the fuzzy PID controller, and the PID control parameters output by the fuzzy PID controller are obtained, and the spray flow of the solenoid valve is adjusted according to the PID control parameters; using the technical solution of this embodiment, through the flow difference value And the difference change rate information realizes fuzzy PID control, and adjusts the spray flow of the solenoid valve according to the weed density, so as to achieve precise spraying.
附图说明Description of drawings
下面结合附图和实例对本申请作进一步说明。The present application will be further described below with reference to the accompanying drawings and examples.
图1是本申请一个实施例提供的靶喷系统的模块结构图;Fig. 1 is the module structure diagram of the target spray system provided by an embodiment of the present application;
图2是本申请另一个实施例提供的一种基于模糊PID的靶喷系统控制方法的流程图;Fig. 2 is the flow chart of a kind of target spray system control method based on fuzzy PID provided by another embodiment of the present application;
图3是本申请另一个实施例提供的一种基于模糊PID的靶喷系统控制方法中增大喷洒流量的流程图;3 is a flow chart of increasing spray flow in a fuzzy PID-based target spray system control method provided by another embodiment of the present application;
图4是本申请另一个实施例提供的一种基于模糊PID的靶喷系统控制方法中减少喷洒流量的流程图;4 is a flow chart of reducing spray flow in a fuzzy PID-based target spray system control method provided by another embodiment of the present application;
图5是本申请另一个实施例提供的一种基于模糊PID的靶喷系统控制方法中获取PID控制信息的细化流程图;5 is a detailed flow chart of obtaining PID control information in a fuzzy PID-based target spray system control method provided by another embodiment of the present application;
图6是本申请另一个实施例提供的一种用于执行基于模糊PID的靶喷系统控制方法的装置示意图。FIG. 6 is a schematic diagram of a device for implementing a fuzzy PID-based control method for a target spray system provided by another embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.
需要说明的是,如果不冲突,本申请实施例中的各个特征可以相互结合,均在本申请的保护范围之内。另外,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。It should be noted that, if there is no conflict, various features in the embodiments of the present application may be combined with each other, which are all within the protection scope of the present application. In addition, although the functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, the modules in the device may be divided differently, or the sequence shown in the flowchart may be performed. or the described steps.
参考图1,图1为靶喷系统10的结构模块示意图,该靶喷系统10包括但不限于控制处理单元20,摄像头30,电磁阀40,模糊PID控制器50,溢流阀60。Referring to FIG. 1 , FIG. 1 is a schematic structural module diagram of a
在一实施例中,控制处理单元20可以是常见的控制芯片,例如FPGA,单片机等,也可以是搭载于靶喷系统的计算机等设备,根据实际需求选取即可。需要说明的是,控制处理单元20分别与模糊PID控制器50、电磁阀40、摄像头30和超声波传感器70电连接,能够获取模糊PID控制器50发送的PID控制参数,并根据该PID控制参数控制电磁阀40的开度增大或减小。需要说明的是,电磁阀可以是电脉冲电控式电磁阀,本实施例并不涉及具体电磁阀结构的改进,采用现有技术中的相关技术即可,在此不再赘述。需要说明的是,本实施例中的摄像头30、模糊PID控制器50也可以采用现有技术中的硬件结构,本实施例并不涉及硬件的改进,仅在控制方法上作出改进,在此不再赘述。需要说明的是,溢流阀60可以与装载药剂的药箱连接,在电磁阀50发生开合度变化时,溢流阀60受到的压力发生变化,从而控制流回药箱的药量。需要说明的是,本实施例的超声波传感器70可以采用现有技术中的任意型号,能够实现超声波测距即可,在此不再赘述。In one embodiment, the
参考图2,本申请的第一实施例提供了一种基于模糊PID的靶喷系统控制方法,应用于图1所示的靶喷系统,该控制方法包括以下步骤:2, the first embodiment of the present application provides a fuzzy PID-based target spray system control method, applied to the target spray system shown in FIG. 1, the control method comprises the following steps:
步骤S100,获取摄像头采集的杂草图像,通过预先设定的图像识别算法获取杂草密度信息;Step S100, obtaining the weed image collected by the camera, and obtaining the weed density information through a preset image recognition algorithm;
步骤S200,获取电磁阀的当前喷洒流量,通过杂草密度信息从数据库中读取目标喷洒流量,根据当前喷洒流量和目标喷洒流量获取流量差值和差值变化率信息;Step S200, obtaining the current spray flow rate of the solenoid valve, reading the target spray flow rate from the database through the weed density information, and obtaining the flow difference value and the difference change rate information according to the current spray flow rate and the target spray flow rate;
步骤S300,将流量差值和差值变化率信息发送至模糊PID控制器,并获取模糊PID控制器输出的PID控制参数,根据PID控制参数调整电磁阀的喷洒流量。In step S300, the flow difference value and the difference value change rate information are sent to the fuzzy PID controller, and the PID control parameters output by the fuzzy PID controller are obtained, and the spray flow rate of the solenoid valve is adjusted according to the PID control parameters.
在一实施例中,由于摄像头采集到的图像同时包括杂草和作物,因此可以通过预先设定的图像识别算法识别出杂草,并根据识别出的杂草获取杂草密度信息,通过杂草密度信息体现杂草的数量,便于控制除草剂的喷洒量。In one embodiment, since the images collected by the camera include weeds and crops at the same time, weeds can be identified through a preset image recognition algorithm, and weed density information can be obtained according to the identified weeds. Density information reflects the number of weeds and facilitates control of the amount of herbicide sprayed.
在一实施例中,目标喷洒流量可以通过任意形式获取,例如查表,或者通过预先设定的公式进行计算,根据实际需求选取具体方式即可,在此不再赘述。In one embodiment, the target spray flow rate can be obtained in any form, such as looking up a table, or calculating through a preset formula, and a specific method may be selected according to actual needs, which will not be repeated here.
在一实施例中,流量差值可以是当前喷洒流量减去目标喷洒流量所得数值的绝对值,差值变化率信息可以是差值变化的趋势,该数值需要通过若干次获取的流量差值获取,例如连续3次的流量差值越来越小,则差值变化率信息可以是流量差值减少的趋势,具体数值的选取方式根据实际需求制定即可。需要说明的是,由于每次用于获取PID控制参数的流量差值和差值变化率信息不同,因此用作PID模糊控制器的二维输入项,,将上述参数输入到模糊PID控制器中,代入现有技术中的PID公式即可得出PID控制参数,具体的PID公式并非本实施例作出的改进,在此不再赘述。In one embodiment, the flow difference value may be the absolute value of the value obtained by subtracting the target spray flow rate from the current spray flow rate, and the difference change rate information may be the trend of the difference value change, and the value needs to be obtained through the flow difference values obtained several times. , for example, the flow difference for three consecutive times is getting smaller and smaller, then the difference change rate information can be the decreasing trend of the flow difference, and the selection method of the specific value can be determined according to the actual demand. It should be noted that, because the flow difference and difference rate of change information used to obtain the PID control parameters are different each time, they are used as two-dimensional input items of the PID fuzzy controller, and the above parameters are input into the fuzzy PID controller. , the PID control parameters can be obtained by substituting the PID formula in the prior art, and the specific PID formula is not an improvement made by this embodiment, and will not be repeated here.
在本申请的另一个实施例中,PID控制参数至少包括如下之一In another embodiment of the present application, the PID control parameters include at least one of the following
增大开度信号;Increase the opening signal;
减小开度信号。Decrease the opening signal.
在一实施例中,由于电磁阀通常连通在喷头和喷雾泵之间,因此通过电脉冲点控制控制电磁阀能够实现改变喷洒流量,本实施例优选通过控制电磁阀的开度,能够实现精准控制。In one embodiment, since the solenoid valve is usually connected between the spray head and the spray pump, the spray flow rate can be changed by controlling the solenoid valve through the electrical pulse point control. In this embodiment, it is preferable to control the opening of the solenoid valve to achieve precise control. .
参考图3,在本申请的另一个实施例中,若PID控制参数包括增大开度信号,步骤S300还包括但不限于以下细化步骤:Referring to FIG. 3 , in another embodiment of the present application, if the PID control parameter includes the increasing opening signal, step S300 further includes but is not limited to the following refinement steps:
步骤S311,向电磁阀发送增大开度信号;Step S311, sending an increase opening signal to the solenoid valve;
步骤S312,向溢流阀发送减少溢流信号。Step S312, sending a reducing overflow signal to the overflow valve.
在一实施例中,若PID控制参数包括增大开度信号,则在向电磁阀发送增大开度信号的同时,还可以向溢流阀发送减少溢流信号,溢流阀收到的压力减小,溢流回药箱的药量也随之减小,能够喷出的药量更多,更好地实现增大喷洒流量。In one embodiment, if the PID control parameter includes an increasing opening signal, then when the increasing opening signal is sent to the solenoid valve, a reducing overflow signal can also be sent to the relief valve, and the pressure received by the relief valve is If it is reduced, the amount of medicine that overflows back to the medicine box is also reduced, and more medicine can be sprayed, so as to better realize the increase of the spray flow.
参考图4,在本申请的另一个实施例中,若PID控制参数包括减小开度信号,步骤S300还包括但不限于以下细化步骤:Referring to FIG. 4 , in another embodiment of the present application, if the PID control parameter includes a decreasing opening signal, step S300 further includes but is not limited to the following refinement steps:
步骤S321,向电磁阀发送减小开度信号;Step S321, sending a decreasing opening signal to the solenoid valve;
步骤S322,向溢流阀发送增大溢流信号。Step S322, sending an increased overflow signal to the overflow valve.
需要说明的是,减少喷洒流量的原理与图3所示实施例的原理类似,控制方向相反即可,在此不再赘述。It should be noted that the principle of reducing the spray flow rate is similar to that of the embodiment shown in FIG. 3 , and the control direction may be reversed, which will not be repeated here.
在本申请的另一个实施例中,杂草密度通过预先训练的神经网络算法获取。In another embodiment of the present application, the weed density is obtained by a pre-trained neural network algorithm.
在一实施例中,杂草密度可以通过任意方式获取,本实施例优选通过预先训练的神经网络算法获取,神经网络算法具有计算速度快,准确度高的特点,能够快速得出杂草密度。同时,由于摄像头还可以用于获取视频信息,使得靶喷系统在移动的过程中不断采集杂草图像,因此利用神经网络算法的时效性能够满足实时获取杂草密度,从而实时调整喷洒流量,提高自动化程度。In one embodiment, the weed density can be obtained in any way. In this embodiment, it is preferably obtained by a pre-trained neural network algorithm. The neural network algorithm has the characteristics of fast calculation speed and high accuracy, and can quickly obtain the weed density. At the same time, because the camera can also be used to obtain video information, the target spraying system can continuously collect weed images during the moving process. Therefore, the timeliness of the neural network algorithm can meet the real-time acquisition of weed density, so as to adjust the spray flow in real time and improve the degree of automation.
参考图5,在本申请的另一个实施例中,靶喷系统还包括超声波传感器,步骤S200还包括但不限于以下细化步骤:5 , in another embodiment of the present application, the target spray system further includes an ultrasonic sensor, and step S200 also includes but is not limited to the following refinement steps:
步骤S210,通过超声波传感器获取喷洒距离信息;Step S210, obtaining spraying distance information through an ultrasonic sensor;
步骤S220,将喷洒距离信息输入至模糊PID控制器中,以使模糊PID控制器调整PID控制参数。Step S220, the spraying distance information is input into the fuzzy PID controller, so that the fuzzy PID controller adjusts the PID control parameters.
在一实施例中,在喷洒流量满足杂草密度的情况下,还需要考虑靶喷系统与杂草之间的距离,例如在实际应用中,靶喷系统通常安装在除草机或者无人机的云台中,因此靶喷系统处于不停移动的过程,为了实现更好的喷洒效果,本实施例优选通过超声波传感器进行超声波测距,具有测量速度快,准确度高的特点。In one embodiment, when the spraying flow rate meets the weed density, the distance between the target spraying system and the weeds also needs to be considered. In the pan/tilt, the target spraying system is in the process of constant movement. In order to achieve a better spraying effect, this embodiment preferably uses an ultrasonic sensor for ultrasonic ranging, which has the characteristics of fast measurement speed and high accuracy.
需要说明的是,喷洒距离信息输入至模糊PID控制器后,在已有的PID控制参数的基础上,喷洒距离越大,可以是增大电磁阀的开度,也可以是增大喷雾泵的功率,反之亦然,根据实际需求选取具体的控制方式,能够实现对喷洒距离的补偿即可。It should be noted that, after the spraying distance information is input to the fuzzy PID controller, on the basis of the existing PID control parameters, the larger the spraying distance is, the opening of the solenoid valve can be increased, or the spray pump can be increased. Power, and vice versa, select a specific control method according to the actual demand, which can realize the compensation of the spraying distance.
在本申请的另一个实施例中,目标喷洒流量通过查找预先设定在数据库的对照表获取。In another embodiment of the present application, the target spray flow rate is obtained by searching a pre-set comparison table in the database.
在一实施例中,目标喷洒流量通过对照表保存为本实施例的优选,能够减少计算量。需要说明的是,对照表中可以保存直接使用的目标喷洒流量,也可以保存增量值,例如在当前喷洒流量的情况下加上该增量值,得出的数值为目标喷洒流量,具体方式根据实际需求选取即可。In one embodiment, the target spray flow rate is stored as a preference in this embodiment through a comparison table, which can reduce the amount of calculation. It should be noted that the directly used target spraying flow can be saved in the comparison table, and the incremental value can also be saved. For example, adding the incremental value to the current spraying flow, the value obtained is the target spraying flow. The specific method You can choose according to actual needs.
在本申请的另一个实施例中,杂草图像为摄像头采集的视频中的视频帧。In another embodiment of the present application, the weed image is a video frame in a video captured by a camera.
在一实施例中,摄像头采集视频能够为实现实时控制喷洒流量提供数据基础,由于靶喷系统通常处于运动状态中,而且喷洒面积较大,因此通过摄像头采集视频,并从视频中获取具体的视频帧作为杂草图像,能够根据当前获取的杂草图像实现实时调整喷洒流量,提高除草剂喷洒的准确度。In one embodiment, the video captured by the camera can provide a data basis for realizing real-time control of the spraying flow. Since the target spraying system is usually in motion and the spraying area is large, the video is captured by the camera, and the specific video is obtained from the video. The frame is used as a weed image, and the spraying flow can be adjusted in real time according to the currently acquired weed image, and the accuracy of herbicide spraying can be improved.
参考图6,本申请的另一个实施例还提供了一种基于模糊PID的靶喷系统控制装置6000,包括:存储器6100、控制处理器6200及存储在存储器6200上并可在控制处理器6200上运行的计算机程序,控制处理单元执行所述计算机程序时实现如上任意实施例中的基于模糊PID的靶喷系统控制方法,例如,执行以上描述的图2中的方法步骤S100至S300,图3中的方法步骤S311至S312,图4中的方法步骤S321至S322,图5中的方法步骤S210至S220。Referring to FIG. 6 , another embodiment of the present application also provides a fuzzy PID-based target spray
控制处理器6200和存储器6100可以通过总线或者其他方式连接,图6中以通过总线连接为例。The
存储器6100作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器6100可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件或其他非暂态固态存储器件。在一些实施方式中,存储器6100可选包括相对于控制处理器6200远程设置的存储器,这些远程存储器可以通过网络连接至该基于模糊PID的靶喷系统控制装置6000。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a non-transitory computer-readable storage medium, the
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The apparatus embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
此外,本申请的另一个实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个控制处理单元执行,例如,被图6中的一个控制处理器6200执行,可使得上述一个或多个控制处理器6200执行上述方法实施例中的基于模糊PID的靶喷系统控制方法,例如,执行以上描述的图2中的方法步骤S100至S300,图3中的方法步骤S311至S312,图4中的方法步骤S321至S322,图5中的方法步骤S210至S220。In addition, another embodiment of the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more control processing units, for example, Executed by a
需要说明的是,由于本实施例中的用于执行基于模糊PID的靶喷系统控制方法的装置与上述的基于模糊PID的靶喷系统控制方法基于相同的发明构思,因此,方法实施例中的相应内容同样适用于本装置实施例,此处不再详述。It should be noted that, because the device for executing the fuzzy PID-based target spray system control method in this embodiment and the above-mentioned fuzzy PID-based target spray system control method are based on the same inventive concept, therefore, the method in the embodiment is based on the same inventive concept. Corresponding contents are also applicable to the embodiments of the apparatus, and will not be described in detail here.
通过以上的实施方式的描述,本领域技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现。本领域技术人员可以理解实现上述实施例方法中的全部或部分流程是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(ReadOnly Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform. Those skilled in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed , which may include the flow of an embodiment of the above-mentioned method. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ReadOnly Memory, ROM), or a random access memory (Random Access Memory, RAM) or the like.
以上是对本申请的较佳实施进行了具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of the preferred implementation of the application, but the application is not limited to the above-mentioned embodiments. Those skilled in the art can also make various equivalent deformations or replacements on the premise of not violating the spirit of the application. These Equivalent modifications or substitutions are included within the scope defined by the claims of the present application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010561334.1A CN111813155A (en) | 2020-06-18 | 2020-06-18 | Fuzzy PID-based target spray system control method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010561334.1A CN111813155A (en) | 2020-06-18 | 2020-06-18 | Fuzzy PID-based target spray system control method, device and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111813155A true CN111813155A (en) | 2020-10-23 |
Family
ID=72846362
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010561334.1A Pending CN111813155A (en) | 2020-06-18 | 2020-06-18 | Fuzzy PID-based target spray system control method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111813155A (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114749499A (en) * | 2022-06-13 | 2022-07-15 | 深圳市信润富联数字科技有限公司 | Descaling nozzle control method and device, electronic equipment and readable storage medium |
| US20230090714A1 (en) * | 2021-09-23 | 2023-03-23 | Cnh Industrial America Llc | System and method for performing spraying operations with an agricultural applicator |
| CN116114683A (en) * | 2022-12-23 | 2023-05-16 | 天津理工大学 | Flame weeding machine capable of detecting weed density and crops |
| CN116138236A (en) * | 2023-02-17 | 2023-05-23 | 七海行(深圳)科技有限公司 | Spraying equipment and method |
| CN118765887A (en) * | 2024-08-14 | 2024-10-15 | 中化现代农业有限公司 | Variable plant protection water channel constant pressure control method and device based on field image recognition |
| CN118765612A (en) * | 2024-06-26 | 2024-10-15 | 安徽辉隆集团五禾生态肥业有限公司 | A method and device for intelligent fertilization of water-soluble fertilizer |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101961003A (en) * | 2010-08-10 | 2011-02-02 | 江苏大学 | Precise targeted spraying and weeding device |
| CN105165786A (en) * | 2015-08-12 | 2015-12-23 | 吉林大学 | Variable spraying machine based on image acquisition |
| CN205071961U (en) * | 2015-11-06 | 2016-03-09 | 合肥师范学院 | Device is prevented and kill off to intelligent weeds |
| CN106070155A (en) * | 2016-07-30 | 2016-11-09 | 重庆科技学院 | Automatic target detection variable rate spray system based on PLC and control method thereof |
| CN108513768A (en) * | 2018-04-18 | 2018-09-11 | 河南科技大学 | A kind of automatic weeding and seeding apparatus |
| CN110710519A (en) * | 2019-10-08 | 2020-01-21 | 桂林理工大学 | Intelligent pesticide spraying robot |
-
2020
- 2020-06-18 CN CN202010561334.1A patent/CN111813155A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101961003A (en) * | 2010-08-10 | 2011-02-02 | 江苏大学 | Precise targeted spraying and weeding device |
| CN105165786A (en) * | 2015-08-12 | 2015-12-23 | 吉林大学 | Variable spraying machine based on image acquisition |
| CN205071961U (en) * | 2015-11-06 | 2016-03-09 | 合肥师范学院 | Device is prevented and kill off to intelligent weeds |
| CN106070155A (en) * | 2016-07-30 | 2016-11-09 | 重庆科技学院 | Automatic target detection variable rate spray system based on PLC and control method thereof |
| CN108513768A (en) * | 2018-04-18 | 2018-09-11 | 河南科技大学 | A kind of automatic weeding and seeding apparatus |
| CN110710519A (en) * | 2019-10-08 | 2020-01-21 | 桂林理工大学 | Intelligent pesticide spraying robot |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20230090714A1 (en) * | 2021-09-23 | 2023-03-23 | Cnh Industrial America Llc | System and method for performing spraying operations with an agricultural applicator |
| US12035707B2 (en) * | 2021-09-23 | 2024-07-16 | Cnh Industrial America Llc | System and method for performing spraying operations with an agricultural applicator |
| CN114749499A (en) * | 2022-06-13 | 2022-07-15 | 深圳市信润富联数字科技有限公司 | Descaling nozzle control method and device, electronic equipment and readable storage medium |
| CN116114683A (en) * | 2022-12-23 | 2023-05-16 | 天津理工大学 | Flame weeding machine capable of detecting weed density and crops |
| CN116114683B (en) * | 2022-12-23 | 2024-05-28 | 天津理工大学 | Flame weeding machine capable of detecting weed density and crops |
| CN116138236A (en) * | 2023-02-17 | 2023-05-23 | 七海行(深圳)科技有限公司 | Spraying equipment and method |
| CN116138236B (en) * | 2023-02-17 | 2025-05-27 | 七海行(深圳)科技有限公司 | Spraying equipment and method |
| CN118765612A (en) * | 2024-06-26 | 2024-10-15 | 安徽辉隆集团五禾生态肥业有限公司 | A method and device for intelligent fertilization of water-soluble fertilizer |
| CN118765612B (en) * | 2024-06-26 | 2025-12-09 | 安徽辉隆集团五禾生态肥业有限公司 | Intelligent water-soluble fertilizer application method and device |
| CN118765887A (en) * | 2024-08-14 | 2024-10-15 | 中化现代农业有限公司 | Variable plant protection water channel constant pressure control method and device based on field image recognition |
| CN118765887B (en) * | 2024-08-14 | 2025-09-16 | 中化现代农业有限公司 | Variable plant protection waterway constant pressure control method and device based on field image recognition |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111813155A (en) | Fuzzy PID-based target spray system control method, device and storage medium | |
| Hosny et al. | Technologies, Protocols, and applications of Internet of Things in greenhouse Farming: A survey of recent advances | |
| US20200154632A1 (en) | Automatic boundary closing system and method for intelligent lawn mower | |
| CN109197278B (en) | Method and device for determining operation strategy and method for determining drug spraying strategy | |
| CN110832425B (en) | Control methods, equipment, surveying and mapping drones and spraying drones | |
| Dankhara et al. | Analysis of robust weed detection techniques based on the Internet of Things (IoT) | |
| US12412264B2 (en) | Scale for determining the weight of shrimps | |
| WO2018101848A1 (en) | Predictive dynamic cloud based system for environmental sensing and actuation and respective method of operation | |
| CN111372060A (en) | Intelligent bait casting method and system and inspection vision device | |
| KR102753543B1 (en) | VR-based immersive smart farm research system | |
| CN118799102B (en) | Crop irrigation method, system, electronic equipment and medium | |
| CN112465109A (en) | Green house controlling means based on cloud limit is in coordination | |
| CN112620652A (en) | Self-adaptive control system and method for electric arc additive manufacturing process | |
| CN109353504A (en) | UAV intelligent spraying system and method based on prescription map | |
| AU2021351645A1 (en) | Calibration of autonomous farming vehicle image acquisition system | |
| CN115379150B (en) | System and method for automatically generating dynamic video of rice growth process in remote way | |
| CN108574827A (en) | A method and device for real-time display of agricultural products based on visual agriculture | |
| CN118749281A (en) | A method, system, device and storage medium for intelligent agricultural irrigation | |
| TW201909093A (en) | Intelligent scheduling system and method thereof comprising a real-time data, a historical database, an analysis module, an automatic watering module, and a parameter feedback database | |
| Carlevarino et al. | An incremental growing neural network and its application to robot control | |
| CN114119736B (en) | Control method, control device, agricultural machinery and processor for agricultural machinery | |
| CN113724384B (en) | Robot topology map generation system, method, computer device and storage medium | |
| CN114814782B (en) | Laser radar-based straw coverage rate real-time detection method and device | |
| CN119829978B (en) | Water quality prediction and intelligent regulation and control system based on machine learning | |
| Shetty et al. | Agribot-System for Plant Disease Detection and Pesticide Sprinkling |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201023 |
|
| RJ01 | Rejection of invention patent application after publication |