2.1. System Design
The direct injection system for a soybean–maize intercropping sprayer consists of the power module (24V, Camel Group Co., Ltd., Hubei, China), machine interface, Programmable Logic Controller (PLC) (CP1H, OMRON Corporation, kyoto, Japan), OLE for Process Control (OPC) server (KEPserverEX6, Dingchen Technelogy, Beijing, China), transmitter and actuator. The block diagram of a direct injection system is shown in
Figure 1.
The transmitter consists of two conductivity transmitters, two flow transmitters and two pressure transmitters, which are used to measure herbicide parameters. The PLC is mainly responsible for processing the herbicide parameters measured by the transmitters and transmitting the data to the machine interface and Matlab/Simulink (Matlab 2019a, The MathWorks, Natick, MA, USA) through Ethernet interface. Since the PLC and Matlab/Simulink cannot communicate between each other directly, OPC protocol is used as a bridge to communicate. Therefore, the KEPserver EX6 is used as an OPC server in this direct injection system. The upper computer is mainly responsible for processing the signals transmitted by the PLC through the OPC protocol and transmitting the three Proportional Integral Derivative (PID) parameters processed by the fuzzy control algorithm to the PLC through the OPC protocol. After the PID algorithm is tuned by the PLC, the control commands are transmitted to pulse generation boards one and two. Pulse generation boards one and two convert analog signals into pulse signals and transmit them to driver one and driver two. Then, driver one and driver two control the operation of peristaltic pump one and peristaltic pump two. The human–computer interaction interface can achieve real-time display of detected parameters of glyphosate solution and fomesafen solution, and can control the start and stop of peristaltic pump one and peristaltic pump two. It can also communicate with PLC in real time. The executing mechanism consists of peristaltic pump one and peristaltic pump two. Peristaltic pump one mainly controls the extraction amount of glyphosate solution, achieving a precise mixing ratio of glyphosate solution. Peristaltic pump two mainly controls the extraction volume of the original solution of fomesafen, achieving a precise mixing ratio of fomesafen solution.
2.2. Program Design for a Direct Injection System
PID control is one of the most commonly used control methods in industrial control. However, different operating conditions correspond to different PID parameters, and if the operating conditions change, the original parameters may no longer be applicable. The various methods for PID controller parameter calibration are relatively complex. Fuzzy PID control is an effective control method to solve the problem of traditional PIDs not being able to correct parameters in real time. Compared to PID control, the overshoot is smaller, and the system is more stable when using fuzzy PID control [
34]. The transmitter transmits real-time data to the fuzzy controller, which then fuzzifies and infers the data to obtain a fuzzy output. The fuzzy output is then deblurred to obtain the optimal parameter combination for the controller, thus forming the fuzzy PID algorithm. The structure diagram of the fuzzy PID algorithm is shown in
Figure 2.
The fuzzy PID controller takes e and ec as its input values, which can complete the task of tuning the three parameters of PID with errors and error change rates under different operating conditions, enabling the controlled object to have better system performance.
This study uses two sets of two-dimensional fuzzy controllers for the direct injection system, with three fuzzy controllers in each set to adjust the proportional band
δ, integral time
TI, and derivative time
TD of the PID for maize and soybean in real-time. The input variables of the fuzzy controller are the deviation e and deviation change rate ec between the measured value of the conductivity transmitter and the conductivity value corresponding to the set herbicide mixing ratio, and the output variables are the PID parameter correction value Δ
δ, Δ
TI, and Δ
TD. The PID parameters after fuzzy reasoning are shown in Equations (1)–(3).
where
δ′,
TI′, and
TD′ are initial parameters of the PID determined by the stable boundary method.
The fuzzy sets of input and output variables selected by the fuzzy controller are all 7, namely negative large, negative medium, negative small, zero, positive small, median, and positive large, that is, {NB,NM,NS,ZO,PS,PM,PB}. The membership function of each fuzzy set adopts a triangular membership function. After analysis, the selected method for resolving ambiguity is the maximum membership degree method. The selected input–output fuzzy domain is [−6, 6], and then the scaling factor and quantization factor are solved according to the actual control requirements. The specific quantification factors and scaling factors for solving are given in the system simulation model.
2.3. Mixing Ratio Calibration Test Design
In order to verify the correlation between conductivity values and herbicides mixing ratios, herbicides with different mixing ratios were tested as the basis for detecting herbicides mixing ratios in the direct injection system for soybean-maize intercropping.
The conductivity value can reflect the electrolyte content in the solution, and the concentration of electrolyte solution can be detected by a conductivity transmitter. Conductive ability of a solution can be represented by conductance
G and conductivity
k. The herbicide conductance
GX is the reciprocal of resistance
RX, and the conductivity
k is the reciprocal of the resistivity
ρ.
RX conforms to the law of resistance, which can be calculated by Equation(4), and the conductivity
k can be derived by Equation (5).
where
L = Distance between the two plates of the conductive electrode (cm);
A = Area of the electrode plate (cm2);
K = Electrode constant.
In this study, glyphosate solution with a concentration of 30% (KESAI AGROCHEM HOLDINGS, Shandong, China) and fomesafen solution with a concentration of 250 g/L (Qingdao Fengbang Agrochemical, Qingdao, China) were used as experimental subjects. The calibration test is shown in
Figure 3.
In order to reduce the impact of measurement errors in conductivity transmitters and herbicide uniformity errors, herbicide samples with each mixing ratio were tested 10 times, and the average value was taken as the result. Then, the standard deviation and coefficient of variation of the data at each mixing ratio were calculated. There was a sufficient gap between 10 tests to ensure that each test was independent of each other.
To verify the accuracy of the conductivity transmitter for herbicide mixing ratio detection, an accuracy analysis experiment was designed.
Three sets of glyphosate test solutions with mixing ratios of 1.3:100, 1.8:100, and 2.3:100, as well as three sets of fomesafen test solutions with mixing ratios of 0.07:100, 0.12:100, and 0.23:100, were prepared and tested using conductivity transmitters. The conductivity values corresponding to different mixing ratios were obtained, and the mixing ratios obtained from the test calculations were compared with the actual mixing ratios to verify the reliability and accuracy of the conductivity transmitter in detecting mixing ratios.
2.4. Direct Injection System Test Design
The direct injection system test can be divided into the direct injection system uniformity test, direct injection system stability test, and direct injection system field performance evaluation test.
To test the uniformity and stability of the direct injection system when it runs on the soybean–maize intercropping sprayer, this study introduces spatial and temporal coefficients of variation.
The spatial coefficient of variation is intended to describe the degree of difference in the mixture ratio at different spatial positions but at the same time period, which specifically refers to the degree of difference in the mixture ratio of different nozzles in the same time period. The spatial coefficient of variation is intended to describe the degree of difference in the mixture ratio at the same spatial position and continuous time periods. Which specifically refers to the degree of difference in the mixing ratio at different time periods under the same nozzle.
When testing the uniformity of mixed herbicide ratios, the spatial coefficient of variation is used as the evaluation criterion. The soybean–maize intercropping sprayer with direct injection system is shown in
Figure 4. The spray machine was developed by the authors based on the spray bar sprayer machine. In the hoods of the spray machine, there are 2, 3, 2, 3 and 2 sprayers from left to right, totaling 12 sprayers. As weed management is mainly carried out at the early growth stage of soybean and corn, soybean is about 20 cm high, and corn is about 40 cm high. The nozzles and hoods of the spray are designed according to the height of the crop. The spray uses a Lechler 90° sector nozzle, and the model is IDK-90-03 (Lechler, Changzhou, China).
The above experiment was conducted after the system mixing ratio stabilizes, approximately 168 s after the system runs.
The herbicide mixture ratio used to calculate the coefficient of variation refers to the average mixture ratio during the time period, rather than the instantaneous mixture ratio.
The test was conducted under the set spray pressure (0.2 MPa, 0.3 MPa, 0.4 MPa) and mixture ratio (glyphosate solution: 1.3:100, 1.5:100, 1.7:100; fomesafen solution: 0.15:100, 0.18:100, 0.21:100). There were 9 tests for each herbicide in the uniformity test, and 9 tests for each herbicide in the stability test.
In the uniformity test, beakers were used to collect herbicide under each nozzle, and the numbers were 1~12 in turn. After the direct injection system stabilized, sampling lasted 10 s each time, and each nozzle was sampled three times. The conductivity value of medicine solution was measured by a conductivity sensor, and the average of the sampling data recorded from each nozzle.
In the stability test, beakers were used to collect herbicide under each nozzle, and the numbers were 1~12 in turn. After the direct injection system stabilized, sampling would last for 10 s each time, and each nozzle was sampled ten times. The conductivity value of medicine solution was measured by a conductivity sensor, and the average of the sampling data recorded from each nozzle after 10 s of system operation.
In the field performance evaluation test, the deposited pesticide concentration on plant leaves was measured to evaluate the uniformity and stability of the pesticide mixing system under field operations, which can better align with practical conditions. The field test setup is shown in
Figure 5. Each field performance evaluation test was repeated 4 times on different random plots, and the experimental results were averaged.
To mitigate potential confounding effects caused by weed leaf morphology and surface interactions, a nylon mesh deployment methodology was adopted in this study to collect deposited pesticide samples from weed leaves, thereby isolating the target analytes from biological matrix interferences.
Two spray paths each for glyphosate solution (1.5:100 ratio) and fomesafen solution (0.18:100 ratio) were randomly established with 50 m length. Square nylon meshes with a side length of 2 inches spaced at 5 m intervals were deployed along the paths. Under pressure of 0.2 MPa, the spraying test commenced after system stabilization. After the test, nylon meshes were sealed and stored. In the laboratory, the nylon meshes were placed into 100 mL clean water and agitated sufficiently with a glass rod. Herbicide conductivity was measured using a conductivity transmitter to derive field-applied concentrations.