A peanut precision seeder depth and quantity online detection and precision regulation device and method
By integrating sensors and a microcontroller system into the peanut planter, the planting depth and planting rate can be detected and adjusted in real time, solving the problem of uneven planting, realizing the precision and automation of peanut planting, and improving planting efficiency and survival rate.
Patent Information
- Application Number
- CN202411613147.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-13
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-11-13
AI Technical Summary
The existing peanut planters' methods for adjusting the sowing depth and sowing rate cannot flexibly adapt to changes in field terrain, resulting in uneven sowing depth and inconsistent density, which makes it difficult to meet the automation and precision requirements of modern crop sowing.
The system employs an air-suction seed metering device combined with sensors such as ultrasonic ranging sensors, fiber optic counting sensors, dual-axis tilt sensors, and photoelectric rotary encoders, along with an STM32F103ZE microcontroller, to detect seeding depth, seeding rate, and seeder tilt angle in real time. Precise control is achieved through an electric cylinder telescopic mechanism and a servo motor, enabling online detection and adjustment of seeding depth and seeding rate.
This method achieves consistency in peanut planting depth and spacing, improves seed survival rate, yield and quality, reduces seed usage, saves agricultural resources, and increases planting efficiency and economic benefits.
Smart Images

Figure CN119452834B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of precision seeding technology, and particularly relates to a device and method for online detection and precise control of seeding depth and seeding rate in a peanut precision seeder. Background Technology
[0002] Peanuts are a type of nut that is abundant and widely used. They are highly nutritious and can be used not only as a traditional Chinese medicine but also in industries such as printing and dyeing and papermaking.
[0003] Peanut planters are commonly classified into mechanical planters and pneumatic planters. Mechanical planters, due to the unique mechanical seed-collecting mechanism of their external grooved wheel or duckbill seed metering devices, suffer from a high rate of empty seed collection and are prone to seed compression, causing seed coat loss or seed breakage, thus affecting planting efficiency. Pneumatic planters, employing a seed-collecting disc with air pressure adsorption, significantly reduce the problems of poor seed collection in traditional mechanical planters, leading to their increasing application. However, the sowing depth of these planters is generally manually adjustable, unable to flexibly adjust to changes in field terrain, resulting in uneven sowing depth. Furthermore, the seed metering mechanism relies on ground wheel drive or power take-off shaft drive, which can lead to uneven sowing density and spacing when tires slip, and the inability to freely adjust the sowing frequency according to agronomic requirements reduces adaptability, making it difficult to meet the demands of modern automated and precise crop sowing. Therefore, adjusting the sowing process is a pressing issue that needs to be addressed in the planting industry.
[0004] To address the aforementioned issues, this invention improves the design of the peanut planter by automating the adjustment of planting depth and seeding rate, and develops corresponding control technologies to precisely control peanut planting, ensuring that peanuts are planted in the appropriate location in the soil, making full use of nutrient and water resources, improving planting efficiency, avoiding excessive seed use, reducing repetitive labor in the planting process, improving peanut yield and quality, and increasing planting benefits. Summary of the Invention
[0005] To address the shortcomings of existing technologies, this invention provides an online detection and precise control device and method for sowing depth and quantity in a peanut precision planter. It addresses issues such as uneven planting areas, varying sowing depths for different seed sizes, missed seed collection during seed distribution, and uneven sowing and substandard sowing density caused by mismatches between planter speed and seeding frequency. The invention dynamically adjusts sowing depth and replanting strategies in real time, ensuring timely and precise control of peanut sowing depth and replanting strategies. This guarantees that peanut sowing meets the requirements for consistent sowing depth and spacing, placing seeds in the optimal position for planting and growth, providing a favorable growth environment for the crop, promoting root development and balanced growth, avoiding competition between plants, improving plant survival rate, yield, and quality, while also preventing excessive seed use, reducing planting costs, and conserving agricultural resources.
[0006] The present invention achieves the above-mentioned technical objectives through the following technical means.
[0007] A peanut precision seeder online detection and precise control device for seeding depth and seeding rate includes an air-suction seed metering device installed on the frame. A furrow opener is installed in front of the air-suction seed metering device, a depth-limiting wheel is installed behind it, and a seed drop tube is installed at the seed metering port. Ultrasonic ranging sensors A and B are installed at the bottom of the frame, respectively at the front and rear ends of the furrow opener. A fiber optic counting sensor is installed below the seed metering port at the opening of the seed drop tube. Photoelectric rotary encoders are installed on the drive shaft of the implement and the seed metering shaft of the seed metering device. A dual-axis tilt sensor is installed on the implement. Ultrasonic ranging sensor A, ultrasonic ranging sensor B, fiber optic counting sensor, and photoelectric rotary encoder are all connected to a microcontroller. An electric cylinder telescopic mechanism and a linear displacement sensor are also installed on the furrow opener. A servo motor is connected to the shaft of the air-suction seed metering device. The electric cylinder telescopic mechanism (13) and the servo motor are both connected to the microcontroller.
[0008] The method for online detection and precise control of seeding depth and seeding rate in peanut precision planters using the aforementioned online detection and precise control device includes the following steps:
[0009] Step 1: Check the condition of the seeder;
[0010] Step 2: Start the seeder and use the microcontroller to control the electric cylinder extension mechanism and servo motor to maintain the initial operating state;
[0011] Step 3: Activate ultrasonic ranging sensor A, ultrasonic ranging sensor B, fiber optic counting sensor, photoelectric rotary encoder, dual-axis tilt sensor, and linear displacement sensor. During the seeder's movement, in conjunction with the microcontroller, ultrasonic ranging sensors A and B continuously and in real-time detect the distance from the frame to the ridge surface and the bottom of the furrow, thereby calculating the sowing depth. The dual-axis tilt sensor detects the seeder's working tilt angle in real-time, the fiber optic counting sensor detects the seed dropping frequency of the pneumatic seed metering device, the photoelectric rotary encoder measures the seeder's travel speed and the rotational speed of the seed metering shaft, and the linear displacement sensor detects the extension and retraction of the electric cylinder telescopic mechanism.
[0012] Step 4: The data measured by each sensor is transmitted to the microcontroller. The microcontroller converts, calculates, and smooths the signals to generate control logic and converts them into output signals, which are then output to the electric cylinder extension mechanism and the servo motor respectively.
[0013] Step 5: The electric cylinder telescopic mechanism and the servo motor adjust their operating status according to the input control signal; the electric cylinder telescopic mechanism adjusts the telescopic amount in real time to change the length of the furrow opener and directly adjust the sowing depth; the servo motor adjusts the speed in real time to change the speed of the air suction seed metering device and indirectly adjust the seeding frequency.
[0014] Step 6: After adjusting the operating status of the seeder in Step 5, each sensor performs further detection, generates signals, and the microcontroller generates the next output signal, forming a closed-loop control for the sowing operation.
[0015] Furthermore, in step 3, the specific method for obtaining the sowing depth by detecting the distance from the frame to the ridge surface and the bottom of the furrow using ultrasonic ranging sensor A and ultrasonic ranging sensor B is as follows:
[0016] The ultrasonic ranging sensor A or ultrasonic ranging sensor B first uses the following formula to calculate the distance d from the frame to the ridge surface or furrow bottom:
[0017]
[0018] Where v represents the speed of ultrasonic waves in the air; t represents the time required for the transmitted wave to travel to the received wave.
[0019] Then, the Doppler effect formula is introduced to reduce the impact of frequency shift on ranging performance:
[0020]
[0021] Among them, f r It is the received frequency; f s It is the transmission frequency; v a It is the speed at which ultrasound travels through the air; v rIt is the velocity of the ground; v s It is the vertical velocity of ultrasonic ranging sensor A or ultrasonic ranging sensor B;
[0022] The corrected ultrasonic wave propagation time is calculated by determining the frequency deviation:
[0023]
[0024] Among them, t corr This is the corrected ultrasonic wave propagation time; t is the time directly measured by ultrasonic ranging sensor A or ultrasonic ranging sensor B and transmitted to the receiver.
[0025] Finally, the corrected distance d' from the frame to the ridge surface or furrow bottom is obtained as:
[0026]
[0027] Ultrasonic ranging sensor A and ultrasonic ranging sensor B input the corrected measured data into the microcontroller to perform difference calculations and finally obtain the sowing depth.
[0028] Furthermore, in step 3, the dual-axis tilt sensor utilizes the principle of gravitational acceleration and microelectromechanical technology. Taking advantage of the invariance of the direction of gravitational acceleration, when the object is tilted, the built-in accelerometer of the dual-axis tilt sensor measures the changes in the gravitational components along the X, Y, and Z axes, and calculates the working tilt angle of the seeder in real time based on the components.
[0029] Furthermore, in step 3, when peanut seeds fall from the seed drop tube into the detection range of the fiber optic counting sensor, the position of the interference fringes inside the fiber optic counting sensor changes, causing a change in the optical path difference. Each time the fiber optic counting sensor detects a change in the optical path difference, the count increases by one, thus realizing the counting detection of peanuts. The counting data is then input into the microcontroller for signal capture, and the seed drop frequency is calculated. The change in the seed drop frequency is used to determine whether any seeds have been missed.
[0030] Furthermore, in step 4, the microcontroller data processing method is as follows:
[0031] Step 4.1: Smooth the propagation depth control logic using the Kalman filter algorithm:
[0032] The Kalman filter algorithm consists of two steps: prediction and update. The prediction step includes state prediction and covariance prediction, while the update step includes Kalman gain calculation, state update, and covariance update. The prediction and update steps are repeated at each time step to gradually improve the accuracy of state estimation. The seeding depth data processed by the Kalman filter algorithm smooths the output control signal, reduces the seeding depth variance, and reduces the vibration during the operation of the electric cylinder telescopic mechanism.
[0033] Step 4.2: The improved PID control algorithm is used to control the seeding frequency control logic. Specifically, the fuzzy PID control algorithm is optimized using internal model control and model adaptive reference control to improve the adaptability of PID control to model mismatches caused by complex and uncertain environments, enhance robustness to disturbances, and dynamically adjust PID control parameters to improve control performance under different operating conditions, thereby improving system response and the ability to quickly correct errors. The details are as follows:
[0034] The formula for calculating the control quantity in a PID control algorithm is:
[0035]
[0036] Where u(t) is the controller output, i.e., the control quantity; e(t) is the error at time t, i.e., the difference between the target value and the actual value; K p It is the proportional gain; K i It is the integral gain; K d It represents the differential gain; e(τ) is the error at time τ; d represents the differential operator;
[0037] The formula for calculating the internal mold control (IMC) is as follows:
[0038] The controller C(s) and process model G(s) of IMC satisfy the following relationship:
[0039]
[0040] Where C(s) is the IMC controller; G(s) is the model of the controlled system; and Q(s) is the IMC filter used to stabilize the controller, and its calculation formula is as follows:
[0041]
[0042] Where λ is the adjustment parameter; n is the filter order; and s is the complex frequency variable.
[0043] The control output formula is:
[0044]
[0045] Where y(s) is the system output; r(s) is the reference input;
[0046] The calculation formula for Model Reference Adaptive Control (MRAC) is as follows:
[0047] Adaptive control formula:
[0048]
[0049] in, γ is the rate of change of the control coefficient; θ is the parameter of the adaptive control; γ is the adaptive gain; y m This is the output of the reference model; e(t) is the error signal, calculated using the following formula:
[0050] e(t)=y(t)-y m (t)
[0051] Where y(t) is the system output; y m (t) is the output of the reference model;
[0052] The reference model calculation formula for MRAC is as follows:
[0053]
[0054] Where M(s) and D(s) are the transfer functions of the reference model, respectively; y m (s) is the output of the reference model.
[0055] The present invention has the following beneficial effects:
[0056] The present invention provides a device and method for online detection and precise control of planting depth and quantity in a peanut precision planter. Utilizing ultrasonic ranging sensors, fiber optic counting sensors, dual-axis tilt sensors, linear displacement sensors, and photoelectric rotary encoders, it acquires real-time operational information such as planting depth, planting quantity, planter tilt angle, extension / retraction of the electric cylinder telescopic mechanism, implement speed, and seeding frequency. Through digital signal processing, STM32F103ZE microcontroller processing, and optimization of algorithms and control algorithms, it detects the planting depth and seeding status online, adjusts the planting depth in real time, and performs reseeding as needed. This achieves real-time precise control of peanut planting, ensuring that planting depth and spacing are consistent, placing seeds in the optimal position for planting and growth, providing a good growing environment for the crop, and improving crop survival rate, yield, and quality. This enables high-quality and efficient control of peanut planting depth and quantity. Simultaneously, the entire planting process is more automated and efficient, requiring no manual intervention, saving manpower and resources, and resulting in significant economic benefits. Attached Figure Description
[0057] Figure 1 This is a schematic diagram illustrating the principle of real-time measurement and control of seeding depth and seeding quantity as described in this invention.
[0058] Figure 2 This is a flowchart of the real-time measurement and control process for seeding depth and seeding quantity as described in this invention;
[0059] Figure 3 The principle of the dual-axis tilt angle detection described in this invention
[0060] Figure 4 This is a schematic diagram of the optical fiber counting detection principle described in this invention;
[0061] Figure 5 This is a schematic diagram of the Kalman filtering algorithm described in this invention;
[0062] Figure 6 This is a schematic diagram of the improved PID control algorithm described in this invention.
[0063] Figure 7 This is a diagram of the seeding depth adjustment method described in this invention.
[0064] In the diagram: 1-Frame; 2-Machinery drive shaft; 3-Ultrasonic ranging sensor A; 4-Servo motor; 5-Pneumatic seed metering device; 6-Ultrasonic ranging sensor B; 7-STM32F103ZE microcontroller; 8-Seed dropping tube; 9-Fiber optic counting sensor; 10-Dual-axis tilt sensor; 11-Photoelectric rotary encoder; 12-Linear displacement sensor; 13-Electric cylinder telescopic mechanism; 14-Furrow opener; 15-Seed; 16-Depth limiting wheel. Detailed Implementation
[0065] The present invention will be further described below with reference to the accompanying drawings and specific embodiments, but the scope of protection of the present invention is not limited thereto.
[0066] like Figure 1 As shown, the online detection and precise control device for seeding depth and seeding rate of peanut precision planter of the present invention includes a frame 1, a implement transmission shaft 2, a dual-axis tilt sensor 10, a pneumatic seed metering device 5, a seed drop tube 8, a furrow opener 14, a depth limiting wheel 16, a photoelectric rotary encoder 11, an optical fiber counting sensor 9, an ultrasonic ranging sensor A3, an ultrasonic ranging sensor B6, an STM32F103ZE microcontroller 7, a servo motor 4, a linear displacement sensor 12, and an electric cylinder telescopic mechanism 13.
[0067] like Figure 1As shown, with the direction of travel as positive, a furrow opener 14 is installed at the corresponding position in front of the air-suction seed metering device 5, and a depth-limiting wheel 16 is installed at the corresponding position behind it. A seed drop tube 8 is installed at the seed discharge port. Ultrasonic ranging sensors A3 and B6 are installed downwards at the bottom of the frame 1, located at the front and rear ends of the furrow opener 14, respectively. A fiber optic counting sensor 9 is installed below the seed discharge port of the air-suction seed metering device 5, at the opening of the seed drop tube 8, to detect the seed drop frequency. A photoelectric rotary encoder 11 is installed on the machine drive shaft 2 and the seed metering shaft of the seed metering device, respectively, to detect the traveling speed of the machine and the rotation speed of the seed metering shaft. A dual-axis tilt sensor 10 is installed on the machine to detect the pitch angle of the machine during travel. The ultrasonic ranging sensor A3, ultrasonic ranging sensor B6, fiber optic counting sensor 9, and photoelectric rotary encoder 11 are all connected to the STM32F103ZE microcontroller 7. The furrow opener 14 is also equipped with an electric cylinder telescopic mechanism 13 and a linear displacement sensor 12. The shaft of the air suction seed meter 5 is connected to a servo motor 4, and both the electric cylinder telescopic mechanism 13 and the servo motor 4 are connected to an STM32F103ZE microcontroller 7.
[0068] The sowing depth measurement and control section and the missed sowing detection and reseeding section of the measurement and control device are equipped with different detection and control equipment, and are all connected to the STM32F103ZE microcontroller.
[0069] Reference Figure 2 The online detection and precise control method for seeding depth and seeding rate of peanut precision planters using the aforementioned online detection and precise control device includes a preparation stage, a detection stage, and a control stage. The specific process is as follows:
[0070] Preparation phase: Implementation of preparatory work before operating the peanut planter.
[0071] Step 1: Check the condition of the peanut precision planter to ensure that it meets the requirements for precision peanut planting;
[0072] Step 2: Start the seeder and use the STM32F103ZE microcontroller 7 to control the electric cylinder extension mechanism 13 and the servo motor 4 to maintain the initial working state.
[0073] Testing Phase: Collection of Operational Information from Testing Equipment
[0074] Step 3: Activate ultrasonic ranging sensor A3, ultrasonic ranging sensor B6, fiber optic counting sensor 9, photoelectric rotary encoder 11, dual-axis tilt sensor 10, and linear displacement sensor 12; during the movement of the seeder, in conjunction with the STM32F103ZE microcontroller 7, the ultrasonic ranging sensors A3 and B6 continuously and in real time detect the distance from the frame 1 to the ridge surface and the bottom of the furrow, the dual-axis tilt sensor 10 detects the working tilt angle of the seeder in real time, the fiber optic counting sensor 9 detects the seed dispensing frequency of the air suction seed metering device 5, the photoelectric rotary encoder 11 measures the traveling speed of the seeder and the rotational speed of the seed metering shaft, and the linear displacement sensor 12 detects the extension and retraction of the electric cylinder telescopic mechanism 13;
[0075] The specific detection methods for each sensor are as follows:
[0076] Using ultrasonic sensing to detect the seeding depth:
[0077] By employing ultrasonic sensing and multi-source information fusion, multiple ultrasonic sensing modules are installed at appropriate locations on the precision seeder. These modules are driven to emit and receive high-frequency sound waves to the ground, thereby detecting the distances from the frame 1 to the ridge surface and the bottom of the furrow in real time. This avoids the influence of medium and low-frequency sound wave signals in the working environment and reduces detection errors by utilizing the multi-source sensing characteristics of the detection modules, thus improving detection accuracy.
[0078] The formula for calculating the distance d from frame 1 to the ridge surface (or furrow bottom) is:
[0079]
[0080] Where v represents the speed of ultrasonic waves in the air; t represents the time required for the transmitted wave to travel to the received wave.
[0081] The Doppler effect formula is introduced to reduce the impact of frequency shift on ranging performance:
[0082]
[0083] Among them, f r It is the received frequency; f s It is the transmission frequency; v a It is the speed at which ultrasound travels through the air; v r It is the velocity of the ground (because the ground is the frame of reference, v). r =0m / s); v s It is the vertical velocity of the ultrasonic ranging sensor A3 (or ultrasonic ranging sensor B6);
[0084] The corrected ultrasonic wave propagation time is calculated by determining the frequency deviation:
[0085]
[0086] Among them, t corr This is the corrected ultrasonic wave propagation time; t is the time directly measured by ultrasonic ranging sensor A3 (or ultrasonic ranging sensor B6) to be transmitted to and received.
[0087] Finally, the corrected distance d′ from frame 1 to the ridge surface (or furrow bottom) is obtained as follows:
[0088]
[0089] Both ultrasonic ranging sensors A3 and B6 input the corrected measured data to the STM32F103ZE microcontroller 7 for difference calculation, and finally obtain the sowing depth.
[0090] The tilt angle of the seeder during operation is detected using a dual-axis tilt sensor.
[0091] The dual-axis tilt angle pose detection method is used to detect the tilt angle of frame 1 in real time during operation, avoiding the influence of the seeder tilting on the seeding depth detection and reducing detection error. The principle is as follows: Figure 3 As shown;
[0092] The dual-axis tilt sensor 10 utilizes the principle of gravitational acceleration and microelectromechanical systems (MEMS) technology, taking advantage of the invariance of the direction of gravitational acceleration. When an object tilts, the dual-axis tilt sensor 10, with its built-in accelerometer, measures the changes in the gravitational components along the X, Y, and Z axes, and calculates the object's tilt angle in real time based on these components. The gravitational acceleration g in three-dimensional space can be decomposed into three components along the X, Y, and Z axes, namely g... x g y g z ;
[0093] In three-dimensional space, the tilt angle of an object has two main angles: pitch and roll.
[0094] The pitch angle θ describes the tilt angle of an object about the X-axis, expressed as the gravitational component g along the X-axis. x Calculate using the total gravity g:
[0095]
[0096] Roll angle Used to describe the tilt angle of an object about the Y-axis, expressed by the gravitational component g along the Y-axis. y Calculate using the total gravity g:
[0097]
[0098] Among them, g x gy g z These are the gravity components along the X-axis, Y-axis, and Z-axis, respectively.
[0099] Using fiber optic sensing to detect seeding operations:
[0100] The fiber optic counting sensor method is used to determine the information of peanut seeds 15. The change of photoelectric signal generated by the fiber optic detection port during peanut seeding is used to determine the information of missed seeds, so as to realize the real-time and accurate detection of missed seeds.
[0101] Detection principle as follows Figure 4 As shown, when peanut seed 15 enters the detection range of fiber optic counting sensor 9, the position of the interference fringes inside fiber optic counting sensor 9 changes, causing a change in optical path difference:
[0102]
[0103] Where ΔL is the optical path difference, Δx is the position of the interference fringes, and λ is the wavelength of the light.
[0104] The fiber optic counting sensor 9 increments the count each time it detects a change in optical path difference, thus realizing the counting detection function for peanuts. The counting data is then input into the STM32F103ZE microcontroller 7 for signal capture, which calculates the seed drop frequency. The change in the seed drop frequency is used to determine whether any seeds have been missed.
[0105] Control Phase: Reception and processing of detection signals and generation of control behavior:
[0106] Step 4: The data measured by each sensor in Step 3 is transmitted to the STM32F103ZE microcontroller 7. The STM32F103ZE microcontroller 7 converts, calculates, and smooths the signals to generate control logic, and then converts it into output signals, which are output to the electric cylinder extension mechanism 13 and the servo motor 4 respectively. The data processing method of the STM32F103ZE microcontroller 7 is as follows:
[0107] Step 4.1: Smooth the propagation depth control logic using the Kalman filter algorithm:
[0108] Reference Figure 5 The Kalman filter algorithm mainly consists of two steps: prediction and update. The prediction step includes state prediction and covariance prediction. The state prediction is as follows:
[0109]
[0110] The covariance prediction is as follows:
[0111]
[0112] in, A is the predicted value of the state vector; A is the state transition matrix. It is the state estimate from the previous moment; B is the control input matrix; u k It is a control input; Q is the prediction error covariance matrix; Q is the process noise covariance matrix.
[0113] The update steps include Kalman gain calculation, state update, and covariance update.
[0114] Kalman gain calculation:
[0115]
[0116] Status Update:
[0117]
[0118] Covariance Update:
[0119]
[0120] Among them, K k H is the Kalman gain; H is the observation matrix. R is the observed value; I is the measurement noise covariance matrix; and R is the identity matrix. It is the updated state estimate; P k It is the updated error covariance matrix;
[0121] The prediction and update steps are repeated at each time step to gradually improve the accuracy of state estimation;
[0122] The seeding depth data processed by the Kalman filter algorithm can make the output control signal smoother, reduce the seeding depth variance, reduce the vibration of the electric cylinder telescopic mechanism 13 during operation, improve service life, and improve the operation effect.
[0123] Step 4.2: Refer to Figure 6 An improved PID control algorithm is used to control the sowing frequency control logic:
[0124] The formula for calculating the control quantity in a PID control algorithm is:
[0125]
[0126] Where u(t) is the controller output, i.e., the control quantity; e(t) is the error at time t, i.e., the difference between the target value and the actual value; K p It is the proportional gain; K i It is the integral gain; K d is the differential gain; e(τ) is the error at time τ; d represents the differential operator.
[0127] The fuzzy PID control algorithm is optimized using internal model control (IMC) and model adaptive reference control (MRAC) to improve the adaptability of PID control to model mismatch caused by complex and uncertain environments, enhance its robustness to disturbances, and dynamically adjust PID control parameters to improve its control performance under different operating conditions, thereby improving the system's response and ability to quickly correct errors. Specifically:
[0128] The formula for calculating the internal mold control (IMC) is as follows:
[0129] The controller C(s) and process model G(s) of IMC satisfy the following relationship:
[0130]
[0131] Where C(s) is the IMC controller; G(s) is the model of the controlled system; and Q(s) is the IMC filter used to stabilize the controller, and its calculation formula is as follows:
[0132]
[0133] Where λ is the adjustment parameter; n is the filter order; and s is the complex frequency variable.
[0134] The control output formula is:
[0135]
[0136] Where y(s) is the system output; r(s) is the reference input;
[0137] The calculation formula for Model Reference Adaptive Control (MRAC) is as follows:
[0138] Adaptive control formula:
[0139]
[0140] in, γ is the rate of change of the control coefficient; θ is the adaptive control parameter, i.e., the control parameter; γ is the adaptive gain; y m This is the output of the reference model; e(t) is the error signal, calculated using the following formula:
[0141] e(t)=y(t)-y m (t)
[0142] Where y(t) is the system output; y m (t) is the output of the reference model;
[0143] The reference model calculation formula for MRAC is as follows:
[0144]
[0145] Where M(s) and D(s) are the transfer functions of the reference model, respectively; y m (s) is the output of the reference model, where the variable s is because the output is represented in the Laplace transform domain, and s is the complex frequency variable.
[0146] Fuzzy PID transforms the input signal of PID control into a fuzzy set ("negative large", "negative small", "zero", "positive small", "positive large"), defines fuzzy rules, and uses a fuzzy inference system to convert the fuzzy control quantity into a specific PID gain adjustment quantity, thereby adjusting the three types of integrals and improving the PID control effect.
[0147] Step 5: The electric cylinder telescopic mechanism 13 and the servo motor 4 adjust their operating states according to the input control signals; the electric cylinder telescopic mechanism 13 adjusts the telescopic amount in real time to change the length of the furrow opener 14, directly adjusting the sowing depth; the servo motor 4 adjusts the rotation speed in real time to change the rotation speed of the air-suction seed metering device 5, indirectly adjusting the seed metering frequency; the specific adjustment principle is as follows: Figure 7 As shown;
[0148] Step 6: After the above control mechanism adjusts the operating status of the seeder, each sensor performs further detection, generates signals, and then the STM32F103ZE microcontroller generates the next output signal, forming a closed-loop control of the sowing operation.
[0149] The embodiments described above are preferred embodiments of the present invention, but the present invention is not limited to the above embodiments. Any obvious improvements, substitutions or modifications that can be made by those skilled in the art without departing from the essence of the present invention shall fall within the protection scope of the present invention.
Claims
1. A method for online detection and precise control of seeding depth and seeding rate in a peanut precision seeder using an online detection and precise control device, characterized in that, The online detection and precise control device for seeding depth and seeding rate of a peanut precision seeder includes an air-suction seed metering device (5) installed on the frame (1). A furrow opener (14) is installed in front of the air-suction seed metering device (5), a depth-limiting wheel (16) is installed behind it, and a seed drop tube (8) is installed at the seed metering port. Ultrasonic ranging sensors A (3) and B (6) are installed at the bottom of the frame (1) and at the front and rear ends of the furrow opener (14), respectively. An optical fiber counting sensor (9) is installed below the seed metering port at the opening of the seed drop tube (8). The implement transmission device includes an air-suction seed metering device (5) with a furrow opener (14) and a depth-limiting wheel (16) at the rear. Photoelectric rotary encoders (11) are installed on both shaft (2) and seed metering shaft; dual-axis tilt sensors (10) are installed on the machine; ultrasonic ranging sensor A (3), ultrasonic ranging sensor B (6), fiber optic counting sensor (9) and photoelectric rotary encoder (11) are all connected to the microcontroller; electric cylinder telescopic mechanism (13) and linear displacement sensor (12) are also installed on furrow opener (14); servo motor (4) is connected to the shaft of air suction seed metering device (5); electric cylinder telescopic mechanism (13) and servo motor (4) are both connected to the microcontroller. The method for online detection and precise control of seeding depth and seeding rate in peanut precision seeders includes the following process: Step 1: Check the condition of the seeder; Step 2: Start the seeder and use the microcontroller to control the electric cylinder extension mechanism (13) and servo motor (4) to maintain the initial working state; Step 3: Start the ultrasonic ranging sensor A (3), ultrasonic ranging sensor B (6), fiber optic counting sensor (9), photoelectric rotary encoder (11), dual-axis tilt sensor (10), and linear displacement sensor (12); during the movement of the seeder, in conjunction with the microcontroller, the ultrasonic ranging sensor A (3) and ultrasonic ranging sensor B (6) continuously and in real time detect the distance from the frame (1) to the ridge surface and the bottom of the furrow, and then calculate the sowing depth. The dual-axis tilt sensor (10) detects the working tilt angle of the seeder in real time. The fiber optic counting sensor (9) detects the seed dropping frequency of the air suction seed metering device (5). The photoelectric rotary encoder (11) measures the traveling speed of the seeder and the rotation speed of the seed metering shaft respectively. The linear displacement sensor (12) detects the extension and retraction of the electric cylinder telescopic mechanism (13). Step 4: The data measured by each sensor is transmitted to the microcontroller. The microcontroller converts, calculates and smooths the signal to generate control logic and converts it into output signals, which are then output to the electric cylinder extension mechanism (13) and the servo motor (4). Step 5: The electric cylinder telescopic mechanism (13) and the servo motor (4) adjust their operating status according to the input control signal; the electric cylinder telescopic mechanism (13) adjusts the telescopic amount in real time to change the length of the furrow opener (14) and directly adjust the sowing depth; the servo motor (4) adjusts the speed in real time to change the speed of the air suction seed metering device (5) and indirectly adjust the seeding frequency. Step 6: After adjusting the operating status of the seeder in Step 5, each sensor performs further detection, generates signals, and the microcontroller generates the next output signal, forming a closed-loop control for the sowing operation; In step 3, the specific method for using ultrasonic ranging sensor A (3) and ultrasonic ranging sensor B (6) to detect the distance from the frame (1) to the ridge surface and the bottom of the furrow, and thus obtain the sowing depth, is as follows: The ultrasonic ranging sensor A (3) or ultrasonic ranging sensor B (6) first uses the following formula (1) to measure the distance from the ridge surface or the bottom of the furrow. : ; Where v represents the speed of ultrasonic waves in the air; t represents the time required for the transmitted wave to travel to the received wave. Then, the Doppler effect formula is introduced to reduce the impact of frequency shift on ranging performance: ; in, It is the received frequency; It is the transmission frequency; It is the speed at which ultrasound travels through the air; It is the speed of the ground; It is the vertical velocity of ultrasonic ranging sensor A (3) or ultrasonic ranging sensor B (6); The corrected ultrasonic wave propagation time is calculated by determining the frequency deviation: ; in, This is the corrected ultrasonic wave propagation time; The time of transmission to the receiver is directly measured by ultrasonic ranging sensor A (3) or ultrasonic ranging sensor B (6). Finally, the distance from the corrected frame (1) to the ridge surface or furrow bottom was obtained. for: ; The ultrasonic ranging sensor A (3) and ultrasonic ranging sensor B (6) input the corrected measured data to the microcontroller to perform difference calculation and finally obtain the sowing depth.
2. The method for online detection and precise control of seeding depth and seeding rate in a peanut precision planter according to claim 1, characterized in that, In step 3, the dual-axis tilt sensor (10) uses the principle of gravitational acceleration and microelectromechanical technology. Taking advantage of the invariance of the direction of gravitational acceleration, when the object is tilted, the dual-axis tilt sensor (10) has a built-in accelerometer to measure the change of gravity components along the X, Y, and Z axes, and calculates the working tilt angle of the seeder in real time based on the components.
3. The method for online detection and precise control of seeding depth and seeding rate in a peanut precision seeder according to claim 1, characterized in that, In step 3, when the peanut seed (15) falls from the seed drop tube (8) into the detection range of the fiber optic counting sensor (9), the position of the interference fringes inside the fiber optic counting sensor (9) changes, causing a change in the optical path difference. The fiber optic counting sensor (9) increases the count once each time it detects a change in the optical path difference, thus realizing the counting detection of peanuts. The counting data is then input into the microcontroller for signal capture, and the seed drop frequency is calculated. The change in the seed drop frequency is used to determine whether a seed has been missed.
4. The method for online detection and precise control of seeding depth and seeding rate in a peanut precision planter according to claim 1, characterized in that, In step 4, the microcontroller data processing method is as follows: Step 4.1: Smooth the propagation depth control logic using the Kalman filter algorithm: The Kalman filter algorithm is divided into two steps: prediction and update. The prediction step includes state prediction and covariance prediction, and the update step includes Kalman gain calculation, state update, and covariance update. The prediction and update steps are repeated at each time step to gradually improve the accuracy of state estimation. The seeding depth data processed by the Kalman filter algorithm makes the output control signal smooth, reduces the seeding depth variance, and reduces the vibration of the electric cylinder telescopic mechanism (13) during operation. Step 4.2: Use the improved PID control algorithm to control the seeding frequency control logic. That is, use internal model control and model adaptive reference control to optimize the fuzzy PID control algorithm, improve the adaptability of PID control to model mismatch caused by complex and uncertain environments, improve the robustness to disturbances, and dynamically adjust the PID control parameters to improve the control performance of PID control under different operating conditions, and enhance the system response and the ability to quickly correct errors.
5. The method for online detection and precise control of seeding depth and seeding rate in a peanut precision planter according to claim 4, characterized in that, In step 4.2, the specific method for improving the PID control algorithm is as follows: The formula for calculating the control quantity in a PID control algorithm is: ; Where u(t) is the output of the controller, i.e., the control quantity; e(t) is the error at time t, i.e., the difference between the target value and the actual value; It is proportional gain; It is integral gain; It is the differential gain; At any moment The error; Represents the differential operator; The formula for calculating the internal mold control (IMC) is as follows: IMC controller and process model The following relationship must be satisfied: ; in, It is the controller of the IMC; It is a model of the controlled system; It is an IMC filter used in the stabilizing controller, and its calculation formula is: ; in, It refers to adjusting parameters; It is the order of the filter; It is a complex frequency variable; The control output formula is: ; in, This is system output; It is a reference input; The calculation formula for Model Reference Adaptive Control (MRAC) is as follows: Adaptive control formula: ; in, It is the rate of change of the control coefficient; These are the parameters for adaptive control; It is adaptive gain; It is the output of the reference model; It is an error signal, and the calculation formula is: ; in, It is the system output; It is the output of the reference model; The reference model calculation formula for MRAC is as follows: ; in, and These are the transfer functions of the reference model; It is the output of the reference model.
Citation Information
Patent Citations
Precise positioning seeding system of corn no-tillage planter
CN113796189A
Control system of multifunctional intelligent balance trolley and fuzzy self-adaptive PID (Proportion Integration Differentiation) method thereof
CN116069019A
