WO2022016562A1 - Vision-based crop protection unmanned aerial vehicle obstacle-avoidance system and obstacle avoidance method thereof - Google Patents

Vision-based crop protection unmanned aerial vehicle obstacle-avoidance system and obstacle avoidance method thereof Download PDF

Info

Publication number
WO2022016562A1
WO2022016562A1 PCT/CN2020/104940 CN2020104940W WO2022016562A1 WO 2022016562 A1 WO2022016562 A1 WO 2022016562A1 CN 2020104940 W CN2020104940 W CN 2020104940W WO 2022016562 A1 WO2022016562 A1 WO 2022016562A1
Authority
WO
WIPO (PCT)
Prior art keywords
capacitor
pin
resistor
transistor
diode
Prior art date
Application number
PCT/CN2020/104940
Other languages
French (fr)
Chinese (zh)
Inventor
张正强
段纳
苗珍
孟国华
Original Assignee
南京科沃信息技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 南京科沃信息技术有限公司 filed Critical 南京科沃信息技术有限公司
Publication of WO2022016562A1 publication Critical patent/WO2022016562A1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D1/00Control of position, course, altitude or attitude of land, water, air or space vehicles, e.g. using automatic pilots
    • G05D1/10Simultaneous control of position or course in three dimensions
    • G05D1/101Simultaneous control of position or course in three dimensions specially adapted for aircraft

Definitions

  • the invention relates to the technical field of UAV obstacle avoidance, in particular to a vision-based plant protection UAV obstacle avoidance system and an obstacle avoidance method.
  • the obstacle avoidance acquisition system of the UAV needs to accurately collect the detection sensor data from the UAV, and then through data processing, output attitude angle, yaw angle, altitude, air pressure, position and speed and other information, and the flight control system based on The received information controls the operation of other modules, so that the UAV can fly according to the expected effect, and then detects the accuracy value of the output information of the sensor system, which indirectly affects the quality of the flight, and then fails to achieve the expected flight effect.
  • the control chip of the machine is easily disturbed by external noise and other factors, resulting in low accuracy of the collected data.
  • Purpose of the invention to provide a vision-based plant protection UAV obstacle avoidance system to solve the above problems.
  • a vision-based plant protection UAV obstacle avoidance system including:
  • a power supply module for transmitting the adjusted output power to the control module and the sensor measurement module, thereby providing a power source for the UAV obstacle avoidance system module;
  • a control module for receiving the detection signal fed back by the sensor measurement module, so as to control the acquired detection signal, and then convey different control instructions;
  • a sensor measurement module for judging and estimating the obstacles and the distances between the obstacles and the obstacles during the flight of the UAV according to the speed of the ultrasonic waves and the time interval of ultrasonic transmission and reception through the ultrasonic ranging method.
  • the power supply module includes a power module and a clock reset module, wherein the power module includes a capacitor C2, a capacitor C1, a power supply U1, a capacitor C4, a capacitor C3, and a capacitor C5, wherein the capacitor C2 One end is respectively connected with one end of the capacitor C1, the input power supply 12V, the pin 1 and pin 3 of the power supply U1; the other end of the capacitor C2 is respectively connected with the other end of the capacitor C1 and the U1 pin 2 of the power supply; the power supply U1 leads The pin 5 is respectively connected with one end of the capacitor C3 and the positive terminal of the capacitor C5; the other end of the capacitor C3 is respectively connected with the negative terminal of the capacitor C5 and the ground wire GND; the pin 4 of the power supply device U1 is connected with the negative terminal of the capacitor C4; The positive terminal of C4 is connected to the ground wire GND.
  • the clock reset module includes a button S1, a capacitor C6, a resistor R1, a transistor Q1, a resistor R2, a resistor R3, and a capacitor C7, wherein one end of the button S1 is respectively connected to one end of the resistor R1 and the positive end of the capacitor C6.
  • the other end of the button S1 is respectively connected with the negative terminal of the capacitor C6, one end of the resistor R3, the negative terminal of the capacitor C7, and the ground wire GND; the other end of the resistor R1 is connected with the base terminal of the transistor Q1; the emitter terminal of the transistor Q1 is respectively connected with One end of the capacitor C2, one end of the capacitor C1, the input power supply 12V, the pin 1 and pin 3 of the power supply U1 are connected; the collector end of the transistor Q1 is connected with one end of the resistor R2; the other end of the resistor R2 is respectively connected with the other end of the resistor R3, The positive terminal of capacitor C7 is connected.
  • the control module includes a control unit, an ultrasonic receiving unit, and an alarm module, wherein the control unit includes a controller U2, and the pin 60 of the controller U2 is respectively connected to the other end of the resistor R2 and the other end of the resistor R3. One end, the positive terminal of the capacitor C7 is connected; the pin 5 of the controller U2 and the pin 5 of the power supply U1 are respectively connected to one end of the capacitor C3 and the positive terminal of the capacitor C5; the pin 7 of the controller U2 is respectively connected to one end of the button S1, One end of the resistor R1 and the positive end of the capacitor C6 are connected;
  • the ultrasonic receiving unit includes a resistor R9, a capacitor C19, a resistor R10, a resistor R8, a capacitor C18, and a receiver L1, wherein one end of the resistor R9 is connected to the controller U2 pin 62; the resistor The other end of R9 is connected to one end of capacitor C19, one end of resistor R10 and one end of resistor R8 respectively; the other end of capacitor C19 is connected to ground GND; the other end of resistor R10 is connected to pin 581 of controller U2; the other end of resistor R8 One end is connected to one end of the capacitor C18; the other end of the capacitor C18 is connected to one end of the receiver L1; the other end of the receiver L1 is connected to the ground wire GND;
  • the alarm module includes a resistor R7, a transistor Q5, and an alarm LS2, wherein one end of the resistor R7 is connected to the pin 50 of the controller U2; the other end of the resistor R7 is connected to the base terminal of the transistor Q5; The collector terminal of the transistor Q5 is connected to one end of the alarm LS1; the other end of the alarm LS1 is connected to the input power +12V; the emitter terminal of the transistor Q5 is connected to the ground wire GND.
  • the sensor measurement module includes an operation processing module, a driving module, an A/D conversion module, and an ultrasonic transmitting unit
  • the operation processing module includes an inductor L1, a capacitor C9, an inductor L2, a diode D2, a diode D1, inductor L3, capacitor C8, and processor U3, wherein one end of the inductor L1 is respectively connected to one end of the capacitor C9, one end of the inductor L2, and the ground wire GND; the other end of the inductor L1 is connected to the pin 9 of the processor U3; the The other end of the capacitor C9 is connected to the processor U3 pin 10; the other end of the inductance L2 is connected to the processor U3 pin 11; the processor U3 pins 23 and 18 are both connected to the ground wire GND; the processor U3 The pin 20 is connected to the positive terminal of the capacitor C8; the negative terminal of the capacitor C8 is connected to the ground wire GND; the pin 1 of the processor U3 is
  • the driving module includes a driver U4, a capacitor C10, a diode D5, a capacitor C12, a capacitor C13, and a capacitor C11, wherein the pin 16 of the driver U4 is connected to the pin 42 of the controller U2; the driver U4 pin 13 is respectively connected to one end of capacitor C12, the positive end of diode D5, the negative end of diode D1, the pin 2 and pin 4 of driver U4, and one end of capacitor C10; the other end of the capacitor C10 is connected to the ground wire GND; the capacitor The other end of C12 is respectively connected to one end of capacitor C13, the pin 11 and pin 9 of the driver U4, and the ground wire GND; one end of the capacitor C11 is connected to the pin 12 of the driver U4; the other end of the capacitor C11 is connected to the pin 8 of the starter U4 connect.
  • the pin 16 of the driver U4 is connected to the pin 42 of the controller U2
  • the driver U4 pin 13 is respectively connected to one end of capacitor C12, the positive end of
  • the A/D conversion module includes a capacitor C17, a converter U5, an inductor L4, a diode D6, a resistor R6, an inductor L5, a capacitor C15, and a capacitor C16, wherein the converter U5 pin 6 and Pin 3 is respectively connected with one end of capacitor C17, one end of inductor L4, and pin 24 of processor U3; described converter U5 pin 2 is respectively connected with the other end of inductor L4 and the positive end of diode D6; described converter U5 pin 5 Connect to one end of resistor R6, one end of inductor L5 and one end of capacitor C15 respectively; the pin 4 of the converter U5 is respectively connected to the other end of capacitor C17, the other end of resistor R6, one end of capacitor C16, and the ground wire GND; the other end of capacitor C16 Connect to the other end of capacitor C15, the other end of inductor L5, pin 55 of controller U2, and the negative end of diode D6.
  • the ultrasonic emitting unit includes a transistor Q4, a diode D3, a resistor R5, a diode D4, a resistor R5, a transistor Q3, a capacitor C14, a transistor Q2, a resistor R4, and a transmitter L2, wherein the transistor Q4 collects
  • the electrode terminal is connected to the processor U3 pin 23; the base terminal of the transistor Q4 is connected to the negative terminal of the diode D3; the emitter terminal of the transistor Q4 is respectively connected to the positive terminal of the diode D4, the emitter terminal of the transistor Q3, the emitter terminal of the transistor Q2, and the emitter L2
  • One end is connected; the positive end of the diode D3 is respectively connected with one end of the resistor R5, the collector end of the transistor Q3, the negative end of the diode D4, one end of the capacitor C14, one end of the resistor R4, the collector end of the transistor Q2, and the negative end of the diode D5; the resistor R5 The other end
  • the capacitor C4, the capacitor C5, the capacitor C6, the capacitor C7, and the capacitor C8 are electrolytic capacitors; the diode D1, the diode D2, the diode D5
  • the models are all Zener diodes;
  • the transistor Q1 model is PNP;
  • the transistor Q2, the transistor Q3, the transistor Q4, and the transistor Q5 are all NPN models;
  • the power supply U1 model is MIC5219;
  • the model of the processor U3 is MPU6050;
  • the model of the controller U2 is STM32;
  • the model of the driver U4 is HMC5883L.
  • a vision-based obstacle avoidance method for a plant protection UAV obstacle avoidance system is characterized by the following steps:
  • Step 1 The operation processing module first measures its own attitude information through the processor U3, and then converts the measured three-axis angular velocity and acceleration attitude information into digital signals through the A/D conversion module, and then transmits the digital signals to the control module for processing. deal with;
  • Step 2 The drive module controls the heading and orientation of the UAV through the change of the ultrasonic ranging sensor, and the driver U4 uses the anisotropic magnetoresistance technology to measure the direction and size of the earth's magnetic field, and the driver U4 pin is connected to the capacitor C11, The function of the capacitor C11 is to filter, thereby improving the response of the driving operation.
  • the capacitor C13 is used as a storage device to provide the driver U4 with a startup power supply, thereby reducing the voltage shock caused by the instantaneous startup.
  • a vision-based obstacle avoidance method for a plant protection UAV obstacle avoidance system is characterized in that, the steps 1 and 2 further obtain, the flight attitude angle and the Kalman filter algorithm;
  • the flight attitude angle includes roll angle, pitch angle and yaw angle
  • the roll angle is the angle between the longitudinal symmetry plane of the body and the longitudinal vertical plane.
  • the pitch angle is the angle between the longitudinal axis of the body and the longitudinal horizontal axis, expressed by ⁇
  • the yaw angle is the angle between the projection of the longitudinal axis of the body on the horizontal plane xoy and the prime meridian in the geographic coordinate system, denoted by ⁇ Therefore, the conversion from the earth coordinate system to the body coordinate system can be realized by three rotations, and the conversion formula is as follows:
  • Q 0 is a predetermined initial quaternion
  • ⁇ x, ⁇ y, ⁇ z are x, y, z-axis output angular velocity, and thus can obtain the current quaternion Q i in accordance with step 1-4, the step of substituting Q i 1-3 can then obtain the flight attitude angle information at the current moment;
  • Step 2-1 According to the Kalman filter algorithm, set the current sampling time as k, the last moment as k-1, and the optimal state as Then according to the Kalman filter algorithm, the following steps are obtained:
  • Step 2-2 according to Predict the current state of the obstacle avoidance system, and the predicted value is recorded. Which leads to the following way:
  • A represents a state transition matrix matrix
  • u k represents the current time input
  • system matrix B denotes the control matrix avoidance, It consists of two parts, one part is the product between the optimal state at the previous moment and matrix A, and the other part is the product between the input quantity at the current moment and matrix B;
  • Step 2-3 using the covariance matrix equation, and setting the current state matrix as P k , the following methods can be obtained:
  • P k-1 is the optimal solution estimated by the covariance matrix at the previous moment, and Q is the inherent noise matrix of the prediction model;
  • Step 2-3 set the current observation value as z k , the current observation matrix as H, and the covariance matrix of the observation noise as R, the following methods can be obtained:
  • K is called the Kalman coefficient matrix
  • K is expressed as:
  • the value of K directly affects the proportion of the observed value and the predicted value.
  • I is the identity matrix
  • the present invention designs a vision-based plant protection UAV obstacle avoidance system and its obstacle avoidance method, which utilizes the processor U3 for the ultrasonic transmitting unit and the driver U4 for acceleration and angular velocity acquisition, and the control unit can be combined with the receiving processor U3. It transmits information with the driver U4, so as to obtain acceleration, angular velocity and azimuth attitude information and perform data fusion processing.
  • the control chip is easily interfered by external noise and other factors, resulting in low accuracy of the collected data, and then the output
  • the attitude angle of the UAV is converted into a quaternion, and then the Kalman filter algorithm is used to statically correct the data collected by the control. Finally, after filtering and fusion, the attitude angle can reach the operating accuracy.
  • the UAV autonomous obstacle avoidance system has a simple structure and can fly out of control.
  • the risk is greatly reduced, and the flight attitude angle and Kalman filter algorithm are used to reduce the load of the embedded obstacle avoidance system, which enhances the maneuverability and execution of the UAV, and enables the UAV to better avoid obstacles in advance. , adjust the flight direction independently.
  • Fig. 1 is a structural block diagram of the present invention.
  • FIG. 2 is a distribution diagram of the UAV obstacle avoidance system of the present invention.
  • FIG. 3 is a circuit diagram of a power module of the present invention.
  • FIG. 4 is a circuit diagram of a clock reset module of the present invention.
  • FIG. 5 is a circuit diagram of an A/D conversion module of the present invention.
  • FIG. 6 is a circuit diagram of the ultrasonic transmitting unit of the present invention.
  • FIG. 7 is a circuit diagram of the ultrasonic receiving unit of the present invention.
  • FIG. 8 is a circuit diagram of an alarm module of the present invention.
  • FIG. 9 is a schematic diagram of the flight attitude angle of the present invention.
  • a vision-based obstacle avoidance system for plant protection UAVs includes:
  • a power supply module for transmitting the adjusted output power to the control module and the sensor measurement module, thereby providing a power source for the UAV obstacle avoidance system module;
  • a control module for receiving the detection signal fed back by the sensor measurement module, so as to control the acquired detection signal, and then convey different control instructions;
  • a sensor measurement module for judging and estimating the obstacles and the distances between the obstacles and the obstacles during the flight of the UAV according to the speed of the ultrasonic waves and the time interval of ultrasonic transmission and reception through the ultrasonic ranging method.
  • the power module includes a capacitor C2, a capacitor C1, a power supply U1, a capacitor C4, a capacitor C3, and a capacitor C5.
  • one end of the capacitor C2 in the power module is respectively connected to one end of the capacitor C1, the input power supply 12V, the pin 1 and pin 3 of the power supply U1; the other end of the capacitor C2 is respectively connected to the capacitor C1
  • the other end is connected to the U1 pin 2 of the power supply;
  • the U1 pin 5 of the power supply is respectively connected to one end of the capacitor C3 and the positive end of the capacitor C5;
  • the other end of the capacitor C3 is connected to the negative end of the capacitor C5 and the ground wire GND respectively;
  • the pin 4 of the power supply U1 is connected to the negative terminal of the capacitor C4; the positive terminal of the capacitor C4 is connected to the ground wire GND.
  • the clock reset module includes a button S1, a capacitor C6, a resistor R1, a transistor Q1, a resistor R2, a resistor R3, and a capacitor C7.
  • one end of the button S1 in the clock reset module is respectively connected to one end of the resistor R1 and the positive end of the capacitor C6; the other end of the button S1 is respectively connected to the negative end of the capacitor C6, one end of the resistor R3 and the capacitor C7
  • the negative terminal and the ground wire GND are connected; the other end of the resistor R1 is connected to the base terminal of the transistor Q1; the emitter terminal of the transistor Q1 is respectively connected to one end of the capacitor C2, one end of the capacitor C1, the input power supply 12V, and the pin 1 and pin of the power supply U1.
  • 3 is connected; the collector terminal of the transistor Q1 is connected to one end of the resistor R2; the other end of the resistor R2 is respectively connected to the other end of the resistor R3 and the positive terminal of the capacitor C7.
  • the control unit includes a controller U2, and the pin 60 of the controller U2 is respectively connected to the other end of the resistor R2, the other end of the resistor R3, and the positive end of the capacitor C7; the The pin 5 of the controller U2 and the pin 5 of the power supply U1 are respectively connected with one end of the capacitor C3 and the positive end of the capacitor C5; the pin 7 of the controller U2 is respectively connected with one end of the button S1, one end of the resistor R1 and the positive end of the capacitor C6;
  • the ultrasonic receiving unit includes a resistor R9, a capacitor C19, a resistor R10, a resistor R8, a capacitor C18, and a receiver L1.
  • one end of the resistor R9 in the ultrasonic receiving unit is connected to the pin 62 of the controller U2; the other end of the resistor R9 is respectively connected to one end of the capacitor C19, one end of the resistor R10, and one end of the resistor R8; the The other end of the capacitor C19 is connected to the ground wire GND; the other end of the resistor R10 is connected to the controller U2 pin 581; the other end of the resistor R8 is connected to one end of the capacitor C18; the other end of the capacitor C18 is connected to one end of the receiver L1; The other end of the receiver L1 is connected to the ground wire GND.
  • the alarm module includes a resistor R7, a transistor Q5, and an alarm LS2.
  • one end of the resistor R7 in the alarm module is connected to the pin 50 of the controller U2; the other end of the resistor R7 is connected to the base end of the transistor Q5; the collector end of the transistor Q5 is connected to the alarm device One end of LS1 is connected; the other end of the alarm device LS1 is connected to the input power +12V; the emitter end of the transistor Q5 is connected to the ground wire GND.
  • the operation processing module includes an inductor L1 , a capacitor C9 , an inductor L2 , a diode D2 , a diode D1 , an inductor L3 , a capacitor C8 , and a processor U3 .
  • one end of the inductor L1 in the operation processing module is respectively connected to one end of the capacitor C9, one end of the inductor L2, and the ground wire GND; the other end of the inductor L1 is connected to the pin 9 of the processor U3; The other end of the capacitor C9 is connected with the processor U3 pin 10; the other end of the inductance L2 is connected with the processor U3 pin 11, and the processor U3 pins 23 and 18 are both connected with the ground GND; the processor The U3 pin 20 is connected to the positive terminal of the capacitor C8; the negative terminal of the capacitor C8 is connected to the ground wire GND; the processor U3 pin 1 is connected to one end of the inductor L3; the other end of the inductor L3 is connected to the ground wire GND; The processor U3 pin 4 is respectively connected with the controller U2 pin 7, one end of the button S1, one end of the resistor R1, and the positive end of the capacitor C6; the processor U3 pin 8 is connected with the negative end of the
  • the driving module includes a driver U4, a capacitor C10, a diode D5, a capacitor C12, a capacitor C13, and a capacitor C11.
  • the driver U4 pin 16 in the driver module is connected to the controller U2 pin 42; the driver U4 pin 13 is respectively connected to one end of the capacitor C12, the positive end of the diode D5, and the negative end of the diode D1.
  • the extreme, the driver U4 pin 2 and pin 4, and one end of the capacitor C10 are connected; the other end of the capacitor C10 is connected to the ground wire GND; the other end of the capacitor C12 is respectively connected with one end of the capacitor C13, the driver U4 pin 11 and pin 9 , the ground wire is connected to GND; one end of the capacitor C11 is connected to the pin 12 of the driver U4; the other end of the capacitor C11 is connected to the pin 8 of the starter U4.
  • the A/D conversion module includes a capacitor C17 , a converter U5 , an inductor L4 , a diode D6 , a resistor R6 , an inductor L5 , a capacitor C15 , and a capacitor C16 .
  • the converter U5 pin 6 and pin 3 in the A/D conversion module are respectively connected to one end of the capacitor C17, one end of the inductor L4, and the processor U3 pin 24;
  • the converter U5 pin 2 is respectively connected with the other end of the inductor L4 and the positive end of the diode D6;
  • the converter U5 pin 5 is respectively connected with one end of the resistor R6, one end of the inductor L5 and one end of the capacitor C15;
  • the converter U5 pin 4 is respectively connected with The other end of the capacitor C17, the other end of the resistor R6, one end of the capacitor C16, and the ground wire GND are connected;
  • the other end of the capacitor C16 is connected to the other end of the capacitor C15, the other end of the inductor L5, the controller U2 pin 55, and the negative end of the diode D6.
  • the ultrasonic emitting unit includes a transistor Q4, a diode D3, a resistor R5, a diode D4, a resistor R5, a transistor Q3, a capacitor C14, a transistor Q2, a resistor R4, and a transmitter L2.
  • the collector terminal of the transistor Q4 in the ultrasonic transmitting unit is connected to the pin 23 of the processor U3; the base terminal of the transistor Q4 is connected to the negative terminal of the diode D3; the emitter terminal of the transistor Q4 is respectively Connect with the positive terminal of diode D4, the emitter terminal of transistor Q3, the emitter terminal of transistor Q2, and one end of transmitter L2; the positive terminal of diode D3 is respectively connected to one end of resistor R5, the collector terminal of transistor Q3, the negative terminal of diode D4, one terminal of capacitor C14, and one terminal of resistor R5.
  • R4 is connected to the collector end of the transistor Q2 and the negative end of the diode D5; the other end of the resistor R5 is connected to the base end of the transistor Q3 and the other end of the capacitor C14 respectively; the other end of the resistor R4 is respectively connected to the base end of the transistor Q2 and the transmitter L2 Connect the other end.
  • the capacitor C4, the capacitor C5, the capacitor C6, the capacitor C7, and the capacitor C8 are electrolytic capacitors; the diode D1, the diode D2, and the diode D5
  • the models are all Zener diodes; the transistor Q1 model is PNP; the transistor Q2, the transistor Q3, the transistor Q4, and the transistor Q5 are all NPN models; the power supply U1 model is MIC5219; the The model of the processor U3 is MPU6050; the model of the controller U2 is STM32; the model of the driver U4 is HMC5883L.
  • a vision-based obstacle avoidance method for a plant protection UAV obstacle avoidance system is characterized by the following steps:
  • Step 1 The operation processing module first measures its own attitude information through the processor U3, and then converts the measured three-axis angular velocity and acceleration attitude information into digital signals through the A/D conversion module, and then transmits the digital signals to the control module for processing. deal with;
  • Step 2 The drive module controls the heading and orientation of the UAV through the change of the ultrasonic ranging sensor, and the driver U4 uses the anisotropic magnetoresistance technology to measure the direction and size of the earth's magnetic field, and the driver U4 pin is connected to the capacitor C11, The function of the capacitor C11 is to filter, thereby improving the response of the driving operation.
  • the capacitor C13 is used as a storage device to provide the driver U4 with a startup power supply, thereby reducing the voltage shock caused by the instantaneous startup.
  • a vision-based obstacle avoidance method for a plant protection UAV obstacle avoidance system is characterized in that the steps 1 and 2 further obtain that the flight attitude angle and Kalman filter algorithm;
  • the flight attitude angle includes roll angle, pitch angle and yaw angle
  • the roll angle is the angle between the longitudinal symmetry plane of the body and the longitudinal vertical plane.
  • the pitch angle is the angle between the longitudinal axis of the body and the longitudinal horizontal axis, expressed by ⁇
  • the yaw angle is the angle between the projection of the longitudinal axis of the body on the horizontal plane xoy and the prime meridian in the geographic coordinate system, denoted by ⁇ Therefore, the conversion from the earth coordinate system to the body coordinate system can be realized by three rotations, and the conversion formula is as follows:
  • Q 0 is a predetermined initial quaternion
  • ⁇ x, ⁇ y, ⁇ z are x, y, z-axis output angular velocity, and thus can obtain the current quaternion Q i in accordance with step 1-4, the step of substituting Q i 1-3 can then obtain the flight attitude angle information at the current moment;
  • Step 2-1 According to the Kalman filter algorithm, set the current sampling time as k, the last moment as k-1, and the optimal state as Then according to the Kalman filter algorithm, the following steps are obtained:
  • Step 2-2 according to Predict the current state of the obstacle avoidance system, and the predicted value is recorded. Which leads to the following way:
  • A represents a state transition matrix matrix
  • u k represents the current time input
  • system matrix B denotes the control matrix avoidance, It consists of two parts, one part is the product between the optimal state at the previous moment and matrix A, and the other part is the product between the input quantity at the current moment and matrix B;
  • Step 2-3 using the covariance matrix equation, and setting the current state matrix as P k , the following methods can be obtained:
  • P k-1 is the optimal solution estimated by the covariance matrix at the previous moment, and Q is the inherent noise matrix of the prediction model;
  • Step 2-3 set the current observation value as z k , the current observation matrix as H, and the covariance matrix of the observation noise as R, the following methods can be obtained:
  • K is called the Kalman coefficient matrix
  • K is expressed as:
  • the value of K directly affects the proportion of the observed value and the predicted value.
  • I is the identity matrix
  • the present invention has the following advantages: the capacitor C1 and the pins 1 and 3 of the power supply unit U1 provide a low-impedance path, and the capacitor C2 stores the obtained electric energy, thereby maintaining the stability of the operation of the power supply unit U1, and the output of the power supply unit U1
  • the terminal uses capacitor C4 and capacitor C3 to ground to filter out the interference band of the output terminal
  • the clock module uses the frequency stability of the crystal oscillator to generate a series of stable frequency signals through the inverter and the oscillator circuit, and then adjusts the frequency signal as the system clock.
  • the reset circuit uses the resistor R1 and the capacitor C6 to charge and discharge, while the capacitor C8 in the operation processing module is grounded to filter the interference signal during the operation of the processor U3, while the inductor L1 and the inductor L2 are used to filter the transmission signal, thereby improving the detection signal.
  • Diode D5, diode D2 and diode D1 are used for unidirectional transmission of voltage to prevent reverse transmission of voltage when the device is powered off; while the ultrasonic transmitting unit and receiving unit use ultrasonic ranging according to the speed of sound and ultrasonic transmission,
  • the received time interval judges and estimates the obstacles and the distance between the obstacles and the obstacles during the flight of the drone, and then accurately judges, and then makes adjustments through the alarm prompt, and then automatically adjusts the flight trajectory to complete the specified flight task.

Landscapes

  • Engineering & Computer Science (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Measurement Of Velocity Or Position Using Acoustic Or Ultrasonic Waves (AREA)

Abstract

Provided are a vision-based crop protection unmanned aerial vehicle obstacle-avoidance system and obstacle avoidance method thereof, the obstacle avoidance system comprising: a power supply module, a control module, and a sensor measurement module; the power supply module transmits an adjusted output power to the control module and the sensor measurement module so as to provide a power source for the system module, and the frequency of a crystal oscillator is used to stabilize a frequency signal; the control module receives a detection signal fed back by the sensor measurement module to control an obtained detection signal, thus driving the operation of the subsequent module; by means of an ultrasonic ranging method, the sensor measurement module determines and estimates, according to the speed of sound waves and the time interval of ultrasonic transmission and reception, an obstacle and the distance between the obstacle and the unmanned aerial vehicle during its flight, and thus makes an accurate determination, and automatically adjusts the flight trajectory to complete a specified flight task.

Description

一种基于视觉的植保无人机避障系统及其避障方法A vision-based plant protection UAV obstacle avoidance system and its obstacle avoidance method 技术领域technical field
本发明涉及一种无人机避障技术领域,尤其是一种基于视觉的植保无人机避障系统及其避障方法。The invention relates to the technical field of UAV obstacle avoidance, in particular to a vision-based plant protection UAV obstacle avoidance system and an obstacle avoidance method.
背景技术Background technique
随着无人机技术的发展,无人机广泛应用于军事和民用的各个领域,自主飞行控制及避障能力是保障无人机安全飞行的前提条件,因此自动避障成了无人机自动化或智能化的关键所在,而所谓无人机"自动避障",就是无人机飞行器在自动飞行的过程中遇到障碍物时,通过在线测量的方式自动识别,有效规避障碍物,达到安全飞行的系统。With the development of UAV technology, UAVs are widely used in various fields of military and civilian use. Autonomous flight control and obstacle avoidance are the prerequisites to ensure the safe flight of UAVs. Therefore, automatic obstacle avoidance has become the automation of UAVs. Or the key to intelligence, and the so-called "automatic obstacle avoidance" of UAVs means that when UAVs encounter obstacles in the process of automatic flight, they will automatically identify through online measurement, effectively avoid obstacles, and achieve safety. flying system.
而无人机的避障采集系统是需要准确采集来自无人机上的检测传感器数据,然后经过数据处理,输出姿态角、偏航角、高度、气压、位置和速度等信息,而飞行控制系统依据接收的信息控制其它模块的运行,使得无人机能按期望的效果飞行,进而检测传感器系统输出信息的精度值,间接地影响飞行品质的好坏,进而达不到预期飞行的效果,而无人机的控制芯片容易受外界噪音等因素干扰,从而导致采集的数据精度不高。The obstacle avoidance acquisition system of the UAV needs to accurately collect the detection sensor data from the UAV, and then through data processing, output attitude angle, yaw angle, altitude, air pressure, position and speed and other information, and the flight control system based on The received information controls the operation of other modules, so that the UAV can fly according to the expected effect, and then detects the accuracy value of the output information of the sensor system, which indirectly affects the quality of the flight, and then fails to achieve the expected flight effect. The control chip of the machine is easily disturbed by external noise and other factors, resulting in low accuracy of the collected data.
发明内容SUMMARY OF THE INVENTION
发明目的:提供一种基于视觉的植保无人机避障系统,以解决上述问题。Purpose of the invention: to provide a vision-based plant protection UAV obstacle avoidance system to solve the above problems.
技术方案:一种基于视觉的植保无人机避障系统,包括:Technical solution: a vision-based plant protection UAV obstacle avoidance system, including:
用于将调整的输出电源传递给控制模块和传感器测量模块,从而给无人机避障系统模块提供动力源的电源供电模块;A power supply module for transmitting the adjusted output power to the control module and the sensor measurement module, thereby providing a power source for the UAV obstacle avoidance system module;
用于接收传感器测量模块反馈的检测信号,从而对获取的检测信号进行控制,进而传达不同的控制指令的控制模块;A control module for receiving the detection signal fed back by the sensor measurement module, so as to control the acquired detection signal, and then convey different control instructions;
用于通过超声波测距方式依据声波速度和超声波发射、接收的时间间隔判断和预算出无人机飞行过程中障碍物以及与障碍物之间的距离的传感器测量模块。A sensor measurement module for judging and estimating the obstacles and the distances between the obstacles and the obstacles during the flight of the UAV according to the speed of the ultrasonic waves and the time interval of ultrasonic transmission and reception through the ultrasonic ranging method.
根据本发明的一个方面,所述电源供电模块包括电源模块、时钟复位模块,其中所述电源模块包括电容C2、电容C1、电源器U1、电容C4、电容C3、电容C5,其中所述电容C2一端分别与电容C1一端、输入电源12V、电源器U1引脚1和引脚3连接;所述电容C2另一端分别与电容C1另一端、电源其U1引脚2连接;所述电源器U1引脚5分别与电容C3一端、电容C5正极端连接;所述电容C3另一端分别与电容C5负极端、地线GND连接;所述电源器U1引脚4与电容C4负极端连接;所述电容C4正 极端与地线GND连接。According to one aspect of the present invention, the power supply module includes a power module and a clock reset module, wherein the power module includes a capacitor C2, a capacitor C1, a power supply U1, a capacitor C4, a capacitor C3, and a capacitor C5, wherein the capacitor C2 One end is respectively connected with one end of the capacitor C1, the input power supply 12V, the pin 1 and pin 3 of the power supply U1; the other end of the capacitor C2 is respectively connected with the other end of the capacitor C1 and the U1 pin 2 of the power supply; the power supply U1 leads The pin 5 is respectively connected with one end of the capacitor C3 and the positive terminal of the capacitor C5; the other end of the capacitor C3 is respectively connected with the negative terminal of the capacitor C5 and the ground wire GND; the pin 4 of the power supply device U1 is connected with the negative terminal of the capacitor C4; The positive terminal of C4 is connected to the ground wire GND.
根据本发明的一个方面,所述时钟复位模块包括按钮S1、电容C6、电阻R1、三极管Q1、电阻R2、电阻R3、电容C7,其中所述按钮S1一端分别与电阻R1一端、电容C6正极端连接;所述按钮S1另一端分别与电容C6负极端、电阻R3一端、电容C7负极端、地线GND连接;所述电阻R1另一端与三极管Q1基极端连接;所述三极管Q1发射极端分别与电容C2一端、电容C1一端、输入电源12V、电源器U1引脚1和引脚3连接;所述三极管Q1集电极端与电阻R2一端连接;所述电阻R2另一端分别与电阻R3另一端、电容C7正极端连接。According to an aspect of the present invention, the clock reset module includes a button S1, a capacitor C6, a resistor R1, a transistor Q1, a resistor R2, a resistor R3, and a capacitor C7, wherein one end of the button S1 is respectively connected to one end of the resistor R1 and the positive end of the capacitor C6. Connection; the other end of the button S1 is respectively connected with the negative terminal of the capacitor C6, one end of the resistor R3, the negative terminal of the capacitor C7, and the ground wire GND; the other end of the resistor R1 is connected with the base terminal of the transistor Q1; the emitter terminal of the transistor Q1 is respectively connected with One end of the capacitor C2, one end of the capacitor C1, the input power supply 12V, the pin 1 and pin 3 of the power supply U1 are connected; the collector end of the transistor Q1 is connected with one end of the resistor R2; the other end of the resistor R2 is respectively connected with the other end of the resistor R3, The positive terminal of capacitor C7 is connected.
根据本发明的一个方面,所述控制模块包括控制单元、超声波接收单元、报警模块,其中所述控制单元包括控制器U2,所述控制器U2引脚60分别与电阻R2另一端、电阻R3另一端、电容C7正极端连接;所述控制器U2引脚5分别与电源器U1引脚5分别与电容C3一端、电容C5正极端连接;所述控制器U2引脚7分别与按钮S1一端、电阻R1一端、电容C6正极端连接;According to one aspect of the present invention, the control module includes a control unit, an ultrasonic receiving unit, and an alarm module, wherein the control unit includes a controller U2, and the pin 60 of the controller U2 is respectively connected to the other end of the resistor R2 and the other end of the resistor R3. One end, the positive terminal of the capacitor C7 is connected; the pin 5 of the controller U2 and the pin 5 of the power supply U1 are respectively connected to one end of the capacitor C3 and the positive terminal of the capacitor C5; the pin 7 of the controller U2 is respectively connected to one end of the button S1, One end of the resistor R1 and the positive end of the capacitor C6 are connected;
根据本发明的一个方面,所述超声波接收单元包括电阻R9、电容C19、电阻R10、电阻R8、电容C18、接收器L1,其中所述电阻R9一端与控制器U2引脚62连接;所述电阻R9另一端分别与电容C19一端、电阻R10一端、电阻R8一端连接;所述电容C19另一端与地线GND连接;所述电阻R10另一端与控制器U2引脚581连接;所述电阻R8另一端与电容C18一端连接;所述电容C18另一端与接收器L1一端连接;所述接收器L1另一端与地线GND连接;According to an aspect of the present invention, the ultrasonic receiving unit includes a resistor R9, a capacitor C19, a resistor R10, a resistor R8, a capacitor C18, and a receiver L1, wherein one end of the resistor R9 is connected to the controller U2 pin 62; the resistor The other end of R9 is connected to one end of capacitor C19, one end of resistor R10 and one end of resistor R8 respectively; the other end of capacitor C19 is connected to ground GND; the other end of resistor R10 is connected to pin 581 of controller U2; the other end of resistor R8 One end is connected to one end of the capacitor C18; the other end of the capacitor C18 is connected to one end of the receiver L1; the other end of the receiver L1 is connected to the ground wire GND;
根据本发明的一个方面,所述报警模块包括电阻R7、三极管Q5、报警器LS2,其中所述电阻R7一端与控制器U2引脚50连接;所述电阻R7另一端与三极管Q5基极端连接;所述三极管Q5集电极端与报警器LS1一端连接;所述报警器LS1另一端与输入电源+12V连接;所述三极管Q5发射极端与地线GND连接。According to one aspect of the present invention, the alarm module includes a resistor R7, a transistor Q5, and an alarm LS2, wherein one end of the resistor R7 is connected to the pin 50 of the controller U2; the other end of the resistor R7 is connected to the base terminal of the transistor Q5; The collector terminal of the transistor Q5 is connected to one end of the alarm LS1; the other end of the alarm LS1 is connected to the input power +12V; the emitter terminal of the transistor Q5 is connected to the ground wire GND.
根据本发明的一个方面,所述传感器测量模块包括运行处理模块、驱动模块、A/D转换模块、超声波发射单元,其中所述运行处理模块包括电感L1、电容C9、电感L2、二极管D2、二极管D1、电感L3、电容C8、处理器U3,其中所述电感L1一端分别与电容C9一端、电感L2一端、地线GND连接;所述电感L1另一端与处理器U3引脚9连接;所述电容C9另一端与处理器U3引脚10连接;所述电感L2另一端与处理器U3引脚11连接‘所述处理器U3引脚23和18均与地线GND连接;所述处理器U3引脚 20与电容C8正极端连接;所述电容C8负极端与地线GND连接;所述处理器U3引脚1与电感L3一端连接;所述电感L3另一端与地线GND连接;所述处理器U3引脚4分别与控制器U2引脚7、按钮S1一端、电阻R1一端、电容C6正极端连接;所述处理器U3引脚8与二极管D2负极端连接;所述二极管D2正极端分别与二极管D1正极端、控制器U2引脚5、电源器U1引脚5分别与电容C3一端、电容C5正极端连接。According to one aspect of the present invention, the sensor measurement module includes an operation processing module, a driving module, an A/D conversion module, and an ultrasonic transmitting unit, wherein the operation processing module includes an inductor L1, a capacitor C9, an inductor L2, a diode D2, a diode D1, inductor L3, capacitor C8, and processor U3, wherein one end of the inductor L1 is respectively connected to one end of the capacitor C9, one end of the inductor L2, and the ground wire GND; the other end of the inductor L1 is connected to the pin 9 of the processor U3; the The other end of the capacitor C9 is connected to the processor U3 pin 10; the other end of the inductance L2 is connected to the processor U3 pin 11; the processor U3 pins 23 and 18 are both connected to the ground wire GND; the processor U3 The pin 20 is connected to the positive terminal of the capacitor C8; the negative terminal of the capacitor C8 is connected to the ground wire GND; the pin 1 of the processor U3 is connected to one end of the inductor L3; the other end of the inductor L3 is connected to the ground wire GND; the The processor U3 pin 4 is respectively connected with the controller U2 pin 7, one end of the button S1, one end of the resistor R1 and the positive end of the capacitor C6; the processor U3 pin 8 is connected with the negative end of the diode D2; the positive end of the diode D2 is connected They are respectively connected to the positive terminal of the diode D1, the pin 5 of the controller U2, and the pin 5 of the power supply U1 to one end of the capacitor C3 and the positive terminal of the capacitor C5, respectively.
根据本发明的一个方面,所述驱动模块包括驱动器U4、电容C10、二极管D5、电容C12、电容C13、电容C11,其中所述驱动器U4引脚16与控制器U2引脚42连接;所述驱动器U4引脚13分别与电容C12一端、二极管D5正极端、二极管D1负极端、驱动器U4引脚2和引脚4、电容C10一端连接;所述电容C10另一端与地线GND连接;所述电容C12另一端分别与电容C13一端、驱动器U4引脚11和引脚9、地线GND连接;所述电容C11一端与驱动器U4引脚12连接;所述电容C11另一端与启动器U4引脚8连接。According to an aspect of the present invention, the driving module includes a driver U4, a capacitor C10, a diode D5, a capacitor C12, a capacitor C13, and a capacitor C11, wherein the pin 16 of the driver U4 is connected to the pin 42 of the controller U2; the driver U4 pin 13 is respectively connected to one end of capacitor C12, the positive end of diode D5, the negative end of diode D1, the pin 2 and pin 4 of driver U4, and one end of capacitor C10; the other end of the capacitor C10 is connected to the ground wire GND; the capacitor The other end of C12 is respectively connected to one end of capacitor C13, the pin 11 and pin 9 of the driver U4, and the ground wire GND; one end of the capacitor C11 is connected to the pin 12 of the driver U4; the other end of the capacitor C11 is connected to the pin 8 of the starter U4 connect.
根据本发明的一个方面,所述A/D转换模块包括电容C17、转换器U5、电感L4、二极管D6、电阻R6、电感L5、电容C15、电容C16,其中所述转换器U5引脚6和引脚3分别与电容C17一端、电感L4一端、处理器U3引脚24连接;所述转换器U5引脚2分别与电感L4另一端、二极管D6正极端连接;所述转换器U5引脚5分别与电阻R6一端、电感L5一端、电容C15一端连接;所述转换器U5引脚4分别与电容C17另一端、电阻R6另一端、电容C16一端、地线GND连接;所述电容C16另一端与电容C15另一端、电感L5另一端、控制器U2引脚55、二极管D6负极端连接。According to one aspect of the present invention, the A/D conversion module includes a capacitor C17, a converter U5, an inductor L4, a diode D6, a resistor R6, an inductor L5, a capacitor C15, and a capacitor C16, wherein the converter U5 pin 6 and Pin 3 is respectively connected with one end of capacitor C17, one end of inductor L4, and pin 24 of processor U3; described converter U5 pin 2 is respectively connected with the other end of inductor L4 and the positive end of diode D6; described converter U5 pin 5 Connect to one end of resistor R6, one end of inductor L5 and one end of capacitor C15 respectively; the pin 4 of the converter U5 is respectively connected to the other end of capacitor C17, the other end of resistor R6, one end of capacitor C16, and the ground wire GND; the other end of capacitor C16 Connect to the other end of capacitor C15, the other end of inductor L5, pin 55 of controller U2, and the negative end of diode D6.
根据本发明的一个方面,所述超声波发射单元包括三极管Q4、二极管D3、电阻R5、二极管D4、电阻R5、三极管Q3、电容C14、三极管Q2、电阻R4、发射器L2,其中所述三极管Q4集电极端与处理器U3引脚23连接;所述三极管Q4基极端与二极管D3负极端连接;所述三极管Q4发射极端分别与二极管D4正极端、三极管Q3发射极端、三极管Q2发射极端、发射器L2一端连接;所述二极管D3正极端分别与电阻R5一端、三极管Q3集电极端、二极管D4负极端、电容C14一端、电阻R4一端、三极管Q2集电极端、二极管D5负极端连接;所述电阻R5另一端分别与三极管Q3基极端、电容C14另一端连接;所述电阻R4另一端分别与三极管Q2基极端、发射器L2另一端连接。According to an aspect of the present invention, the ultrasonic emitting unit includes a transistor Q4, a diode D3, a resistor R5, a diode D4, a resistor R5, a transistor Q3, a capacitor C14, a transistor Q2, a resistor R4, and a transmitter L2, wherein the transistor Q4 collects The electrode terminal is connected to the processor U3 pin 23; the base terminal of the transistor Q4 is connected to the negative terminal of the diode D3; the emitter terminal of the transistor Q4 is respectively connected to the positive terminal of the diode D4, the emitter terminal of the transistor Q3, the emitter terminal of the transistor Q2, and the emitter L2 One end is connected; the positive end of the diode D3 is respectively connected with one end of the resistor R5, the collector end of the transistor Q3, the negative end of the diode D4, one end of the capacitor C14, one end of the resistor R4, the collector end of the transistor Q2, and the negative end of the diode D5; the resistor R5 The other end is respectively connected with the base end of the transistor Q3 and the other end of the capacitor C14; the other end of the resistor R4 is respectively connected with the base end of the transistor Q2 and the other end of the transmitter L2.
根据本发明的一个方面,所述电容C4、所述电容C5、所述电容C6、所述电容C7、 所述电容C8型号为电解电容;所述二极管D1、所述二极管D2、所述二极管D5型号均为稳压二极管;所述三极管Q1型号为PNP;所述三极管Q2、所述三极管Q3、所述三极管Q4、所述三极管Q5型号均为NPN;所述电源器U1型号为MIC5219;所述处理器U3型号为MPU6050;所述控制器U2型号为STM32;所述驱动器U4型号为HMC5883L。According to an aspect of the present invention, the capacitor C4, the capacitor C5, the capacitor C6, the capacitor C7, and the capacitor C8 are electrolytic capacitors; the diode D1, the diode D2, the diode D5 The models are all Zener diodes; the transistor Q1 model is PNP; the transistor Q2, the transistor Q3, the transistor Q4, and the transistor Q5 are all NPN models; the power supply U1 model is MIC5219; the The model of the processor U3 is MPU6050; the model of the controller U2 is STM32; the model of the driver U4 is HMC5883L.
根据本发明的一个方面,一种基于视觉的植保无人机避障系统的避障方法,其特征在于以下步骤:According to one aspect of the present invention, a vision-based obstacle avoidance method for a plant protection UAV obstacle avoidance system is characterized by the following steps:
步骤1、运行处理模块通过处理器U3先测量出自身的姿态信息,然后将测量的三轴角速度和加速度姿态信息通过A/D转换模块转换为数字信号,然后再将数字信号传递给控制模块进行处理; Step 1. The operation processing module first measures its own attitude information through the processor U3, and then converts the measured three-axis angular velocity and acceleration attitude information into digital signals through the A/D conversion module, and then transmits the digital signals to the control module for processing. deal with;
步骤2、驱动模块通过超声波测距传感器变化,控制无人机的航向与方位,而驱动器U4利用各向异性磁阻技术,能够测量出地球磁场方向和大小,而驱动器U4引脚连接电容C11,而电容C11的作用是滤波,进而提高了驱动运算响应,在通过电容C13作为储存器件,给驱动器U4提供启动电源,降低瞬间启动造成电压冲击。 Step 2. The drive module controls the heading and orientation of the UAV through the change of the ultrasonic ranging sensor, and the driver U4 uses the anisotropic magnetoresistance technology to measure the direction and size of the earth's magnetic field, and the driver U4 pin is connected to the capacitor C11, The function of the capacitor C11 is to filter, thereby improving the response of the driving operation. The capacitor C13 is used as a storage device to provide the driver U4 with a startup power supply, thereby reducing the voltage shock caused by the instantaneous startup.
根据本发明的一个方面,一种基于视觉的植保无人机避障系统的避障方法,其特征在于,所述步骤1和步骤2进一步得出,飞行姿态角和卡尔曼滤波算法;According to an aspect of the present invention, a vision-based obstacle avoidance method for a plant protection UAV obstacle avoidance system is characterized in that, the steps 1 and 2 further obtain, the flight attitude angle and the Kalman filter algorithm;
步骤1-1、飞行姿态角包括横滚角、俯仰角和偏航角,而横滚角是机体纵向对称面与纵向铅垂面之间的夹角,用
Figure PCTCN2020104940-appb-000001
表示,俯仰角是机体纵轴与纵向水平轴之间的夹角,用θ表示,偏航角是机体纵轴在水平面xoy的投影与地理坐标系中本初子午线之间的夹角,用ω表示,从而由地球坐标系向机体坐标系转换可以通过3次旋转来实现,其转换公式如下:
Step 1-1. The flight attitude angle includes roll angle, pitch angle and yaw angle, and the roll angle is the angle between the longitudinal symmetry plane of the body and the longitudinal vertical plane.
Figure PCTCN2020104940-appb-000001
Indicates that the pitch angle is the angle between the longitudinal axis of the body and the longitudinal horizontal axis, expressed by θ, and the yaw angle is the angle between the projection of the longitudinal axis of the body on the horizontal plane xoy and the prime meridian in the geographic coordinate system, denoted by ω Therefore, the conversion from the earth coordinate system to the body coordinate system can be realized by three rotations, and the conversion formula is as follows:
Figure PCTCN2020104940-appb-000002
Figure PCTCN2020104940-appb-000002
步骤1-2、其中
Figure PCTCN2020104940-appb-000003
姿态矩阵表示如下:
Steps 1-2, of which
Figure PCTCN2020104940-appb-000003
The attitude matrix is represented as follows:
Figure PCTCN2020104940-appb-000004
Figure PCTCN2020104940-appb-000004
而飞行姿态角采用四元数法进行姿态解算,用Q来表示姿态四元数,其中Q=q 0+ q 1i+q 2j+q 3k,q 0为实属,q 1、q 2、q 3为虚数且‖Q‖=1,进而有上述方式可得: The flight attitude angle is calculated by the quaternion method, and Q is used to represent the attitude quaternion, where Q=q 0 + q 1 i+q 2 j+q 3 k, q 0 is true, q 1 , q 2 , q 3 are imaginary numbers and ‖Q‖=1, and then the above method can be obtained:
Figure PCTCN2020104940-appb-000005
Figure PCTCN2020104940-appb-000005
步骤1-3、进而根据上述两组方程的代入,可得飞行姿态角和四元数之间的关系,表示方程如下:Steps 1-3, and then according to the substitution of the above two sets of equations, the relationship between the flight attitude angle and the quaternion can be obtained, and the equation is as follows:
Figure PCTCN2020104940-appb-000006
Figure PCTCN2020104940-appb-000006
步骤1-4、进而得出姿态四元数Q的微分方程表示如下:Steps 1-4, and then the differential equation of the attitude quaternion Q is obtained as follows:
Figure PCTCN2020104940-appb-000007
Figure PCTCN2020104940-appb-000007
其中Q 0是规定初始四元数,ω x,ω y,ω z分别为x、y、z轴输出角速度,进而根据步骤1-4可以求得当前四元数Q i,将Q i代入步骤1-3进而可以求出当前时刻的飞行姿态角信息; Where Q 0 is a predetermined initial quaternion, ω x, ω y, ω z are x, y, z-axis output angular velocity, and thus can obtain the current quaternion Q i in accordance with step 1-4, the step of substituting Q i 1-3 can then obtain the flight attitude angle information at the current moment;
步骤2-1、根据卡尔曼滤波算法设定当前采样时间为k,上一时刻为k-1,最优状态为
Figure PCTCN2020104940-appb-000008
进而根据卡尔曼滤波算法得出如下步骤:
Step 2-1. According to the Kalman filter algorithm, set the current sampling time as k, the last moment as k-1, and the optimal state as
Figure PCTCN2020104940-appb-000008
Then according to the Kalman filter algorithm, the following steps are obtained:
步骤2-2、根据
Figure PCTCN2020104940-appb-000009
对避障系统当前时刻状态进行预测,而预测值记
Figure PCTCN2020104940-appb-000010
进而得出如下方式:
Step 2-2, according to
Figure PCTCN2020104940-appb-000009
Predict the current state of the obstacle avoidance system, and the predicted value is recorded.
Figure PCTCN2020104940-appb-000010
Which leads to the following way:
Figure PCTCN2020104940-appb-000011
Figure PCTCN2020104940-appb-000011
其中矩阵A表示状态转移矩阵,u k表示当前时刻输入量,矩阵B表示避障系统控制矩阵,
Figure PCTCN2020104940-appb-000012
由两部分组成,一部分是上一时刻最优状态与矩阵A之间的乘积,另一部分是当前时刻输入量与矩阵B之间的乘积;
Wherein A represents a state transition matrix matrix, u k represents the current time input, the system matrix B denotes the control matrix avoidance,
Figure PCTCN2020104940-appb-000012
It consists of two parts, one part is the product between the optimal state at the previous moment and matrix A, and the other part is the product between the input quantity at the current moment and matrix B;
步骤2-3、采用协方差矩阵方程,设定当前状态矩阵为P k,可得如下方式: Step 2-3, using the covariance matrix equation, and setting the current state matrix as P k , the following methods can be obtained:
P k=AP k-1A T+Q P k =AP k-1 A T +Q
其中P k-1为上一时刻协方差矩阵估算出的最优解,Q为预测模型固有噪声矩阵; where P k-1 is the optimal solution estimated by the covariance matrix at the previous moment, and Q is the inherent noise matrix of the prediction model;
步骤2-3、设当前观测值为z k,当前观测矩阵为H,观测噪声的协方差矩阵为R,可得如下方式: Step 2-3, set the current observation value as z k , the current observation matrix as H, and the covariance matrix of the observation noise as R, the following methods can be obtained:
Figure PCTCN2020104940-appb-000013
Figure PCTCN2020104940-appb-000013
从而将预测值和观测值进行数据融合,得到当前状态的最优估计值
Figure PCTCN2020104940-appb-000014
的方式:
Thus, the predicted value and the observed value are fused to obtain the optimal estimated value of the current state.
Figure PCTCN2020104940-appb-000014
The way:
Figure PCTCN2020104940-appb-000015
Figure PCTCN2020104940-appb-000015
其中
Figure PCTCN2020104940-appb-000016
表示实际观测值与预测值之间的残差,K称为卡尔曼系数矩阵,K表达方式为:
in
Figure PCTCN2020104940-appb-000016
Represents the residual between the actual observed value and the predicted value, K is called the Kalman coefficient matrix, and K is expressed as:
K=P kH T/[HP kH T+R] K=P k H T /[HP k H T +R]
其中K值大小直接影响观测值和预测值占比情况,K大则观测值加权系数大,反之预测值大;Among them, the value of K directly affects the proportion of the observed value and the predicted value. The larger the K is, the larger the weighted coefficient of the observed value is, and vice versa; the larger the predicted value;
而为了保障算法的递归运行,还需实时更新当前最优估计值
Figure PCTCN2020104940-appb-000017
的协方差矩阵P′ k的表达方式如下:
In order to ensure the recursive operation of the algorithm, it is necessary to update the current optimal estimated value in real time.
Figure PCTCN2020104940-appb-000017
The expression of the covariance matrix P′ k is as follows:
P k′=(I-KH)P k P k ′=(I-KH)P k
其中I是单位矩阵。where I is the identity matrix.
有益效果:本发明设计一种基于视觉的植保无人机避障系统及其避障方法,利用处理器U3进行加速度和角速度采集的超声波发射单元以及驱动器U4,而控制单元可以与收处理器U3和驱动器U4进行信息的传递,从而获取加速度、角速度和方位角姿态信息并对其进行数据融合处理,此外,控制芯片容易受外界噪音等因素干扰,从而导致采集的数据精度不高,进而将输出的姿态角转换为四元数,然后用卡尔曼滤波算法对控制采集的数据进行静态修正,最后通过滤波融合后,使姿态角达到运行精度,无人机自主避障系统结构简单,失控飞行的风险大大降低,同时采用飞行姿态角和卡尔曼滤波算法减轻了嵌入避障系统的负荷,使得无人机的机动性和执行力增强,进而使无人机能够较好地对障碍物进行预先规避,自主调整飞行方向。Beneficial effects: The present invention designs a vision-based plant protection UAV obstacle avoidance system and its obstacle avoidance method, which utilizes the processor U3 for the ultrasonic transmitting unit and the driver U4 for acceleration and angular velocity acquisition, and the control unit can be combined with the receiving processor U3. It transmits information with the driver U4, so as to obtain acceleration, angular velocity and azimuth attitude information and perform data fusion processing. In addition, the control chip is easily interfered by external noise and other factors, resulting in low accuracy of the collected data, and then the output The attitude angle of the UAV is converted into a quaternion, and then the Kalman filter algorithm is used to statically correct the data collected by the control. Finally, after filtering and fusion, the attitude angle can reach the operating accuracy. The UAV autonomous obstacle avoidance system has a simple structure and can fly out of control. The risk is greatly reduced, and the flight attitude angle and Kalman filter algorithm are used to reduce the load of the embedded obstacle avoidance system, which enhances the maneuverability and execution of the UAV, and enables the UAV to better avoid obstacles in advance. , adjust the flight direction independently.
附图说明Description of drawings
图1是本发明的结构框图。Fig. 1 is a structural block diagram of the present invention.
图2是本发明的无人机避障系统分布图。FIG. 2 is a distribution diagram of the UAV obstacle avoidance system of the present invention.
图3是本发明的电源模块电路图。3 is a circuit diagram of a power module of the present invention.
图4是本发明的时钟复位模块电路图。FIG. 4 is a circuit diagram of a clock reset module of the present invention.
图5是本发明的A/D转换模块电路图。5 is a circuit diagram of an A/D conversion module of the present invention.
图6是本发明的超声波发射单元电路图。FIG. 6 is a circuit diagram of the ultrasonic transmitting unit of the present invention.
图7是本发明的超声波接收单元电路图。FIG. 7 is a circuit diagram of the ultrasonic receiving unit of the present invention.
图8是本发明的报警模块电路图。FIG. 8 is a circuit diagram of an alarm module of the present invention.
图9是本发明的飞行姿态角示意图。FIG. 9 is a schematic diagram of the flight attitude angle of the present invention.
具体实施方式detailed description
如图1所示,在该实施例中,一种基于视觉的植保无人机避障系统,包括:As shown in Figure 1, in this embodiment, a vision-based obstacle avoidance system for plant protection UAVs includes:
用于将调整的输出电源传递给控制模块和传感器测量模块,从而给无人机避障系统模块提供动力源的电源供电模块;A power supply module for transmitting the adjusted output power to the control module and the sensor measurement module, thereby providing a power source for the UAV obstacle avoidance system module;
用于接收传感器测量模块反馈的检测信号,从而对获取的检测信号进行控制,进而传达不同的控制指令的控制模块;A control module for receiving the detection signal fed back by the sensor measurement module, so as to control the acquired detection signal, and then convey different control instructions;
用于通过超声波测距方式依据声波速度和超声波发射、接收的时间间隔判断和预算出无人机飞行过程中障碍物以及与障碍物之间的距离的传感器测量模块。A sensor measurement module for judging and estimating the obstacles and the distances between the obstacles and the obstacles during the flight of the UAV according to the speed of the ultrasonic waves and the time interval of ultrasonic transmission and reception through the ultrasonic ranging method.
在进一步的实施例中,如图2所示,In a further embodiment, as shown in Figure 2,
在更进一步的实施例中,In a further embodiment,
在进一步的实施例中,如图3所示,所述电源模块包括电容C2、电容C1、电源器U1、电容C4、电容C3、电容C5。In a further embodiment, as shown in FIG. 3 , the power module includes a capacitor C2, a capacitor C1, a power supply U1, a capacitor C4, a capacitor C3, and a capacitor C5.
在更进一步的实施例中,所述电源模块中所述电容C2一端分别与电容C1一端、输入电源12V、电源器U1引脚1和引脚3连接;所述电容C2另一端分别与电容C1另一端、电源其U1引脚2连接;所述电源器U1引脚5分别与电容C3一端、电容C5正极端连接;所述电容C3另一端分别与电容C5负极端、地线GND连接;所述电源器U1引脚4与电容C4负极端连接;所述电容C4正极端与地线GND连接。In a further embodiment, one end of the capacitor C2 in the power module is respectively connected to one end of the capacitor C1, the input power supply 12V, the pin 1 and pin 3 of the power supply U1; the other end of the capacitor C2 is respectively connected to the capacitor C1 The other end is connected to the U1 pin 2 of the power supply; the U1 pin 5 of the power supply is respectively connected to one end of the capacitor C3 and the positive end of the capacitor C5; the other end of the capacitor C3 is connected to the negative end of the capacitor C5 and the ground wire GND respectively; The pin 4 of the power supply U1 is connected to the negative terminal of the capacitor C4; the positive terminal of the capacitor C4 is connected to the ground wire GND.
在进一步的实施例中,如图4所示,所述时钟复位模块包括按钮S1、电容C6、电阻R1、三极管Q1、电阻R2、电阻R3、电容C7。In a further embodiment, as shown in FIG. 4 , the clock reset module includes a button S1, a capacitor C6, a resistor R1, a transistor Q1, a resistor R2, a resistor R3, and a capacitor C7.
在更进一步的实施例中,所述时钟复位模块中所述按钮S1一端分别与电阻R1一端、电容C6正极端连接;所述按钮S1另一端分别与电容C6负极端、电阻R3一端、电容C7负极端、地线GND连接;所述电阻R1另一端与三极管Q1基极端连接;所述三极管Q1发射极端分别与电容C2一端、电容C1一端、输入电源12V、电源器U1引脚1和引脚3连接;所述三极管Q1集电极端与电阻R2一端连接;所述电阻R2另一端分别与电阻R3另一端、电容C7正极端连接。In a further embodiment, one end of the button S1 in the clock reset module is respectively connected to one end of the resistor R1 and the positive end of the capacitor C6; the other end of the button S1 is respectively connected to the negative end of the capacitor C6, one end of the resistor R3 and the capacitor C7 The negative terminal and the ground wire GND are connected; the other end of the resistor R1 is connected to the base terminal of the transistor Q1; the emitter terminal of the transistor Q1 is respectively connected to one end of the capacitor C2, one end of the capacitor C1, the input power supply 12V, and the pin 1 and pin of the power supply U1. 3 is connected; the collector terminal of the transistor Q1 is connected to one end of the resistor R2; the other end of the resistor R2 is respectively connected to the other end of the resistor R3 and the positive terminal of the capacitor C7.
在进一步的实施例中,如图2所示,所述控制单元包括控制器U2,所述控制器U2引脚60分别与电阻R2另一端、电阻R3另一端、电容C7正极端连接;所述控制器U2引脚5分别与电源器U1引脚5分别与电容C3一端、电容C5正极端连接;所述控制器U2引脚7分别与按钮S1一端、电阻R1一端、电容C6正极端连接;In a further embodiment, as shown in FIG. 2 , the control unit includes a controller U2, and the pin 60 of the controller U2 is respectively connected to the other end of the resistor R2, the other end of the resistor R3, and the positive end of the capacitor C7; the The pin 5 of the controller U2 and the pin 5 of the power supply U1 are respectively connected with one end of the capacitor C3 and the positive end of the capacitor C5; the pin 7 of the controller U2 is respectively connected with one end of the button S1, one end of the resistor R1 and the positive end of the capacitor C6;
在进一步的实施例中,如图7所示,所述超声波接收单元包括电阻R9、电容C19、电阻R10、电阻R8、电容C18、接收器L1。In a further embodiment, as shown in FIG. 7 , the ultrasonic receiving unit includes a resistor R9, a capacitor C19, a resistor R10, a resistor R8, a capacitor C18, and a receiver L1.
更进一步的实施例中,所述超声波接收单元中所述电阻R9一端与控制器U2引脚62连接;所述电阻R9另一端分别与电容C19一端、电阻R10一端、电阻R8一端连接;所述电容C19另一端与地线GND连接;所述电阻R10另一端与控制器U2引脚581连接;所述电阻R8另一端与电容C18一端连接;所述电容C18另一端与接收器L1一端连接;所述接收器L1另一端与地线GND连接。In a further embodiment, one end of the resistor R9 in the ultrasonic receiving unit is connected to the pin 62 of the controller U2; the other end of the resistor R9 is respectively connected to one end of the capacitor C19, one end of the resistor R10, and one end of the resistor R8; the The other end of the capacitor C19 is connected to the ground wire GND; the other end of the resistor R10 is connected to the controller U2 pin 581; the other end of the resistor R8 is connected to one end of the capacitor C18; the other end of the capacitor C18 is connected to one end of the receiver L1; The other end of the receiver L1 is connected to the ground wire GND.
在进一步的实施例中,如图8所示,所述报警模块包括电阻R7、三极管Q5、报警器LS2。In a further embodiment, as shown in FIG. 8 , the alarm module includes a resistor R7, a transistor Q5, and an alarm LS2.
在更进一步的实施例中,所述报警模块中所述电阻R7一端与控制器U2引脚50连接;所述电阻R7另一端与三极管Q5基极端连接;所述三极管Q5集电极端与报警器LS1一端连接;所述报警器LS1另一端与输入电源+12V连接;所述三极管Q5发射极端与地线GND连接。In a further embodiment, one end of the resistor R7 in the alarm module is connected to the pin 50 of the controller U2; the other end of the resistor R7 is connected to the base end of the transistor Q5; the collector end of the transistor Q5 is connected to the alarm device One end of LS1 is connected; the other end of the alarm device LS1 is connected to the input power +12V; the emitter end of the transistor Q5 is connected to the ground wire GND.
在进一步的实施例中,如图2所示,所述运行处理模块包括电感L1、电容C9、电感L2、二极管D2、二极管D1、电感L3、电容C8、处理器U3。In a further embodiment, as shown in FIG. 2 , the operation processing module includes an inductor L1 , a capacitor C9 , an inductor L2 , a diode D2 , a diode D1 , an inductor L3 , a capacitor C8 , and a processor U3 .
在更进一步的实施例中,所述运行处理模块中所述电感L1一端分别与电容C9一端、电感L2一端、地线GND连接;所述电感L1另一端与处理器U3引脚9连接;所述电容C9另一端与处理器U3引脚10连接;所述电感L2另一端与处理器U3引脚11连接‘所述处理器U3引脚23和18均与地线GND连接;所述处理器U3引脚20与电容C8 正极端连接;所述电容C8负极端与地线GND连接;所述处理器U3引脚1与电感L3一端连接;所述电感L3另一端与地线GND连接;所述处理器U3引脚4分别与控制器U2引脚7、按钮S1一端、电阻R1一端、电容C6正极端连接;所述处理器U3引脚8与二极管D2负极端连接;所述二极管D2正极端分别与二极管D1正极端、控制器U2引脚5、电源器U1引脚5分别与电容C3一端、电容C5正极端连接。In a further embodiment, one end of the inductor L1 in the operation processing module is respectively connected to one end of the capacitor C9, one end of the inductor L2, and the ground wire GND; the other end of the inductor L1 is connected to the pin 9 of the processor U3; The other end of the capacitor C9 is connected with the processor U3 pin 10; the other end of the inductance L2 is connected with the processor U3 pin 11, and the processor U3 pins 23 and 18 are both connected with the ground GND; the processor The U3 pin 20 is connected to the positive terminal of the capacitor C8; the negative terminal of the capacitor C8 is connected to the ground wire GND; the processor U3 pin 1 is connected to one end of the inductor L3; the other end of the inductor L3 is connected to the ground wire GND; The processor U3 pin 4 is respectively connected with the controller U2 pin 7, one end of the button S1, one end of the resistor R1, and the positive end of the capacitor C6; the processor U3 pin 8 is connected with the negative end of the diode D2; the positive end of the diode D2 is connected; The terminals are respectively connected to the positive terminal of the diode D1, the pin 5 of the controller U2, and the pin 5 of the power supply U1 are respectively connected to one end of the capacitor C3 and the positive terminal of the capacitor C5.
在进一步的实施例中,如图2所示,所述驱动模块包括驱动器U4、电容C10、二极管D5、电容C12、电容C13、电容C11。In a further embodiment, as shown in FIG. 2 , the driving module includes a driver U4, a capacitor C10, a diode D5, a capacitor C12, a capacitor C13, and a capacitor C11.
在更进一步的实施例中,所述驱动模块中所述驱动器U4引脚16与控制器U2引脚42连接;所述驱动器U4引脚13分别与电容C12一端、二极管D5正极端、二极管D1负极端、驱动器U4引脚2和引脚4、电容C10一端连接;所述电容C10另一端与地线GND连接;所述电容C12另一端分别与电容C13一端、驱动器U4引脚11和引脚9、地线GND连接;所述电容C11一端与驱动器U4引脚12连接;所述电容C11另一端与启动器U4引脚8连接。In a further embodiment, the driver U4 pin 16 in the driver module is connected to the controller U2 pin 42; the driver U4 pin 13 is respectively connected to one end of the capacitor C12, the positive end of the diode D5, and the negative end of the diode D1. The extreme, the driver U4 pin 2 and pin 4, and one end of the capacitor C10 are connected; the other end of the capacitor C10 is connected to the ground wire GND; the other end of the capacitor C12 is respectively connected with one end of the capacitor C13, the driver U4 pin 11 and pin 9 , the ground wire is connected to GND; one end of the capacitor C11 is connected to the pin 12 of the driver U4; the other end of the capacitor C11 is connected to the pin 8 of the starter U4.
在进一步的实施例中,如图5所示,所述A/D转换模块包括电容C17、转换器U5、电感L4、二极管D6、电阻R6、电感L5、电容C15、电容C16。In a further embodiment, as shown in FIG. 5 , the A/D conversion module includes a capacitor C17 , a converter U5 , an inductor L4 , a diode D6 , a resistor R6 , an inductor L5 , a capacitor C15 , and a capacitor C16 .
在更进一步的实施例中,所述A/D转换模块中所述转换器U5引脚6和引脚3分别与电容C17一端、电感L4一端、处理器U3引脚24连接;所述转换器U5引脚2分别与电感L4另一端、二极管D6正极端连接;所述转换器U5引脚5分别与电阻R6一端、电感L5一端、电容C15一端连接;所述转换器U5引脚4分别与电容C17另一端、电阻R6另一端、电容C16一端、地线GND连接;所述电容C16另一端与电容C15另一端、电感L5另一端、控制器U2引脚55、二极管D6负极端连接。In a further embodiment, the converter U5 pin 6 and pin 3 in the A/D conversion module are respectively connected to one end of the capacitor C17, one end of the inductor L4, and the processor U3 pin 24; the converter U5 pin 2 is respectively connected with the other end of the inductor L4 and the positive end of the diode D6; the converter U5 pin 5 is respectively connected with one end of the resistor R6, one end of the inductor L5 and one end of the capacitor C15; the converter U5 pin 4 is respectively connected with The other end of the capacitor C17, the other end of the resistor R6, one end of the capacitor C16, and the ground wire GND are connected; the other end of the capacitor C16 is connected to the other end of the capacitor C15, the other end of the inductor L5, the controller U2 pin 55, and the negative end of the diode D6.
在进一步的实施例中,如图6所示,所述超声波发射单元包括三极管Q4、二极管D3、电阻R5、二极管D4、电阻R5、三极管Q3、电容C14、三极管Q2、电阻R4、发射器L2。In a further embodiment, as shown in FIG. 6 , the ultrasonic emitting unit includes a transistor Q4, a diode D3, a resistor R5, a diode D4, a resistor R5, a transistor Q3, a capacitor C14, a transistor Q2, a resistor R4, and a transmitter L2.
在更进一步的实施例中,所述超声波发射单元中所述三极管Q4集电极端与处理器U3引脚23连接;所述三极管Q4基极端与二极管D3负极端连接;所述三极管Q4发射极端分别与二极管D4正极端、三极管Q3发射极端、三极管Q2发射极端、发射器L2一端连接;所述二极管D3正极端分别与电阻R5一端、三极管Q3集电极端、二极管D4负极端、电容C14一端、电阻R4一端、三极管Q2集电极端、二极管D5负极端连 接;所述电阻R5另一端分别与三极管Q3基极端、电容C14另一端连接;所述电阻R4另一端分别与三极管Q2基极端、发射器L2另一端连接。In a further embodiment, the collector terminal of the transistor Q4 in the ultrasonic transmitting unit is connected to the pin 23 of the processor U3; the base terminal of the transistor Q4 is connected to the negative terminal of the diode D3; the emitter terminal of the transistor Q4 is respectively Connect with the positive terminal of diode D4, the emitter terminal of transistor Q3, the emitter terminal of transistor Q2, and one end of transmitter L2; the positive terminal of diode D3 is respectively connected to one end of resistor R5, the collector terminal of transistor Q3, the negative terminal of diode D4, one terminal of capacitor C14, and one terminal of resistor R5. One end of R4 is connected to the collector end of the transistor Q2 and the negative end of the diode D5; the other end of the resistor R5 is connected to the base end of the transistor Q3 and the other end of the capacitor C14 respectively; the other end of the resistor R4 is respectively connected to the base end of the transistor Q2 and the transmitter L2 Connect the other end.
在进一步的实施例中,所述电容C4、所述电容C5、所述电容C6、所述电容C7、所述电容C8型号为电解电容;所述二极管D1、所述二极管D2、所述二极管D5型号均为稳压二极管;所述三极管Q1型号为PNP;所述三极管Q2、所述三极管Q3、所述三极管Q4、所述三极管Q5型号均为NPN;所述电源器U1型号为MIC5219;所述处理器U3型号为MPU6050;所述控制器U2型号为STM32;所述驱动器U4型号为HMC5883L。In a further embodiment, the capacitor C4, the capacitor C5, the capacitor C6, the capacitor C7, and the capacitor C8 are electrolytic capacitors; the diode D1, the diode D2, and the diode D5 The models are all Zener diodes; the transistor Q1 model is PNP; the transistor Q2, the transistor Q3, the transistor Q4, and the transistor Q5 are all NPN models; the power supply U1 model is MIC5219; the The model of the processor U3 is MPU6050; the model of the controller U2 is STM32; the model of the driver U4 is HMC5883L.
在进一步的实施例中,一种基于视觉的植保无人机避障系统的避障方法,其特征在于以下步骤:In a further embodiment, a vision-based obstacle avoidance method for a plant protection UAV obstacle avoidance system is characterized by the following steps:
步骤1、运行处理模块通过处理器U3先测量出自身的姿态信息,然后将测量的三轴角速度和加速度姿态信息通过A/D转换模块转换为数字信号,然后再将数字信号传递给控制模块进行处理; Step 1. The operation processing module first measures its own attitude information through the processor U3, and then converts the measured three-axis angular velocity and acceleration attitude information into digital signals through the A/D conversion module, and then transmits the digital signals to the control module for processing. deal with;
步骤2、驱动模块通过超声波测距传感器变化,控制无人机的航向与方位,而驱动器U4利用各向异性磁阻技术,能够测量出地球磁场方向和大小,而驱动器U4引脚连接电容C11,而电容C11的作用是滤波,进而提高了驱动运算响应,在通过电容C13作为储存器件,给驱动器U4提供启动电源,降低瞬间启动造成电压冲击。 Step 2. The drive module controls the heading and orientation of the UAV through the change of the ultrasonic ranging sensor, and the driver U4 uses the anisotropic magnetoresistance technology to measure the direction and size of the earth's magnetic field, and the driver U4 pin is connected to the capacitor C11, The function of the capacitor C11 is to filter, thereby improving the response of the driving operation. The capacitor C13 is used as a storage device to provide the driver U4 with a startup power supply, thereby reducing the voltage shock caused by the instantaneous startup.
在更进一步的实施例中,如图9所示,一种基于视觉的植保无人机避障系统的避障方法,其特征在于,所述步骤1和步骤2进一步得出,飞行姿态角和卡尔曼滤波算法;In a further embodiment, as shown in FIG. 9 , a vision-based obstacle avoidance method for a plant protection UAV obstacle avoidance system is characterized in that the steps 1 and 2 further obtain that the flight attitude angle and Kalman filter algorithm;
步骤1-1、飞行姿态角包括横滚角、俯仰角和偏航角,而横滚角是机体纵向对称面与纵向铅垂面之间的夹角,用
Figure PCTCN2020104940-appb-000018
表示,俯仰角是机体纵轴与纵向水平轴之间的夹角,用θ表示,偏航角是机体纵轴在水平面xoy的投影与地理坐标系中本初子午线之间的夹角,用ω表示,从而由地球坐标系向机体坐标系转换可以通过3次旋转来实现,其转换公式如下:
Step 1-1. The flight attitude angle includes roll angle, pitch angle and yaw angle, and the roll angle is the angle between the longitudinal symmetry plane of the body and the longitudinal vertical plane.
Figure PCTCN2020104940-appb-000018
Indicates that the pitch angle is the angle between the longitudinal axis of the body and the longitudinal horizontal axis, expressed by θ, and the yaw angle is the angle between the projection of the longitudinal axis of the body on the horizontal plane xoy and the prime meridian in the geographic coordinate system, denoted by ω Therefore, the conversion from the earth coordinate system to the body coordinate system can be realized by three rotations, and the conversion formula is as follows:
Figure PCTCN2020104940-appb-000019
Figure PCTCN2020104940-appb-000019
步骤1-2、其中
Figure PCTCN2020104940-appb-000020
姿态矩阵表示如下:
Steps 1-2, of which
Figure PCTCN2020104940-appb-000020
The attitude matrix is represented as follows:
Figure PCTCN2020104940-appb-000021
Figure PCTCN2020104940-appb-000021
而飞行姿态角采用四元数法进行姿态解算,用Q来表示姿态四元数,其中Q=q 0+q 1i+q 2j+q 3k,q 0为实属,q 1、q 2、q 3为虚数且‖Q‖=1,进而有上述方式可得: The flight attitude angle uses the quaternion method to calculate the attitude, and uses Q to represent the attitude quaternion, where Q=q 0 +q 1 i+q 2 j+q 3 k, q 0 is true, q 1 , q 2 , q 3 are imaginary numbers and ‖Q‖=1, and then the above method can be obtained:
Figure PCTCN2020104940-appb-000022
Figure PCTCN2020104940-appb-000022
步骤1-3、进而根据上述两组方程的代入,可得飞行姿态角和四元数之间的关系,表示方程如下:Steps 1-3, and then according to the substitution of the above two sets of equations, the relationship between the flight attitude angle and the quaternion can be obtained, and the equation is as follows:
Figure PCTCN2020104940-appb-000023
Figure PCTCN2020104940-appb-000023
步骤1-4、进而得出姿态四元数Q的微分方程表示如下:Steps 1-4, and then the differential equation of the attitude quaternion Q is obtained as follows:
Figure PCTCN2020104940-appb-000024
Figure PCTCN2020104940-appb-000024
其中Q 0是规定初始四元数,ω x,ω y,ω z分别为x、y、z轴输出角速度,进而根据步骤1-4可以求得当前四元数Q i,将Q i代入步骤1-3进而可以求出当前时刻的飞行姿态角信息; Where Q 0 is a predetermined initial quaternion, ω x, ω y, ω z are x, y, z-axis output angular velocity, and thus can obtain the current quaternion Q i in accordance with step 1-4, the step of substituting Q i 1-3 can then obtain the flight attitude angle information at the current moment;
步骤2-1、根据卡尔曼滤波算法设定当前采样时间为k,上一时刻为k-1,最优状态为
Figure PCTCN2020104940-appb-000025
进而根据卡尔曼滤波算法得出如下步骤:
Step 2-1. According to the Kalman filter algorithm, set the current sampling time as k, the last moment as k-1, and the optimal state as
Figure PCTCN2020104940-appb-000025
Then according to the Kalman filter algorithm, the following steps are obtained:
步骤2-2、根据
Figure PCTCN2020104940-appb-000026
对避障系统当前时刻状态进行预测,而预测值记
Figure PCTCN2020104940-appb-000027
进而得出如下方式:
Step 2-2, according to
Figure PCTCN2020104940-appb-000026
Predict the current state of the obstacle avoidance system, and the predicted value is recorded.
Figure PCTCN2020104940-appb-000027
Which leads to the following way:
Figure PCTCN2020104940-appb-000028
Figure PCTCN2020104940-appb-000028
其中矩阵A表示状态转移矩阵,u k表示当前时刻输入量,矩阵B表示避障系统控制 矩阵,
Figure PCTCN2020104940-appb-000029
由两部分组成,一部分是上一时刻最优状态与矩阵A之间的乘积,另一部分是当前时刻输入量与矩阵B之间的乘积;
Wherein A represents a state transition matrix matrix, u k represents the current time input, the system matrix B denotes the control matrix avoidance,
Figure PCTCN2020104940-appb-000029
It consists of two parts, one part is the product between the optimal state at the previous moment and matrix A, and the other part is the product between the input quantity at the current moment and matrix B;
步骤2-3、采用协方差矩阵方程,设定当前状态矩阵为P k,可得如下方式: Step 2-3, using the covariance matrix equation, and setting the current state matrix as P k , the following methods can be obtained:
P k=AP k-1A T+Q P k =AP k-1 A T +Q
其中P k-1为上一时刻协方差矩阵估算出的最优解,Q为预测模型固有噪声矩阵; where P k-1 is the optimal solution estimated by the covariance matrix at the previous moment, and Q is the inherent noise matrix of the prediction model;
步骤2-3、设当前观测值为z k,当前观测矩阵为H,观测噪声的协方差矩阵为R,可得如下方式: Step 2-3, set the current observation value as z k , the current observation matrix as H, and the covariance matrix of the observation noise as R, the following methods can be obtained:
Figure PCTCN2020104940-appb-000030
Figure PCTCN2020104940-appb-000030
从而将预测值和观测值进行数据融合,得到当前状态的最优估计值
Figure PCTCN2020104940-appb-000031
的方式:
Thus, the predicted value and the observed value are fused to obtain the optimal estimated value of the current state.
Figure PCTCN2020104940-appb-000031
The way:
Figure PCTCN2020104940-appb-000032
Figure PCTCN2020104940-appb-000032
其中
Figure PCTCN2020104940-appb-000033
表示实际观测值与预测值之间的残差,K称为卡尔曼系数矩阵,K表达方式为:
in
Figure PCTCN2020104940-appb-000033
Represents the residual between the actual observed value and the predicted value, K is called the Kalman coefficient matrix, and K is expressed as:
K=P kH T/[HP kH T+R] K=P k H T /[HP k H T +R]
其中K值大小直接影响观测值和预测值占比情况,K大则观测值加权系数大,反之预测值大;Among them, the value of K directly affects the proportion of the observed value and the predicted value. The larger the K is, the larger the weighted coefficient of the observed value is, and vice versa; the larger the predicted value;
而为了保障算法的递归运行,还需实时更新当前最优估计值
Figure PCTCN2020104940-appb-000034
的协方差矩阵P′ k的表达方式如下:
In order to ensure the recursive operation of the algorithm, it is necessary to update the current optimal estimated value in real time.
Figure PCTCN2020104940-appb-000034
The expression of the covariance matrix P′ k is as follows:
P k′=(I-KH)P k P k ′=(I-KH)P k
其中I是单位矩阵。where I is the identity matrix.
总之,本发明具有以下优点:电容C1与电源器U1引脚1和引脚3提供低阻抗通路,电容C2对获取的电能进行储存,进而维持电源器U1运行时的稳定,而电源器U1输出端利用电容C4与电容C3接地用于滤除输出端的干扰波段,而时钟模块通过反相器与震荡电路利用晶振的频率稳定性生成系列稳定的频率信号然后再对频率信号进行调理作为系统的时钟信号,而复位电路则是利用电阻R1和电容C6进行充放电,而运行处理模块中电容C8接地过滤处理器U3运算时干扰信号,而电感L1和电感L2用于 筛选传输信号,进而提高检测信号的稳定,而二极管D5、二极管D2和二极管D1用于电压的单向传输,防止设备断电时,电压反向传输;而超声波发射单元和接收单元通过超声波测距方式依据声波速度和超声波发射、接收的时间间隔判断和预算出无人机飞行过程中障碍物以及与障碍物之间的距离,进而准确做出判断,再通过报警提示从而做出调整,进而自动调整飞行轨迹完成规定的飞行任务。In a word, the present invention has the following advantages: the capacitor C1 and the pins 1 and 3 of the power supply unit U1 provide a low-impedance path, and the capacitor C2 stores the obtained electric energy, thereby maintaining the stability of the operation of the power supply unit U1, and the output of the power supply unit U1 The terminal uses capacitor C4 and capacitor C3 to ground to filter out the interference band of the output terminal, and the clock module uses the frequency stability of the crystal oscillator to generate a series of stable frequency signals through the inverter and the oscillator circuit, and then adjusts the frequency signal as the system clock. The reset circuit uses the resistor R1 and the capacitor C6 to charge and discharge, while the capacitor C8 in the operation processing module is grounded to filter the interference signal during the operation of the processor U3, while the inductor L1 and the inductor L2 are used to filter the transmission signal, thereby improving the detection signal. Diode D5, diode D2 and diode D1 are used for unidirectional transmission of voltage to prevent reverse transmission of voltage when the device is powered off; while the ultrasonic transmitting unit and receiving unit use ultrasonic ranging according to the speed of sound and ultrasonic transmission, The received time interval judges and estimates the obstacles and the distance between the obstacles and the obstacles during the flight of the drone, and then accurately judges, and then makes adjustments through the alarm prompt, and then automatically adjusts the flight trajectory to complete the specified flight task. .
另外需要说明的是,在上述具体实施方式中所描述的各个具体技术特征,在不矛盾的情况下,可以通过任何合适的方式进行组合。为了避免不必要的重复,本发明对各种可能的组合方式不再另行说明。In addition, it should be noted that each specific technical feature described in the above-mentioned specific implementation manner may be combined in any suitable manner under the circumstance that there is no contradiction. In order to avoid unnecessary repetition, the present invention will not describe various possible combinations.

Claims (10)

  1. 一种基于视觉的植保无人机避障系统,其特征在于,包括以下模块:A vision-based plant protection UAV obstacle avoidance system, characterized in that it includes the following modules:
    用于将调整的输出电源传递给控制模块和传感器测量模块,从而给无人机避障系统模块提供动力源的电源供电模块;A power supply module for transmitting the adjusted output power to the control module and the sensor measurement module, thereby providing a power source for the UAV obstacle avoidance system module;
    用于接收传感器测量模块反馈的检测信号,从而对获取的检测信号进行控制,进而传达不同的控制指令的控制模块;A control module for receiving the detection signal fed back by the sensor measurement module, so as to control the acquired detection signal, and then convey different control instructions;
    用于通过超声波测距方式依据声波速度和超声波发射、接收的时间间隔判断和预算出无人机飞行过程中障碍物以及与障碍物之间的距离的传感器测量模块。A sensor measurement module for judging and estimating the obstacles and the distances between the obstacles and the obstacles during the flight of the UAV according to the speed of the ultrasonic waves and the time interval of ultrasonic transmission and reception through the ultrasonic ranging method.
  2. 根据权利要求1所述的一种基于视觉的植保无人机避障系统,其特征在于,所述电源供电模块包括电源模块、时钟复位模块,其中所述电源模块包括电容C2、电容C1、电源器U1、电容C4、电容C3、电容C5,其中所述电容C2一端分别与电容C1一端、输入电源12V、电源器U1引脚1和引脚3连接;所述电容C2另一端分别与电容C1另一端、电源其U1引脚2连接;所述电源器U1引脚5分别与电容C3一端、电容C5正极端连接;所述电容C3另一端分别与电容C5负极端、地线GND连接;所述电源器U1引脚4与电容C4负极端连接;所述电容C4正极端与地线GND连接。The vision-based obstacle avoidance system for plant protection drones according to claim 1, wherein the power supply module comprises a power supply module and a clock reset module, wherein the power supply module comprises a capacitor C2, a capacitor C1, a power supply U1, capacitor C4, capacitor C3, capacitor C5, wherein one end of the capacitor C2 is respectively connected with one end of the capacitor C1, the input power supply 12V, the pin 1 and pin 3 of the power supply U1; the other end of the capacitor C2 is respectively connected with the capacitor C1 The other end is connected to the U1 pin 2 of the power supply; the U1 pin 5 of the power supply is respectively connected to one end of the capacitor C3 and the positive end of the capacitor C5; the other end of the capacitor C3 is connected to the negative end of the capacitor C5 and the ground wire GND respectively; The pin 4 of the power supply U1 is connected to the negative terminal of the capacitor C4; the positive terminal of the capacitor C4 is connected to the ground wire GND.
  3. 根据权利要求2所述的一种基于视觉的植保无人机避障系统,其特征在于,所述时钟复位模块包括按钮S1、电容C6、电阻R1、三极管Q1、电阻R2、电阻R3、电容C7,其中所述按钮S1一端分别与电阻R1一端、电容C6正极端连接;所述按钮S1另一端分别与电容C6负极端、电阻R3一端、电容C7负极端、地线GND连接;所述电阻R1另一端与三极管Q1基极端连接;所述三极管Q1发射极端分别与电容C2一端、电容C1一端、输入电源12V、电源器U1引脚1和引脚3连接;所述三极管Q1集电极端与电阻R2一端连接;所述电阻R2另一端分别与电阻R3另一端、电容C7正极端连接。A vision-based plant protection drone obstacle avoidance system according to claim 2, wherein the clock reset module comprises a button S1, a capacitor C6, a resistor R1, a transistor Q1, a resistor R2, a resistor R3, and a capacitor C7 , wherein one end of the button S1 is respectively connected with one end of the resistor R1 and the positive end of the capacitor C6; the other end of the button S1 is respectively connected with the negative end of the capacitor C6, one end of the resistor R3, the negative end of the capacitor C7, and the ground wire GND; the resistor R1 The other end is connected with the base end of the transistor Q1; the emitter end of the transistor Q1 is respectively connected with one end of the capacitor C2, one end of the capacitor C1, the input power supply 12V, the pin 1 and pin 3 of the power supply U1; the collector end of the transistor Q1 is connected with the resistor One end of R2 is connected; the other end of the resistor R2 is connected to the other end of the resistor R3 and the positive end of the capacitor C7 respectively.
  4. 根据权利要求1所述的一种基于视觉的植保无人机避障系统,其特征在于,所述控制模块包括控制单元、超声波接收单元、报警模块,其中所述控制单元包括控制器U2,所述控制器U2引脚60分别与电阻R2另一端、电阻R3另一端、电容C7正极端连接;所述控制器U2引脚5分别与电源器U1引脚5分别与电容C3一端、电容C5正极端连接;所述控制器U2引脚7分别与按钮S1一端、电阻R1一端、电容C6正极端连接;A vision-based plant protection UAV obstacle avoidance system according to claim 1, wherein the control module comprises a control unit, an ultrasonic receiving unit, and an alarm module, wherein the control unit comprises a controller U2, and the The controller U2 pin 60 is respectively connected with the other end of the resistor R2, the other end of the resistor R3, and the positive terminal of the capacitor C7; Extreme connection; the controller U2 pin 7 is respectively connected with one end of the button S1, one end of the resistor R1, and the positive end of the capacitor C6;
    所述超声波接收单元包括电阻R9、电容C19、电阻R10、电阻R8、电容C18、接 收器L1,其中所述电阻R9一端与控制器U2引脚62连接;所述电阻R9另一端分别与电容C19一端、电阻R10一端、电阻R8一端连接;所述电容C19另一端与地线GND连接;所述电阻R10另一端与控制器U2引脚581连接;所述电阻R8另一端与电容C18一端连接;所述电容C18另一端与接收器L1一端连接;所述接收器L1另一端与地线GND连接;The ultrasonic receiving unit includes a resistor R9, a capacitor C19, a resistor R10, a resistor R8, a capacitor C18, and a receiver L1, wherein one end of the resistor R9 is connected to the controller U2 pin 62; the other end of the resistor R9 is respectively connected to the capacitor C19 One end, one end of the resistor R10, and one end of the resistor R8 are connected; the other end of the capacitor C19 is connected to the ground wire GND; the other end of the resistor R10 is connected to the pin 581 of the controller U2; the other end of the resistor R8 is connected to one end of the capacitor C18; The other end of the capacitor C18 is connected to one end of the receiver L1; the other end of the receiver L1 is connected to the ground wire GND;
    所述报警模块包括电阻R7、三极管Q5、报警器LS2,其中所述电阻R7一端与控制器U2引脚50连接;所述电阻R7另一端与三极管Q5基极端连接;所述三极管Q5集电极端与报警器LS1一端连接;所述报警器LS1另一端与输入电源+12V连接;所述三极管Q5发射极端与地线GND连接。The alarm module includes a resistor R7, a transistor Q5 and an alarm LS2, wherein one end of the resistor R7 is connected to the controller U2 pin 50; the other end of the resistor R7 is connected to the base terminal of the transistor Q5; the collector terminal of the transistor Q5 One end of the alarm device LS1 is connected; the other end of the alarm device LS1 is connected to the input power +12V; the emitter end of the transistor Q5 is connected to the ground wire GND.
  5. 根据权利要求1所述的一种基于视觉的植保无人机避障系统,其特征在于,所述传感器测量模块包括运行处理模块、驱动模块、A/D转换模块、超声波发射单元,其中所述运行处理模块包括电感L1、电容C9、电感L2、二极管D2、二极管D1、电感L3、电容C8、处理器U3,其中所述电感L1一端分别与电容C9一端、电感L2一端、地线GND连接;所述电感L1另一端与处理器U3引脚9连接;所述电容C9另一端与处理器U3引脚10连接;所述电感L2另一端与处理器U3引脚11连接‘所述处理器U3引脚23和18均与地线GND连接;所述处理器U3引脚20与电容C8正极端连接;所述电容C8负极端与地线GND连接;所述处理器U3引脚1与电感L3一端连接;所述电感L3另一端与地线GND连接;所述处理器U3引脚4分别与控制器U2引脚7、按钮S1一端、电阻R1一端、电容C6正极端连接;所述处理器U3引脚8与二极管D2负极端连接;所述二极管D2正极端分别与二极管D1正极端、控制器U2引脚5、电源器U1引脚5分别与电容C3一端、电容C5正极端连接。A vision-based plant protection UAV obstacle avoidance system according to claim 1, wherein the sensor measurement module comprises an operation processing module, a driving module, an A/D conversion module, and an ultrasonic transmitting unit, wherein the The operation processing module includes an inductor L1, a capacitor C9, an inductor L2, a diode D2, a diode D1, an inductor L3, a capacitor C8, and a processor U3, wherein one end of the inductor L1 is respectively connected to one end of the capacitor C9, one end of the inductor L2, and the ground wire GND; The other end of the inductance L1 is connected to the processor U3 pin 9; the other end of the capacitor C9 is connected to the processor U3 pin 10; the other end of the inductance L2 is connected to the processor U3 pin 11. The processor U3 Pins 23 and 18 are both connected to the ground wire GND; the processor U3 pin 20 is connected to the positive terminal of the capacitor C8; the negative terminal of the capacitor C8 is connected to the ground wire GND; the processor U3 pin 1 is connected to the inductor L3 One end is connected; the other end of the inductor L3 is connected to the ground wire GND; the pin 4 of the processor U3 is respectively connected to the pin 7 of the controller U2, one end of the button S1, one end of the resistor R1, and the positive end of the capacitor C6; Pin 8 of U3 is connected to the negative terminal of diode D2; the positive terminal of diode D2 is respectively connected to the positive terminal of diode D1, the pin 5 of controller U2, and the pin 5 of power supply U1 are respectively connected to one end of capacitor C3 and the positive terminal of capacitor C5.
  6. 根据权利要求5所述的一种基于视觉的植保无人机避障系统,其特征在于,所述驱动模块包括驱动器U4、电容C10、二极管D5、电容C12、电容C13、电容C11,其中所述驱动器U4引脚16与控制器U2引脚42连接;所述驱动器U4引脚13分别与电容C12一端、二极管D5正极端、二极管D1负极端、驱动器U4引脚2和引脚4、电容C10一端连接;所述电容C10另一端与地线GND连接;所述电容C12另一端分别与电容C13一端、驱动器U4引脚11和引脚9、地线GND连接;所述电容C11一端与驱动器U4引脚12连接;所述电容C11另一端与启动器U4引脚8连接。The vision-based obstacle avoidance system for plant protection drones according to claim 5, wherein the drive module comprises a driver U4, a capacitor C10, a diode D5, a capacitor C12, a capacitor C13, and a capacitor C11, wherein the The driver U4 pin 16 is connected to the controller U2 pin 42; the driver U4 pin 13 is respectively connected to one end of the capacitor C12, the positive end of the diode D5, the negative end of the diode D1, the driver U4 pin 2 and pin 4, and one end of the capacitor C10. The other end of the capacitor C10 is connected to the ground wire GND; the other end of the capacitor C12 is respectively connected to one end of the capacitor C13, the driver U4 pin 11 and pin 9, and the ground wire GND; one end of the capacitor C11 is connected to the driver U4 lead Pin 12 is connected; the other end of the capacitor C11 is connected to pin 8 of the starter U4.
  7. 根据权利要求5所述的一种基于视觉的植保无人机避障系统,其特征在于,所述 A/D转换模块包括电容C17、转换器U5、电感L4、二极管D6、电阻R6、电感L5、电容C15、电容C16,其中所述转换器U5引脚6和引脚3分别与电容C17一端、电感L4一端、处理器U3引脚24连接;所述转换器U5引脚2分别与电感L4另一端、二极管D6正极端连接;所述转换器U5引脚5分别与电阻R6一端、电感L5一端、电容C15一端连接;所述转换器U5引脚4分别与电容C17另一端、电阻R6另一端、电容C16一端、地线GND连接;所述电容C16另一端与电容C15另一端、电感L5另一端、控制器U2引脚55、二极管D6负极端连接。The vision-based obstacle avoidance system for plant protection drones according to claim 5, wherein the A/D conversion module comprises a capacitor C17, a converter U5, an inductor L4, a diode D6, a resistor R6, and an inductor L5 , capacitor C15, capacitor C16, wherein the converter U5 pin 6 and pin 3 are respectively connected with one end of the capacitor C17, one end of the inductor L4, and the processor U3 pin 24; the converter U5 pin 2 is respectively connected with the inductor L4 The other end is connected to the positive end of the diode D6; the pin 5 of the converter U5 is respectively connected to one end of the resistor R6, one end of the inductor L5, and one end of the capacitor C15; the pin 4 of the converter U5 is respectively connected to the other end of the capacitor C17 and the other end of the resistor R6. One end of the capacitor C16 is connected to the ground wire GND; the other end of the capacitor C16 is connected to the other end of the capacitor C15, the other end of the inductor L5, the pin 55 of the controller U2, and the negative end of the diode D6.
  8. 根据权利要求5所述的一种基于视觉的植保无人机避障系统,其特征在于,所述超声波发射单元包括三极管Q4、二极管D3、电阻R5、二极管D4、电阻R5、三极管Q3、电容C14、三极管Q2、电阻R4、发射器L2,其中所述三极管Q4集电极端与处理器U3引脚23连接;所述三极管Q4基极端与二极管D3负极端连接;所述三极管Q4发射极端分别与二极管D4正极端、三极管Q3发射极端、三极管Q2发射极端、发射器L2一端连接;所述二极管D3正极端分别与电阻R5一端、三极管Q3集电极端、二极管D4负极端、电容C14一端、电阻R4一端、三极管Q2集电极端、二极管D5负极端连接;所述电阻R5另一端分别与三极管Q3基极端、电容C14另一端连接;所述电阻R4另一端分别与三极管Q2基极端、发射器L2另一端连接。A vision-based plant protection drone obstacle avoidance system according to claim 5, wherein the ultrasonic transmitting unit comprises a transistor Q4, a diode D3, a resistor R5, a diode D4, a resistor R5, a transistor Q3, and a capacitor C14 , transistor Q2, resistor R4, transmitter L2, wherein the collector terminal of the transistor Q4 is connected with the processor U3 pin 23; the base terminal of the transistor Q4 is connected with the negative terminal of the diode D3; the emitter terminal of the transistor Q4 is respectively connected with the diode The positive terminal of D4, the emitter terminal of the transistor Q3, the emitter terminal of the transistor Q2, and one end of the transmitter L2 are connected; the positive terminal of the diode D3 is respectively connected to one end of the resistor R5, the collector terminal of the transistor Q3, the negative terminal of the diode D4, the one end of the capacitor C14, and one end of the resistor R4. , the collector terminal of transistor Q2 and the negative terminal of diode D5 are connected; the other end of the resistor R5 is respectively connected with the base terminal of the transistor Q3 and the other end of the capacitor C14; the other end of the resistor R4 is respectively connected with the base terminal of the transistor Q2 and the other end of the transmitter L2 connect.
  9. 一种基于视觉的植保无人机避障系统的避障方法,其特征在于以下步骤:A vision-based obstacle avoidance method for a plant protection UAV obstacle avoidance system, characterized by the following steps:
    步骤1、运行处理模块通过处理器U3先测量出自身的姿态信息,然后将测量的三轴角速度和加速度姿态信息通过A/D转换模块转换为数字信号,然后再将数字信号传递给控制模块进行处理;Step 1. The operation processing module first measures its own attitude information through the processor U3, and then converts the measured three-axis angular velocity and acceleration attitude information into digital signals through the A/D conversion module, and then transmits the digital signals to the control module for processing. deal with;
    步骤2、驱动模块通过超声波测距传感器变化,控制无人机的航向与方位,而驱动器U4利用各向异性磁阻技术,能够测量出地球磁场方向和大小,而驱动器U4引脚连接电容C11,而电容C11的作用是滤波,进而提高了驱动运算响应,在通过电容C13作为储存器件,给驱动器U4提供启动电源,降低瞬间启动造成电压冲击。Step 2. The drive module controls the heading and orientation of the drone through the change of the ultrasonic ranging sensor, and the driver U4 uses the anisotropic magnetoresistive technology to measure the direction and size of the earth's magnetic field, and the driver U4 pin is connected to the capacitor C11, The function of the capacitor C11 is to filter, thereby improving the response of the drive operation. The capacitor C13 is used as a storage device to provide the driver U4 with starting power, which reduces the voltage shock caused by instantaneous startup.
  10. 根据权利要求9所述的一种基于视觉的植保无人机避障系统的避障方法,其特征在于,所述步骤1和步骤2进一步得出,飞行姿态角和卡尔曼滤波算法;The obstacle avoidance method of a vision-based plant protection UAV obstacle avoidance system according to claim 9, wherein the step 1 and the step 2 further obtain, the flight attitude angle and the Kalman filter algorithm;
    步骤1-1、飞行姿态角包括横滚角、俯仰角和偏航角,而横滚角是机体纵向对称面与纵向铅垂面之间的夹角,用
    Figure PCTCN2020104940-appb-100001
    表示,俯仰角是机体纵轴与纵向水平轴之间的夹角,用 θ表示,偏航角是机体纵轴在水平面xoy的投影与地理坐标系中本初子午线之间的夹角,用ω表示,从而由地球坐标系向机体坐标系转换可以通过3次旋转来实现,其转换公式如下:
    Step 1-1. The flight attitude angle includes roll angle, pitch angle and yaw angle, and the roll angle is the angle between the longitudinal symmetry plane of the body and the longitudinal vertical plane.
    Figure PCTCN2020104940-appb-100001
    Indicates that the pitch angle is the angle between the longitudinal axis of the body and the longitudinal horizontal axis, expressed by θ, and the yaw angle is the angle between the projection of the longitudinal axis of the body on the horizontal plane xoy and the prime meridian in the geographic coordinate system, denoted by ω Therefore, the conversion from the earth coordinate system to the body coordinate system can be realized by three rotations, and the conversion formula is as follows:
    Figure PCTCN2020104940-appb-100002
    Figure PCTCN2020104940-appb-100002
    步骤1-2、其中
    Figure PCTCN2020104940-appb-100003
    姿态矩阵表示如下:
    Steps 1-2, of which
    Figure PCTCN2020104940-appb-100003
    The attitude matrix is represented as follows:
    Figure PCTCN2020104940-appb-100004
    Figure PCTCN2020104940-appb-100004
    而飞行姿态角采用四元数法进行姿态解算,用Q来表示姿态四元数,其中Q=q 0+q 1i+q 2j+q 3k,q 0为实属,q 1、q 2、q 3为虚数且‖Q‖=1,进而有上述方式可得: The flight attitude angle uses the quaternion method to calculate the attitude, and uses Q to represent the attitude quaternion, where Q=q 0 +q 1 i+q 2 j+q 3 k, q 0 is true, q 1 , q 2 , q 3 are imaginary numbers and ‖Q‖=1, and then the above method can be obtained:
    Figure PCTCN2020104940-appb-100005
    Figure PCTCN2020104940-appb-100005
    步骤1-3、进而根据上述两组方程的代入,可得飞行姿态角和四元数之间的关系,表示方程如下:Steps 1-3, and then according to the substitution of the above two sets of equations, the relationship between the flight attitude angle and the quaternion can be obtained, and the equation is as follows:
    Figure PCTCN2020104940-appb-100006
    Figure PCTCN2020104940-appb-100006
    步骤1-4、进而得出姿态四元数Q的微分方程表示如下:Steps 1-4, and then the differential equation of the attitude quaternion Q is obtained as follows:
    Figure PCTCN2020104940-appb-100007
    Figure PCTCN2020104940-appb-100007
    其中Q 0是规定初始四元数,ω x,ω y,ω z分别为x、y、z轴输出角速度,进而根据步骤1-4可以求得当前四元数Q i,将Q i代入步骤1-3进而可以求出当前时刻的飞行姿态角信息; Where Q 0 is a predetermined initial quaternion, ω x, ω y, ω z are x, y, z-axis output angular velocity, and thus can obtain the current quaternion Q i in accordance with step 1-4, the step of substituting Q i 1-3 can then obtain the flight attitude angle information at the current moment;
    步骤2-1、根据卡尔曼滤波算法设定当前采样时间为k,上一时刻为k-1,最优状态为
    Figure PCTCN2020104940-appb-100008
    进而根据卡尔曼滤波算法得出如下步骤:
    Step 2-1. According to the Kalman filter algorithm, set the current sampling time as k, the last moment as k-1, and the optimal state as
    Figure PCTCN2020104940-appb-100008
    Then according to the Kalman filter algorithm, the following steps are obtained:
    步骤2-2、根据
    Figure PCTCN2020104940-appb-100009
    对避障系统当前时刻状态进行预测,而预测值记
    Figure PCTCN2020104940-appb-100010
    进而得出如下方式:
    Step 2-2, according to
    Figure PCTCN2020104940-appb-100009
    Predict the current state of the obstacle avoidance system, and the predicted value is recorded.
    Figure PCTCN2020104940-appb-100010
    Which leads to the following way:
    Figure PCTCN2020104940-appb-100011
    Figure PCTCN2020104940-appb-100011
    其中矩阵A表示状态转移矩阵,u k表示当前时刻输入量,矩阵B表示避障系统控制矩阵,
    Figure PCTCN2020104940-appb-100012
    由两部分组成,一部分是上一时刻最优状态与矩阵A之间的乘积,另一部分是当前时刻输入量与矩阵B之间的乘积;
    Wherein A represents a state transition matrix matrix, u k represents the current time input, the system matrix B denotes the control matrix avoidance,
    Figure PCTCN2020104940-appb-100012
    It consists of two parts, one part is the product between the optimal state at the previous moment and matrix A, and the other part is the product between the input quantity at the current moment and matrix B;
    步骤2-3、采用协方差矩阵方程,设定当前状态矩阵为P k,可得如下方式: Step 2-3, using the covariance matrix equation, and setting the current state matrix as P k , the following methods can be obtained:
    P k=AP k-1A T+Q P k =AP k-1 A T +Q
    其中P k-1为上一时刻协方差矩阵估算出的最优解,Q为预测模型固有噪声矩阵; where P k-1 is the optimal solution estimated by the covariance matrix at the previous moment, and Q is the inherent noise matrix of the prediction model;
    步骤2-3、设当前观测值为z k,当前观测矩阵为H,观测噪声的协方差矩阵为R,可得如下方式: Step 2-3, set the current observation value as z k , the current observation matrix as H, and the covariance matrix of the observation noise as R, the following methods can be obtained:
    Figure PCTCN2020104940-appb-100013
    Figure PCTCN2020104940-appb-100013
    从而将预测值和观测值进行数据融合,得到当前状态的最优估计值
    Figure PCTCN2020104940-appb-100014
    的方式:
    Thus, the predicted value and the observed value are fused to obtain the optimal estimated value of the current state.
    Figure PCTCN2020104940-appb-100014
    The way:
    Figure PCTCN2020104940-appb-100015
    Figure PCTCN2020104940-appb-100015
    其中
    Figure PCTCN2020104940-appb-100016
    表示实际观测值与预测值之间的残差,K称为卡尔曼系数矩阵,K表达方式为:
    in
    Figure PCTCN2020104940-appb-100016
    Represents the residual between the actual observed value and the predicted value, K is called the Kalman coefficient matrix, and K is expressed as:
    K=P kH T/[HP kH T+R] K=P k H T /[HP k H T +R]
    其中K值大小直接影响观测值和预测值占比情况,K大则观测值加权系数大,反之预测值大;Among them, the value of K directly affects the proportion of the observed value and the predicted value. The larger the K is, the larger the weighted coefficient of the observed value is, and vice versa; the larger the predicted value;
    而为了保障算法的递归运行,还需实时更新当前最优估计值
    Figure PCTCN2020104940-appb-100017
    的协方差矩阵P′ k的表达方式如下:
    In order to ensure the recursive operation of the algorithm, it is necessary to update the current optimal estimated value in real time.
    Figure PCTCN2020104940-appb-100017
    The expression of the covariance matrix P′ k is as follows:
    P′ k=(I-KH)P k P' k =(I-KH)P k
    其中I是单位矩阵。where I is the identity matrix.
PCT/CN2020/104940 2020-07-22 2020-07-27 Vision-based crop protection unmanned aerial vehicle obstacle-avoidance system and obstacle avoidance method thereof WO2022016562A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010711452.6 2020-07-22
CN202010711452.6A CN111781952A (en) 2020-07-22 2020-07-22 Plant protection unmanned aerial vehicle obstacle avoidance system based on vision and obstacle avoidance method thereof

Publications (1)

Publication Number Publication Date
WO2022016562A1 true WO2022016562A1 (en) 2022-01-27

Family

ID=72764739

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/104940 WO2022016562A1 (en) 2020-07-22 2020-07-27 Vision-based crop protection unmanned aerial vehicle obstacle-avoidance system and obstacle avoidance method thereof

Country Status (2)

Country Link
CN (1) CN111781952A (en)
WO (1) WO2022016562A1 (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155078A (en) * 2015-04-10 2016-11-23 广西电网有限责任公司防城港供电局 A kind of power transmission line inspection flight avoiding device and many rotors line walking unmanned plane
CN106646481A (en) * 2016-11-09 2017-05-10 国家电网公司 UAV ranging device used for power transmission line and ranging method of said UAV ranging device
CN106814744A (en) * 2017-03-14 2017-06-09 吉林化工学院 A kind of UAV Flight Control System and method
CN108263624A (en) * 2018-03-12 2018-07-10 广东翔龙航空技术有限公司 A kind of plant protection unmanned plane air security monitoring device
CN207867347U (en) * 2018-01-26 2018-09-14 深圳市风力源科技有限公司 A kind of aircraft and its obstacle avoidance circuit
JP2018144772A (en) * 2017-03-09 2018-09-20 株式会社Soken Flight device
US20190186918A1 (en) * 2017-12-20 2019-06-20 National Chung Shan Institute Of Science And Technology Uav navigation obstacle avoidance system and method thereof
CN109933084A (en) * 2017-12-18 2019-06-25 国鹄航空科技(杭州)股份有限公司 A kind of ultrasonic wave Real Time Obstacle Avoiding anticollision unmanned plane device
TW201928299A (en) * 2017-12-14 2019-07-16 國家中山科學研究院 Navigation/obstacle avoidance system and method for unmanned aerial vehicle including a sensing device, a signal processing module and a control module
CN209264954U (en) * 2018-11-30 2019-08-16 成都越凡创新科技有限公司 Ultrasonic distance measurement obstacle avoidance system
CN110146077A (en) * 2019-06-21 2019-08-20 台州知通科技有限公司 Pose of mobile robot angle calculation method
CN110262561A (en) * 2019-07-23 2019-09-20 哈尔滨理工大学 A kind of unmanned plane automatic obstacle-avoiding method
CN111426318A (en) * 2020-04-22 2020-07-17 中北大学 Low-cost AHRS course angle compensation method based on quaternion-extended Kalman filtering

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155078A (en) * 2015-04-10 2016-11-23 广西电网有限责任公司防城港供电局 A kind of power transmission line inspection flight avoiding device and many rotors line walking unmanned plane
CN106646481A (en) * 2016-11-09 2017-05-10 国家电网公司 UAV ranging device used for power transmission line and ranging method of said UAV ranging device
JP2018144772A (en) * 2017-03-09 2018-09-20 株式会社Soken Flight device
CN106814744A (en) * 2017-03-14 2017-06-09 吉林化工学院 A kind of UAV Flight Control System and method
TW201928299A (en) * 2017-12-14 2019-07-16 國家中山科學研究院 Navigation/obstacle avoidance system and method for unmanned aerial vehicle including a sensing device, a signal processing module and a control module
CN109933084A (en) * 2017-12-18 2019-06-25 国鹄航空科技(杭州)股份有限公司 A kind of ultrasonic wave Real Time Obstacle Avoiding anticollision unmanned plane device
US20190186918A1 (en) * 2017-12-20 2019-06-20 National Chung Shan Institute Of Science And Technology Uav navigation obstacle avoidance system and method thereof
CN207867347U (en) * 2018-01-26 2018-09-14 深圳市风力源科技有限公司 A kind of aircraft and its obstacle avoidance circuit
CN108263624A (en) * 2018-03-12 2018-07-10 广东翔龙航空技术有限公司 A kind of plant protection unmanned plane air security monitoring device
CN209264954U (en) * 2018-11-30 2019-08-16 成都越凡创新科技有限公司 Ultrasonic distance measurement obstacle avoidance system
CN110146077A (en) * 2019-06-21 2019-08-20 台州知通科技有限公司 Pose of mobile robot angle calculation method
CN110262561A (en) * 2019-07-23 2019-09-20 哈尔滨理工大学 A kind of unmanned plane automatic obstacle-avoiding method
CN111426318A (en) * 2020-04-22 2020-07-17 中北大学 Low-cost AHRS course angle compensation method based on quaternion-extended Kalman filtering

Also Published As

Publication number Publication date
CN111781952A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
WO2022094854A1 (en) Growth monitoring method for crops, and devices and storage medium
CN109154821B (en) Track generation method and device and unmanned ground vehicle
CN204270115U (en) The special flight control system of a kind of plant protection unmanned plane
CN106970651A (en) A kind of the autonomous flight system and control method of four rotor wing unmanned aerial vehicles of view-based access control model navigation
CN106774409B (en) A kind of semi-autonomous imitative ground flight system and its control method of unmanned plane
CN108827306A (en) A kind of unmanned plane SLAM navigation methods and systems based on Multi-sensor Fusion
CN104407586A (en) Drive decoupled plant protection unmanned aerial vehicle control system and control method
US20190080620A1 (en) Application and method for controlling flight of uninhabited airborne vehicle
CN105334861A (en) Unmanned plane flight control module, unmanned plane flight control system and unmanned plane
CN204613745U (en) A kind of multifunctional small-size quadrotor
WO2020133909A1 (en) Flight control and navigation integrated machine
WO2023077341A1 (en) Return flight method and apparatus of unmanned aerial vehicle, unmanned aerial vehicle, remote control device, system, and storage medium
CN106155075A (en) A kind of detachable unmanned aerial vehicle control system
CN104816829A (en) Skyeye aircraft applicable to investigation
CN108803633A (en) A kind of unmanned plane low latitude monitoring system based on mobile communications network
CN110806754A (en) Four-rotor aircraft attitude correction control system and method
CN108845587A (en) Unmanned plane real-time control system and unmanned plane
CN112612294A (en) Unmanned aerial vehicle with automatic laser radar obstacle avoidance system
CN110109469A (en) It is a kind of with color, identification, positioning, following function quadrotor drone control system
CN109782801A (en) Unmanned aerial vehicle control system
WO2022016562A1 (en) Vision-based crop protection unmanned aerial vehicle obstacle-avoidance system and obstacle avoidance method thereof
CN206892666U (en) A kind of autonomous flight system of four rotor wing unmanned aerial vehicles of view-based access control model navigation
CN110488857A (en) A kind of control system of the quadrotor unmanned vehicle of solar energy
CN114296471B (en) Unmanned aerial vehicle accurate landing control method based on full strapdown downward-looking camera
CN115237158A (en) Multi-rotor unmanned aerial vehicle autonomous tracking and landing control system and control method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20946211

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 07/07/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20946211

Country of ref document: EP

Kind code of ref document: A1