Solar-powered autonomous cruising aquaculture pond water plowing boat and cruising method
By integrating an autonomous cruise system with solar power, a nine-axis IMU and a water quality monitoring unit on a breeding pond plowing vessel, the problems of water quality improvement and inconvenient navigation in the existing technology are solved, efficient water agitation and water quality monitoring are achieved, and the system is improved. stability and energy efficiency.
Patent Information
- Application Number
- CN202410800659.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology makes it difficult to effectively utilize the dissolved oxygen produced by algae photosynthesis to improve breeding water quality, and the cruising mode of plowing water vessels does not have the functions of autonomous navigation and efficient water quality monitoring.
A solar-powered autonomous cruising farming pond plowing boat is designed. It adopts an integrated power measurement and control system, including a photovoltaic energy storage system, a nine-axis IMU, a GPS sensor and a water quality monitoring unit. It realizes autonomous cruising, water quality monitoring and control through the core control system. Upper and lower water body exchange function.
It realizes the effective stirring and bottom-changing functions of the pond water body, improves the real-time and accuracy of water quality monitoring, improves the stability and energy consumption efficiency of the system, and ensures the autonomous cruising and water quality improvement capabilities of the plowing ship.
Smart Images

Figure CN118833348A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a solar-powered autonomous cruising aquaculture pond water-cultivating boat and a cruising method. Background Art
[0002] The surface water of the pond has a high algae content. In the afternoon of a sunny day, the dissolved oxygen in the water can reach a saturated state. The saturated oxygen will overflow from the water into the air. In order to make full use of the dissolved oxygen produced by algae photosynthesis to improve the aquaculture water quality, the water-cultivating boat is used to realize the oxygenation and bottom improvement functions of the aquaculture pond. Its main working principle: First, the upper saturated dissolved oxygen water is pressed into the bottom of the pond through a water pressure pump. The stirring of the water body causes some organic bottom mud to float up, and then the water pump pumps the bottom water together with the bottom suspended matter to the surface of the pond for oxidation. The water-cultivating boat cruises autonomously in the pond according to the established cruising route. In this process, the water exchange between the upper and lower water layers of the pond is realized, and the bottom quality of the pond is improved while increasing the dissolved oxygen content of the bottom, accelerating the mineralization of organic matter deposited in the bottom mud, increasing the nutrient content of the water body, and promoting the growth of algae and phytoplankton. Summary of the invention
[0003] Purpose of the invention: The technical problem to be solved by the present invention is to provide a solar-powered autonomous cruising aquaculture pond water-cultivating boat and a cruising method in view of the deficiencies in the prior art.
[0004] The present invention first provides a solar-powered autonomous cruising aquaculture pond water-cultivating boat, comprising a hull, a photovoltaic energy storage system, a power and steering unit, a water quality monitoring unit and a core control system;
[0005] The photovoltaic energy storage system includes a solar photovoltaic panel and an energy storage battery;
[0006] The power and steering unit, water quality monitoring unit and core control system are integrated into an integrated power measurement and control system, which is installed at the stern to realize autonomous cruising, water quality monitoring and upper and lower water exchange functions;
[0007] The core control system, water quality monitoring unit, power and steering unit of the integrated power measurement and control system are longitudinally arranged at the stern in a top-down order;
[0008] The core control system on the upper level is placed in a sealed box located above the water surface at the stern.
[0009] The water quality monitoring unit arranged in the middle layer is arranged in a water tank, which is installed at the water surface of the stern and is connected with the pond water body through the water outlet;
[0010] The power and steering unit is openly arranged at the underwater position at the stern, without any box surrounding it, and only has a structural frame for fixing two water pumps and a steering gear, wherein the two water pumps are a pressure water pump and a suction water pump.
[0011] The core control system includes a solar control panel, a core control panel and a relay control panel;
[0012] The core control board completes attitude monitoring, position perception and water quality data collection by connecting the nine-axis IMU measurement unit, GPS sensor and RS485 water quality sensor; and completes hull steering and water pump start and stop control by connecting the steering servo and relay;
[0013] The solar control panel is used to realize the charge and discharge management functions of solar photovoltaic panels, energy storage batteries and loads; the two water pumps, steering servos and two solenoid valves in the load are powered by the 24V DC output of the solar controller, and the water quality sensor and the core control panel are powered by the step-down module to 12V on the load output of the solar controller; the two solenoid valves are the surface water inlet solenoid valve and the bottom water inlet solenoid valve;
[0014] The relay control board controls the power on and off of five 24V loads according to the five GPIO level signals output by the core control board. The specific wiring method is: 24V DC is connected to the common output COM terminal of the five-way relay control board, and the five load devices, namely the water pressure pump, the water pump, the steering servo, the surface water inlet solenoid valve, and the bottom water inlet solenoid valve, are respectively connected to the output normally open NO terminal, and the five GPIO signals output by the core control board are respectively connected to the IN terminal of the relay, and the on and off of the five relays are controlled by the IN1-IN5 high and low level signals, thereby controlling the start and stop of the five load devices.
[0015] The water quality monitoring unit includes a semi-open water tank and a sensor group for measuring water quality parameters of the upper and lower water layers of the pond, namely the surface layer and the bottom layer;
[0016] The semi-open water tank has two water inlet ends, namely a surface water inlet hole and a bottom water inlet pipe. Both water inlet ends are located at the front of the semi-open water tank. The surface water inlet hole is located X1 cm below the water surface. The bottom water inlet pipe is pumped with water by a water pump. The surface water inlet solenoid valve and the bottom water inlet solenoid valve control the entry of surface water and the entry of bottom water respectively. At the same time, only one of the surface water inlet solenoid valve and the bottom water inlet solenoid valve can be opened, and the other is closed;
[0017] The semi-open water tank also has a drainage hole at the bottom of the rear end, which is always kept open;
[0018] When measuring surface water quality parameters: the surface water inlet solenoid valve is opened, and the bottom water inlet solenoid valve is closed. During the movement of the boat, the surface of the pond is pressed into the water tank and discharged through the drain hole. The surface water can flow in the tank;
[0019] When measuring the bottom water quality parameters: the surface water inlet solenoid valve is closed, the bottom water inlet solenoid valve is opened, and the bottom water pumped by the water pump enters the front end of the water tank through the water pipe, thereby raising the water level in the tank. Using the water level difference, the water in the tank is automatically discharged from the drain hole, so that the bottom water can flow in the tank.
[0020] The bottom layer at the stern of the water-cultivating boat is an open frame structure, on which a pressure water pump and a suction water pump are installed; the water outlet of the pressure water pump at the front end of the frame is connected to a hose to the bottom layer of the pond, and when the pressure water pump is working, the surface water is pressed into the bottom layer of the pond and the floating mud on the bottom of the pond is flushed out; the water inlet of the suction water pump at the rear end of the frame is connected to a hose to the bottom of the pond, and the bottom water of the pond together with the floating mud is pumped to the surface for oxidation by photosynthesis; at the same time, the water outlet of the suction water pump is located opposite to the steering gear, and the steering gear is used to control the steering of the hull.
[0021] The hardware part of the core control board is implemented based on the XC30 LoRa module;
[0022] The XC30 LoRa module has a total of 29 pins for connecting peripheral resources. In the sensing and monitoring part of the water-farming boat, the B13 and B14 pins are used to connect the SCL and SDA lines of the accelerometer and angular velocity meter MPU6050 and the magnetometer HMC5883L; the USART2 pins corresponding to A2 and A3 are used to connect the USART serial port TX and RX lines of the GPS sensor; the USART3 corresponding to the B10 and B11 pins are used to connect the 485 communication module to convert the serial port signal into a 485 signal, and then connected to the RS485 interface A and B lines of the water quality sensor; Pin B15 is the input port of the battery voltage measurement digital-to-analog converter AD, and the voltage value V corresponding to the resistor is measured using a voltage divider circuit, and the current battery voltage is calculated;
[0023] In the control part of the water-farming boat, B5, B6, B7, B8, and B9 are connected to the input terminals IN1 to IN5 of the five-way relay control board as ordinary GPIOs, and the on and off of the corresponding relays are controlled by high and low levels; B3 outputs a PWM signal to control the speed of the water pump; B4 outputs a PWM signal to control the rotation angle of the steering servo; pin ANT is connected to the LoRa antenna, pins VDD and GND are connected to the 3.3V DC power supply, pins A13 and A14 are used for version download, program burning, and program tracking and debugging; the USART1 serial port corresponding to pins A9 and A10 provides log printing output to the outside for program debugging; the remaining pins are not used and are directly left floating.
[0024] The water pump at the rear of the hull of the water-cultivating boat pumps the bottom water of the pond to below the water surface and sprays it to the rear of the hull. When the water sprays backward, the water-cultivating boat obtains a reverse force to push the hull forward; the water pump flow rate is adjusted by adjusting the speed of the water pump motor, thereby adjusting the travel speed of the hull; the motor speed of the water pump is controlled using a digital PWM signal, and the MCU of the core control board outputs PWM signals with different duty cycles to adjust the water pump speed, and the travel speed of the hull is adjusted by changing the water spraying speed of the water pump; the motor operating speed of the water pump is divided into two states: full speed and half speed; the water pump is also used to pump the bottom water of the pond to the surface water surface, thereby playing the role of water cultivation.
[0025] The present invention also provides a cruising method for a solar-powered autonomous cruising aquaculture pond water-cultivating boat, comprising: during the autonomous cruising of the water-cultivating boat on the water surface, the position and attitude are calculated in real time, and the direction of the servo is continuously adjusted according to the target waypoint to control the steering of the hull, a GPS sensor is used to obtain the current position of the hull, an acceleration and angular velocity gyroscope and a magnetometer sensor are used to form a nine-axis IMU measurement unit, and based on the nine-axis data, an inertial hull attitude solution algorithm is used to solve the hull heading reference system.
[0026] The water-farming boat enters an initialization phase before autonomous cruising on the water surface, and keeps the hull still and level to calibrate the gyroscope: in the initialization phase, while keeping the gyroscope still, the gyroscope X, Y, and Z three-axis data are read N times in a loop, and a short sleep period of 2ms is performed between each reading, and the average values X1, Y1, and Z1 of the X, Y, and Z three-axis data are respectively calculated as the offset of the gyroscope. During actual measurement, the gyroscope X, Y, and Z three-axis measured values are respectively subtracted from the gyroscope offsets X1, Y1, and Z1 to obtain the angular velocity values in the X, Y, and Z directions.
[0027] Before the water-farming boat enters the cruising pond for the first time, the magnetometer sensor needs to be calibrated at the pond entrance: the core control board equipped with the magnetometer is rotated around the X, Y, and Z axes respectively, and the magnetometer X, Y, and Z axis data are cyclically read N times, and a short sleep period of 2ms is performed between each reading. After the rotation is completed, the maximum and minimum values of the magnetometer X, Y, and Z axis data are obtained respectively, and the maximum and minimum values of the X-axis data are added and divided by 2 to obtain the average value X2 as the X-axis fixed offset; the maximum and minimum values of the Y-axis data are added and divided by 2 to obtain the average value Y2 as the Y-axis fixed offset; the maximum and minimum values of the Z-axis data are added and divided by 2 to obtain the average value Z2 as the Z-axis fixed offset;
[0028] During actual measurement, the fixed offsets X2, Y2, and Z2 are respectively subtracted from the measured values of the magnetometer's X, Y, and Z axes to obtain the geomagnetic values in the X, Y, and Z directions.
[0029] The inertial hull attitude solution algorithm includes: solving the nine-axis data obtained by the nine-axis IMU measurement unit into Euler angles in the navigation coordinate system, using the Magdwick gradient descent attitude solution algorithm, the input is the acceleration, angular velocity, geomagnetic nine-axis data of the carrier obtained by the nine-axis IMU measurement unit and the algorithm scheduling frequency, the output is the quaternion after iterative calculation, the quaternion is converted into Euler angles of rotation ψ around the Z axis, rotation θ around the Y axis, and rotation φ around the X axis, the Euler angle ψ output by the algorithm is the yaw angle yaw, θ is the roll angle roll, and φ is the pitch angle pitch, wherein pitch and roll are used to measure the amplitude of the left and right swing and the amplitude of the up and down swing of the hull in the pond, respectively, and the yaw angle yaw is used to measure the direction of the bow, that is, the current heading of the hull;
[0030] The water-farming boat adopts the following navigation control algorithm: obtain the navigation track point of the current pond from the network end, and then perform the following steps:
[0031] Step 1: Calculate the next target navigation point before starting the navigation task, calculate the distance between the current location and all target points respectively, and select the target point with the closest distance as the target navigation point;
[0032] Step 2: Use the triangular cosine theorem to calculate the distance between the current location point A and the target navigation point B:
[0033]
[0034] The coordinates of the current location point A are (Ja, Wa); the coordinates of the target navigation point B are (Jb, Wb); R is the radius of the earth; Δλ is the intermediate parameter;
[0035] Step 3, calculate the heading angle θ between the current position point A and the target navigation point B:
[0036]
[0037] Intermediate parameters Δλ is calculated using longitude and latitude as follows:
[0038]
[0039] Step 4, determine whether the target navigation point has been reached. When distance≤3L, the navigation point has been reached, and the next target navigation point is selected in sequence, and step 3 is entered to navigate to the new target navigation point. When the last target navigation point is completed, the current round of navigation is determined to be completed, and the ship returns to the origin to enter the next round of automatic cruising; otherwise, the target navigation point has not been reached. When distance≤6L, the water pump enters half-speed operation; when distance>6L, the water pump runs at full speed, and step 5 is entered; L is the length of the ship;
[0040] Step 5, obtaining the current heading speed or bow direction based on the inertial hull attitude solution algorithm, the bow direction is the yaw angle;
[0041] Step 6, calculate the difference degToChg between the heading angle θ and the yaw angle yaw. Both the heading angle θ and the yaw angle yaw are deflections relative to the geographic north. Define the clockwise direction as positive, and let degToChg = θ-yaw. When degToChg ≤ 180°, rotate the steering servo clockwise; when degToChg > 180°, rotate the steering servo counterclockwise; when ldegToChg ≤ 3l, keep the steering servo unchanged, continue to maintain the current heading, and enter step 2; otherwise, determine whether the rotation direction is clockwise or counterclockwise, and then determine the steering servo angle, and enter step 7;
[0042] Step 7, limit the maximum rotation angle of the steering servo to 60 degrees, and the MCU of the core control board outputs PWM signals with different duty cycles to complete the angle control of the steering servo; determine the rotation angle amplitude of the steering servo according to the speed, and when in the full-speed operation stage, map the steering from 0 to 180° to 0 to 60°, and the steering servo angle rudToChg=degToChg / 3; when in the half-speed operation stage, if degToChg≤60°, then rudToChg=degToChg, if degToChg>60°, then rudToChg=60°; after turning the steering servo, continue navigation and return to step 2;
[0043] The plowing boat realizes the PWM control of the steering gear by the following method: setting the auto-reload register ARR value (the integer value stored in the auto-reload register Auto Reload Register, that is, when the decrement counter is decremented to 0, the calculator is reassigned to the value of ARR) and the pre-scaling register PSC value (the integer value stored in the pre-scaling register Prescaler, because the main frequency of the MCU is above 72MHz, the timer cannot store it using a 16-bit counter, so a 16-bit Prescaler pre-scaling register is introduced to first decompose the main frequency of the MCU. In embedded application programming, the signal frequency generated by the timer usually does not need to be too high, such as 50Hz. Usually, the frequency is first reduced by the pre-scaling register PSC, and then the auto-reload register Auto Reload Register is used to further reduce the frequency, that is, the MCU main frequency clock signal is divided by (PSC+1), and then divided by (ARR+1), that is, the frequency of the timer trigger signal is obtained), and the PWM frequency Fpwm is calculated using the following formula:
[0044]
[0045] Where X1 represents the main frequency of the MCU of the core control board. The main frequency of the STM32L431 series MCU corresponding to XC30 is 80MHz, so PSC=3999, ARR=399;
[0046] Adjust the duty cycle of PWM to change the steering servo angle: Duty cycle To make the rudder direction level with the hull, set the register of the timer Timer CCR = 7.5% * (ARR + 1) = 30. The rotation of the steering servo and the change of the duty cycle are linear. When the rudder angle is 1°, the change of the duty cycle is Then when the steering servo rotates X, the change of CCR ΔCCR is linearly related to the change of duty cycle Δduty, expressed as ΔCCR=Δduty*(ARR+1)=dutyEveryDeg*X*(ARR+1)=0.22*X;
[0047] In order to stabilize the hull when turning, the steering servo is limited to a rotation angle of 60°. When the steering servo rotates to a maximum of 60°, the corresponding duty cycle is 4.2% to 10.8%, and ΔCCR = 13.2≈13;
[0048] Calculate the change of register CCR, take the rudder direction and hull level as the initial state, turn the steering servo X, CCR = 30 ± ΔCCR, the sign is negative for left turn and positive for right turn, modify the value of register CCR, change the duty cycle of PWM, and control the turning angle of the rudder.
[0049] The present invention has the following beneficial effects:
[0050] 1) The main structure design of the water-cultivating boat is based on photovoltaic power supply, and uses a water pump to stir the water in the upper and lower water layers of the pond and cultivate water in a moving manner;
[0051] 2) Integrated power measurement and control system, based on nine-axis IMU, GPS and water quality sensor to measure attitude, position and water quality parameters, using water pump to realize the propulsion power of the hull, and using the steering gear (the steering gear output is connected to the rudder) angle to control the steering of the hull;
[0052] 3) The integrated measurement and control system completes the monitoring, control and data reporting functions on a STM32L low-power chip based on the OpenMCU method, improving the stability of the system and reducing the system energy consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above and / or other advantages of the present invention will become more clear.
[0054] Figure 1 It is the structural diagram of the integrated power measurement and control system of the water-farming boat.
[0055] Figure 2 This is the wiring diagram of the five-way relay control board.
[0056] Figure 3 This is the pinout diagram of the hardware module XC30 used by the core control board.
[0057] Figure 4 It is a flow chart of autonomous cruise control of water-cultivating boat.
[0058] Figure 5 It is a schematic diagram of the "U" and "L" shaped cruising paths of the water-farming boat.
[0059] Figure 6 This is a schematic diagram of data communication for a water-farming vessel.
[0060] Figure 7 It is a schematic diagram of a water-cultivating boat in a breeding pond in one embodiment of the present invention.
[0061] Figure 8 The figure is a physical picture of a water-cultivating boat for aquaculture ponds in one embodiment of the present invention.
[0062] Fig. 9 The figure is a physical picture of a water-cultivating boat for aquaculture ponds in one embodiment of the present invention.
[0063] Fig.10 The figure is a physical picture of a water-cultivating boat for aquaculture ponds in one embodiment of the present invention. DETAILED DESCRIPTION
[0064] The present invention provides a solar-powered autonomous cruising aquaculture pond water-cultivating boat, comprising a hull, a photovoltaic energy storage system, a power and steering unit, a water quality monitoring unit and a core control system; Figure 7 , Figure 8 , Fig. 9 , Fig.10 The figure shows a physical picture of a water-cultivating boat for aquaculture ponds in one embodiment of the present invention.
[0065] The photovoltaic energy storage system includes a solar photovoltaic panel and an energy storage battery;
[0066] The water-farming boat can adopt a conventional hull structure, and the hull needs to carry heavier solar photovoltaic panels and energy storage batteries (24V);
[0067] The power and steering unit, water quality monitoring unit and core control system are integrated into an integrated power measurement and control system, which is installed at the stern to realize autonomous cruising, water quality monitoring and upper and lower water exchange functions;
[0068] like Figure 1 As shown, the core control system, water quality monitoring unit, power and steering unit of the integrated power measurement and control system are longitudinally arranged at the stern in a top-down order. The upper core control system is placed in a sealed box, which is located above the water surface at the stern; the middle water quality monitoring unit is set in a water tank, which is installed at the water surface at the stern and connected to the pond water through the water outlet, so the water surface height inside and outside the water tank is basically the same; the power and steering unit is openly set at the stern under the water surface, without a box surrounding it, and only has a structural frame for fixing two water pumps (pressure water, pumping water) and a steering gear.
[0069] Core control system:
[0070] The core control system includes a solar control panel, a core control panel and a relay control panel;
[0071] The core control board is the core component of the system. It completes attitude monitoring, position perception and water quality data collection by connecting the nine-axis IMU measurement unit, GPS sensor, and RS485 water quality sensor; it completes hull steering and water pump start and stop control by connecting the steering servo and relay;
[0072] The solar control panel can adopt a commercially available small MPPT solar controller, which can complete the charging and discharging management functions of the solar photovoltaic panel, energy storage battery and load. The two water pumps (water pressure and water extraction) in the load, one steering gear, and two solenoid valves (surface water and bottom water inlet) are powered by the 24V DC power output of the solar controller. The water quality sensor and the core control board are powered by a step-down module to 12V on the load output of the solar controller.
[0073] The relay control board controls the power on and off of five 24V loads according to the five GPIO level signals output by the core control board. The specific wiring method is: 24V DC is connected to the five-way relay control board ( Figure 2 )'s common output COM terminal, five load devices (water pressure pump, water extraction pump, steering servo, surface water inlet solenoid valve, bottom water inlet solenoid valve) are connected to the output normally open NO terminal respectively, and the five GPIO signals output by the core control board are connected to the IN terminal of the relay respectively. The five relays (the five relays in the control part of Table 1) are controlled on and off through the high and low level signals of IN1-IN5, thereby controlling the start and stop of the five load devices (such as Figure 2 shown).
[0074] Water quality monitoring unit:
[0075] The water quality monitoring unit (see Figure 1 ) includes a semi-open water tank and a sensor group (the five-parameter sensors for monitoring water quality in Table 1, submerged under the water surface), with the purpose of measuring water quality parameters in the upper and lower water layers (surface and bottom layers) of the pond.
[0076] The semi-open water tank has two water inlet ends (surface water inlet hole and bottom water inlet pipe), both of which are located at the front of the water tank, the surface water inlet hole is located X1 (usually 5) cm below the water surface, the bottom water inlet pipe is pumped with water by a water pump, the surface water inlet solenoid valve and the bottom water inlet solenoid valve respectively control the entry of surface water and the entry of bottom water, and only one of the surface water inlet solenoid valve and the bottom water inlet solenoid valve can be opened at the same time, and the other is closed;
[0077] The semi-open water tank is also provided with a drain hole at the bottom of the rear end, and the drain hole is always kept open, so that water can be discharged through the drain hole after entering the water tank (the water levels inside and outside are basically the same).
[0078] When measuring surface water quality parameters: the surface water inlet solenoid valve is opened, and the bottom water inlet solenoid valve is closed. During the movement of the boat, the surface of the pond is pressed into the water tank and discharged through the drain hole, so the surface water can flow in the tank.
[0079] When measuring the bottom water quality parameters: the surface water inlet solenoid valve is closed, the bottom water inlet solenoid valve is opened, and the bottom water pumped by the water pump enters the front end of the water tank through the water pipe, thereby raising the water level in the tank. Using the water level difference, the water in the tank is automatically discharged from the drain hole, so that the bottom water can also flow in the tank.
[0080] Power and Steering:
[0081] The bottom layer of the stern is an open frame structure, on which a pressure pump and a suction pump are installed. The outlet of the pressure pump at the front end of the frame is connected to a hose to the bottom of the pond. When the pressure pump is working, it presses the surface water into the bottom of the pond and flushes the floating mud at the bottom of the pond. The water inlet of the suction pump at the rear end of the frame is connected to a hose to the bottom of the pond, and the bottom water and the floating mud are pumped to the surface for oxidation by photosynthesis. At the same time, the outlet of the suction pump is directly opposite to the steering servo, and the reaction force of the water outlet is used to push the hull forward, and the steering servo is used to control the steering of the hull. In this way, water plowing operations can be carried out during cruising.
[0082] Function of core control board: The core control board is the core component for the water-farming boat to realize perception and autonomous control. Considering the use scenarios of low power consumption and long-distance data transmission, and for the convenience of development, it is directly developed on the LoRa module (Yitong Huilian XC30) purchased on the market. The XC30 module uses the ARM architecture STM32L431 low-power microcontroller, integrates the SX1276 communication chip and the LoRaWan protocol stack, and provides the OpenMCU usage method, opening the MCU for users to realize business functions (such as Figure 3 Table 1 shows the input and output of the core control board.
[0083] Table 1
[0084]
[0085]
[0086] The hardware part of the core control board is based on the XC30 LoRa module, which has a total of 29 pins for connecting peripheral resources. The sensing and monitoring part of the water-farming boat uses the B13 and B14 pins to connect the SCL and SDA lines of the accelerometer, angular velocity meter MPU6050 and magnetometer HMC5883L; the USART2 pins corresponding to A2 and A3 are used to connect the USART serial port TX and RX lines of the GPS; the USART3 corresponding to the B10 and B11 pins are used to connect the 485 communication module, convert the serial port signal into a 485 signal, and then connect it to the RS485 interface A and B lines of the water quality sensor; pin B15 is the input port of the battery voltage measurement digital-to-analog conversion AD, and the voltage value V corresponding to the resistor is measured using a voltage divider circuit, and the current battery voltage is calculated. In the control part of the water-farming boat, B5, B6, B7, B8, and B9 are connected to the input terminals IN1 to IN5 of the five-way relay control board as common GPIO (General-purpose input / output), and the on and off of the corresponding relays are controlled by high and low levels; B3 outputs PWM signal to control the speed of the water pump; B4 outputs PWM signal to control the rotation angle of the steering servo.
[0087] In addition, pin ANT is connected to the LoRa antenna, pins VDD and GND are connected to 3.3V DC power supply, pins A13 and A14 are used for version download, program burning, and program tracking and debugging; pins A9 and A10 correspond to the USART1 serial port to provide log printing output to cooperate with program debugging; the remaining pins are unused. Since the unused pins of XC30 will not cause leakage, they can be directly left floating.
[0088] Position and posture perception:
[0089] During the autonomous cruising process on the water, the position and attitude of the ploughing boat need to be calculated in real time, and the steering direction of the hull needs to be adjusted according to the target waypoint. The GPS sensor is used to obtain the current position of the hull, and the acceleration and angular velocity (gyroscope) and magnetometer (electronic compass) sensors form a nine-axis IMU measurement unit, and the hull attitude reference system (AHRS) is calculated based on the nine-axis data.
[0090] Gyroscope calibration
[0091] The MPU6050 gyroscope is a consumer-grade MEMS angular velocity sensor. Due to various reasons such as process, installation, measurement accuracy, temperature, Gaussian noise, etc., there is an error between the measurement result and the true value. The measurement error can be divided into deterministic error and random error. The deterministic error caused by the MEMS gyroscope process installation and other reasons can be eliminated by initialization calibration. The random error is caused by the instability of electronic components and system noise. It is random and cannot be predicted. It will accumulate over time and conform to the random walk process of Brownian distribution. Here, only the calibration of the deterministic error of the gyroscope is considered. In the initialization stage, the gyroscope is kept stationary, and the gyroscope X, Y, and Z three-axis data are read N times (the value is 100 in the present invention) in a loop. A short sleep period of 2ms is performed between each reading, and the average values of the X, Y, and Z three-axis data are calculated respectively (summed and divided by 100 times). X1, Y1, and Z1 are the offsets of the gyroscope. In actual measurement, the gyroscope X, Y, and Z three-axis measured values are respectively subtracted from the gyroscope offsets X1, Y1, and Z1 to obtain the angular velocity values in the X, Y, and Z directions.
[0092] Magnetometer Calibration
[0093] The errors of the magnetometer HMC5883L are divided into two categories: Hard Iron and Soft Iron. Hard Iron is caused by the magnetometer production process, which causes the zero position of the measured magnetic field coordinate system to shift. Soft Iron is caused by the local magnetic field generated by metal materials and energized wires near the magnetometer, which is superimposed on the geomagnetic field and causes the magnetometer measurement result to shift. Since there is usually no interference from strong magnetic materials in the outdoor pond environment, the numerical offset caused by Soft Iron is ignored. Here, the following method is used to calibrate the magnetometer offset caused by Hard Iron. During the calibration phase, the magnetometer is rotated around the X, Y, and Z axes respectively, and the X, Y, and Z axis data of the magnetometer are read 100 times in a loop. A short sleep period of 2ms is performed between each reading. After the rotation is completed, the maximum and minimum values of the X, Y, and Z axis data of the magnetometer are obtained respectively. The maximum and minimum values of the X-axis data are added and divided by 2 to obtain the average value X2 as the X-axis fixed offset; the maximum and minimum values of the Y-axis data are added and divided by 2 to obtain the average value Y2 as the Y-axis fixed offset; the maximum and minimum values of the Z-axis data are added and divided by 2 to obtain the average value Z2 as the Z-axis fixed offset;
[0094] During actual measurement, the fixed offsets X2, Y2, and Z2 are respectively subtracted from the measured values of the magnetometer's X, Y, and Z axes to obtain the geomagnetic values in the X, Y, and Z directions.
[0095] IMU nine-axis data acquisition
[0096] MPU6050 combines acceleration and angular velocity sensors into one, and can measure the acceleration and rotational angular velocity values in the three directions of X, Y, and Z with the carrier coordinate system as the reference. The HMC5883L geomagnetic sensor can measure the geomagnetic intensity in the three directions of X, Y, and Z with the carrier coordinate system as the reference. Combining the two and using the attitude solution algorithm, the carrier attitude estimation in the navigation coordinate system can be realized. Both MPU6050 and HMC5883L provide IIC interface access mode. The IIC addresses of the two are 0X68 and 0X3C respectively. They share an IIC interface (B13 and B14 pins), and the data acquisition frequency is 10Hz.
[0097] Inertial hull attitude calculation algorithm
[0098] The nine-axis data obtained by the nine-axis IMU measurement unit is resolved into Euler angles in the navigation coordinate system, and the Magdwick gradient descent attitude solution algorithm is used. Reference [Reference 1] Madgwick SOH, Harrison AJ L, Vaidyanathan R. Estimation of IMU and MARG orientation using a gradient descent algorithm [C]. Rehabilitation Robotics (ICORR), 2011 IEEE International Conference on. IEEE, 2011: 1-7, [Reference 2] Madgwick, Sebastian O H. An efficient orientation filter for inertial and inertial magnetic sensor The code in the appendix of arrays. (2010) is implemented. [Technical Document 3] Magdwick gradient descent attitude solution algorithm open source implementation library Fusion, https: / / github.com / xioTechnologies / Fusion and [Technical Document 4] Technical blogger Hank's open source unmanned ship navigation system implementation on embedded systems https: / / gitee.com / Matreshka15 / USV-STM32F103-part also use the Magdwick gradient descent attitude solution algorithm. The algorithm uses the quaternion method to represent the rotation attitude of the carrier, and iteratively calculates the quaternion by differential update. The algorithm can use a 50Hz calculation frequency to iterate the attitude quaternion until convergence and stability based on the 10Hz sampling frequency of the IMU nine-axis data. The algorithm uses the carrier's right front upper coordinate system in the aerospace field. The input is the carrier's acceleration, angular velocity, geomagnetic nine-axis data obtained by the nine-axis IMU measurement unit, and the algorithm scheduling frequency (the time difference between two updates Δt, which is the inverse of the algorithm's running frequency). The output is the quaternion after iterative calculation. The library function that comes with Magdwick open source can convert the quaternion into the Euler angle of rotation around the Z axis ψ, around the Y axis θ, and around the X axis φ. The Euler angle ψ output by the algorithm is the yaw angle yaw (the angle with geographic north in the northeast celestial coordinate system), θ is the roll angle roll, and φ is the pitch angle pitch. Pitch and roll are used to measure the amplitude of the hull's left and right swing and the amplitude of the up and down swing in the pond, respectively, and the yaw angle yaw is used to measure the direction of the bow, that is, the current heading of the hull.The calculation frequency of the Magdwick gradient descent algorithm only requires 50Hz, which can run on an MCU with limited computing performance. At the same time, the differential algorithm can alleviate the offset caused by the accumulation of gyroscope errors and the measurement error caused by the magnetometer soft iron to a certain extent.
[0099] Acquisition of longitude and latitude location information
[0100] The location information of the hull (including the latitude and longitude information of the hull) is obtained in real time through GPS / Beidou sensors. The accuracy of commonly used GPS / Beidou position sensors is about 2 meters in open environments such as ponds. The water-farming boat will continuously obtain the current location information during operation, and judge the distance and angular deviation (heading angle) between the current point and the next target navigation point in order to perform navigation control. The longitude and latitude acquisition frequency here is the same as the frequency of the nine-axis IMU measurement unit, which is 10Hz.
[0101] Navigation Controls:
[0102] Hull drive
[0103] The water pump at the rear of the hull pumps the bottom water of the pond to below the water surface and sprays it out to the rear of the hull. Using the principle of reaction force of Newton's third law, when the water sprays backward, the plowing boat obtains a reverse force to push the hull forward. The magnitude of the reaction force is related to the momentum of the water sprayed by the water pump. The speed of the water pump is adjusted by adjusting the speed of the water pump motor to adjust the flow rate of the water pump, and then adjust the speed of the hull. The motor speed of the water pump is controlled by a digital PWM signal. The MCU of the core control board outputs PWM signals with different duty cycles to adjust the speed of the water pump. The speed of the hull is adjusted by changing the water spraying speed of the water pump. The motor speed of the water pump is divided into two states: full speed and half speed.
[0104] Another function of the water pump is to pump the bottom water of the pond to the surface water, thereby cultivating the water.
[0105] Autonomous cruise control for water-farming boats
[0106] The steering servo is installed in parallel at the outlet of the water pump. The distance between the steering servo and the outlet of the water pump is 5 cm. The heading of the hull is controlled by controlling the deflection of the steering servo. When the steering servo angle is 0 degrees, the flow velocity on both sides of the rudder is the same, and the hull moves in a straight line; when the steering servo and the rudder turn left, the flow velocity on the right side of the rudder is faster than that on the left side. According to the Bernoulli equation, the force on the right side of the rudder is smaller than that on the left side. The rudder is subjected to a combined force to the right, and the hull turns to the left with the rudder (tail) as the center of the circle; similarly, when the steering servo turns right, the bow turns to the right. The steering servo uses a PWM signal to control its turning angle. The MCU of the core control board sends a PWM duty cycle signal to the steering servo to adjust the deflection angle of the servo. 30 degrees is set as the deflection limit of the servo. The MCU of the core control board calculates the turning angle and outputs the corresponding PWM signal duty cycle to complete the hull turning.
[0107] Since the control goal of the traditional line-of-sight LOS track tracking algorithm is to constantly adjust the bow direction and keep the difference between the bow direction (ship travel direction) and the heading from the current position to the target point to zero, it requires high-precision sensors, hull steering components and real-time computing and control capabilities. Since the working goal of the water-cultivating boat is to cover all positions of the pond as evenly as possible, there will be deviations in each process of moving towards the target point. If the deviation is random, the trajectory of each movement will be different, which can better cover different positions of the pond. Designing a navigation algorithm with navigation angle deviation tolerance can not only solve the measurement accuracy errors of sensors (inertial sensors, GPS position sensors) and control component (servo steering) errors, but also implement the navigation algorithm on a low-power MCU with limited computing power to achieve random and balanced coverage of the hull trajectory in the pond, such as Figure 4 As shown, the specific navigation control algorithm is as follows:
[0108] Prerequisites: the system is online, initialized successfully, and the navigation track points of the current pond are obtained from the network (in order)
[0109] Step 1: Calculate the next target navigation point before starting the navigation task, calculate the distance between the current location and all target points respectively, and select the target point with the closest distance as the target navigation point;
[0110] Step 2: Use the triangular cosine theorem to calculate the distance between the current location point A and the target navigation point B:
[0111]
[0112] The coordinates of the current location point A are (Ja, Wa); the coordinates of the target navigation point B are (Jb, Wb); R is the radius of the earth (6371*10 3 rice); Δλ is the intermediate parameter;
[0113] Step 3, calculate the heading angle θ (in degrees) between the current position point A and the target navigation point B:
[0114]
[0115] Intermediate parameters Δλ is calculated using longitude and latitude as follows:
[0116]
[0117] Step 4, determine whether the target navigation point has been reached. When distance≤3L, the navigation point has been reached, and the next target navigation point is selected in sequence, and step 3 is entered to navigate to the new target navigation point. When the last target navigation point is completed, the current round of navigation is determined to be completed, and the vehicle returns to the origin (the first target navigation point) to enter the next round of automatic cruising; otherwise, the target navigation point has not been reached. When distance≤6L, the water pump enters half-speed operation. When distance>6L, the water pump enters full-speed operation, and step 5 is entered; L is the length of the ship;
[0118] Step 5, obtaining the current heading speed or bow direction based on the inertial hull attitude solution algorithm, the bow direction is the yaw angle;
[0119] Step 6, calculate the difference degToChg between the heading angle θ and the yaw angle yaw. Since the heading angle θ and the yaw angle yaw are both deflections relative to the geographic north, define the clockwise direction as positive, let degToChg = θ-yaw, when degToChg ≤ 180°, rotate the steering servo clockwise, and when degToChg > 180°, rotate the steering servo counterclockwise; since there is noise influence when measuring the two angles, in order to avoid frequent steering of the steering servo, set a 3° tolerance range, when |degToChg ≤ 3|, keep the steering servo unchanged, continue to maintain the current heading, and enter step 2; otherwise, it can be determined that the rotation direction is clockwise or counterclockwise, and then determine the steering servo angle, and enter step 7.
[0120] Step 7, limit the maximum rotation angle of the steering servo to 60 degrees, and the MCU of the core control board outputs PWM signals with different duty cycles to complete the steering angle control of the steering servo; determine the rotation angle amplitude of the steering servo according to the speed, when in the full-speed operation stage, map the steering range of 0 to 180° to 0 to 60°, and the steering servo angle rudToChg = degToChg / 3; when in the half-speed operation stage, if degToChg ≤ 60°, rudToChg = degToChg, if degToChg > 60°, rudToChg = 60°; after turning the steering servo, continue navigation and return to step 2.
[0121] Servo PWM control
[0122] The signal is controlled by changing the pulse width of the signal (different duty cycles). A timer is used in the program to simulate the generation of PWM signals with different duty cycles, thereby completing the control of the steering servo rotation angle.
[0123] (1) Since the PWM signal frequency of the steering servo is 50Hz and the main frequency of STM32L431 is 80MHz, the MCU of the core control board uses the timer Timer to output the PWM signal. Without frequency division, the automatic reload register ARR value is set to 399 and the pre-scaling register PSC value is set to 3999 in the core control board MCU clock initialization. The PWM frequency Fpwm = 50Hz is calculated as follows:
[0124]
[0125] Among them, X1 represents the main frequency of the MCU of the core control board;
[0126] (2) Adjust the duty cycle of PWM to change the steering servo angle. For a conventional 180° steering servo (here 180° is an absolute angle, i.e. 90° is the horizontal state of the steering servo, the maximum angle of turning the steering servo left or right is 90°, when the absolute angle is 0°, it means the steering servo turns 90° to the left, when the absolute angle is 180°, it means the steering servo turns 90° to the right), the frequency is 50HZ, i.e. 20ms time base pulse, the high level part of the steering servo pulse of 180 degrees absolute angle is 0.5ms~2.5ms, i.e. the duty cycle is 2.5%~12.5%. Table 2 shows the relationship between the duty cycle of the steering servo and the absolute angle and the rotation angle.
[0127] Table 2
[0128]
[0129]
[0130] (3) Duty cycle In order to make the rudder direction and the hull level (that is, the absolute angle is 90° and the rudder angle is 0°), it is necessary to set the timer register CCR = 7.5% * (ARR + 1) = 30. The rotation of the steering servo and the change in duty cycle are linear. When the rudder angle is turned to 1°, the change in duty cycle is Then when the steering servo rotates X°, the change in CCR ΔCCR is linearly related to the change in duty cycle Δduty, expressed as ΔCCR=Δduty*(ARR+1)=dutyEveryDeg*X*(ARR+1)=0.22*X, rounded off.
[0131] In order to stabilize the hull when turning, it is necessary to limit the rotation angle of the steering servo to 60°. When the steering servo rotates to a maximum of 60°, the corresponding duty cycle is 4.2% to 10.8%, and ΔCCR = 13.2≈13.
[0132] (4) The change in register CCR is calculated using the method of calculating ΔCCR using the above formula. The rudder direction and the hull are horizontal (i.e., the absolute angle is 90° and the rudder angle is 0°) are taken as the initial state. The steering servo rotates x, CCR = 30 ± ΔCCR, with a negative sign for left turn and a positive sign for right turn. The STM32 development library function TIM_SetCompare (Tim, CCR) is used to modify the value of register CCR, change the duty cycle of PWM, and control the steering angle of the rudder.
[0133] Cruise path planning
[0134] The cruise path planning task is performed on the server side, and the cruise point records are sent to the water-farming boat for storage through the LoRa wireless interface.
[0135] 1) Considering the errors caused by sensor accuracy, actuators, and time delay, the cruising path needs to keep a safe distance of 5 meters from the pond shore. Measure the turning radius of the hull, and the distance from the waypoint near the pond to the shore must be greater than the sum of the turning radius and the reserved safety distance.
[0136] 2) For rectangular ponds, follow the "U"-shaped frame with gradually decreasing side lengths or the "L"-shaped frame with zigzag lengths. Figure 5 There are two types of cruising. Figure 5 The inflection points in the graph (i.e., the sequential longitude and latitude coordinate sequence) are recorded as the cruising points of the water-farming boat.
[0137] 3) When a round of cruising reaches the last waypoint, this round of autonomous cruising ends, and the next round of cruising returns the initial point to the original initial point and continues a new round of cruising. Since the purpose of the water-cultivating boat is to evenly cover the pond, a new sequence of cruising points can be recalculated by randomly offsetting a certain distance (3 meters) at each cruising point on the basis of ensuring a safe distance.
[0138] 4) The cloud server sends the waypoint sequence to the water-farming boat through the LoRa network, and the water-farming boat stores and navigates in sequence.
[0139] Water cultivation function:
[0140] Water cultivation is accomplished by the cooperation of two water pumps. During the movement of the hull, the pressure pump at the front of the hull starts to press the surface water into the bottom layer of the pond. To ensure that the surface water is pressed to the bottom of the pond to stir the bottom mud to suspend it, a pump with a head of 3 to 5 meters can be selected. The pump at the rear provides the hull with forward power while pumping the bottom water and the suspended bottom mud into the surface water, making full use of the saturated dissolved oxygen in the surface water for oxidative decomposition of organic matter. The organic particles are resuspended or settle at a slower rate, while the mud and sand quickly settle to the bottom of the pond.
[0141] Since the photovoltaic charging efficiency and the intensity of algae photosynthesis are directly related to the light intensity, the cruise battery voltage is started by monitoring the dissolved oxygen content of the surface water. The work of the bottom measurement and control machine is synchronized with the time point of algae photosynthesis. When the dissolved oxygen content of the surface water reaches 16mg / L and the voltage is higher than 24V, the water-cultivating boat starts the water-cultivating task. When the surface dissolved oxygen content drops below 12mg / L or the voltage enters a periodic dormant state between 21V and 24V, the relay turns off the power supply of the water pump and the steering servo, and implements periodic water quality monitoring (only measuring surface water) and position reporting tasks. When the voltage is lower than 21V, it enters a standby full dormant state, shuts down all tasks, and the MCU of the core control board enters a long-period dormant state, waiting for photovoltaic charging. In order to maximize work efficiency and extend standby time, the water-farming boat adopts a two-stage working mode. On sunny days, the automatic cruising mode completes water quality monitoring and water-farming work. At night or when the light intensity is low (when the surface water has insufficient dissolved oxygen), the water-farming boat enters a periodic water quality monitoring and periodic sleep alternating working mode. First, the relay is controlled to shut down the power supply of the equipment (steering gear, water pump), and then the timed wake-up function is started to collect data from peripherals (IMU, GPS, water quality sensor) at regular intervals, and the data transmission module is awakened to complete data reporting. Only when the power is very low does it enter the standby sleep state, which can effectively save system energy consumption, wait for the battery to be charged, and ensure the continuous and stable operation of the bottom-modified boat.
[0142] Water quality monitoring:
[0143] Sensor group: It can measure five common water quality indicators, namely dissolved oxygen, pH, turbidity, conductivity and water temperature, using RS485 communication protocol; the sensor is fixed at the tail part of the water tank, close to the water outlet, to avoid the influence of turbulent water inlet, and uses the surface water inlet solenoid valve and the bottom water inlet solenoid valve to measure the water quality indicators of the surface water and bottom water of the pond.
[0144] Surface water quality monitoring: open the surface water inlet solenoid valve, close the bottom water inlet solenoid valve, use the kinetic energy of the ship's movement to press the surface water into the water tank, and discharge the original water in the water tank from the bottom drain; to ensure that most of the original water in the water tank is discharged, usually read the sensor measurement data after 20 minutes.
[0145] Bottom layer water quality monitoring: open the bottom layer water inlet solenoid valve, close the surface layer water inlet solenoid valve, and the water pump will pump part of the bottom layer water into the water tank. The water level in the water tank will rise, causing the original water to be discharged from the bottom drain port. To ensure that most of the original water in the water tank is discharged, the sensor measurement data is usually read after 20 minutes.
[0146] Data Communications:
[0147] like Figure 6 As shown in the figure, the water-farming boat communicates with the cloud server through the LoRa base station to complete the uplink data reporting and downlink command reception. The uplink message sent by the water-farming boat to the cloud server: to realize water quality parameters, location, attitude and other information; at the same time, there are three main types of APP remote downlink messages forwarded from the server: 1) waypoint data, that is, a series of pond latitude and longitude coordinate points, and the water-farming boat cruises autonomously in the order of coordinate points; 2) instant control messages sent by the mobile phone APP: shutdown, arrival at the designated waypoint, return; 3) system parameter settings, pond upper and lower water layer sensor collection cycle, sleep voltage, shutdown voltage, etc.
[0148] The water-farming boat performs simple navigation and measurement tasks, and places complex tasks such as navigation path planning and waypoint generation on the server side, and sends the results to the water-farming boat through the LoRa network.
[0149] The present invention provides a solar-powered autonomous cruising aquaculture pond water-cultivating boat and a cruising method. There are many methods and ways to implement the technical solution. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the protection scope of the present invention. All components not specified in this embodiment can be implemented by existing technologies.
Claims
1. A solar-powered, autonomous cruising aquaculture pond water-cultivating boat, characterized in that: It includes the hull, photovoltaic energy storage system, power and steering unit, water quality monitoring unit and core control system; The photovoltaic energy storage system includes a solar photovoltaic panel and an energy storage battery; The power and steering unit, water quality monitoring unit and core control system are integrated into an integrated power measurement and control system, which is installed at the stern to realize autonomous cruising, water quality monitoring and upper and lower water exchange functions; The core control system, water quality monitoring unit, power and steering unit of the integrated power measurement and control system are longitudinally arranged at the stern in a top-down order; The core control system on the upper level is placed in a sealed box located above the water surface at the stern. The water quality monitoring unit arranged in the middle layer is arranged in a water tank, which is installed at the water surface of the stern and is connected with the pond water body through the water outlet; The power and steering unit is openly arranged at the underwater position at the stern, without any box surrounding it, and only has a structural frame for fixing two water pumps and a steering gear, wherein the two water pumps are a pressure water pump and a suction water pump.
2. The solar-powered autonomous cruising aquaculture pond water-cultivating boat according to claim 1, characterized in that: The core control system includes a solar control panel, a core control panel and a relay control panel; The core control board completes attitude monitoring, position perception and water quality data collection by connecting the nine-axis IMU measurement unit, GPS sensor and RS485 water quality sensor; and completes hull steering and water pump start and stop control by connecting the steering servo and relay; The solar control panel is used to realize the charge and discharge management functions of solar photovoltaic panels, energy storage batteries and loads; the two water pumps, steering servos and two solenoid valves in the load are powered by the 24V DC output of the solar controller, and the water quality sensor and the core control panel are powered by the step-down module to 12V on the load output of the solar controller; the two solenoid valves are the surface water inlet solenoid valve and the bottom water inlet solenoid valve; The relay control board controls the power on and off of five 24V loads according to the five GPIO level signals output by the core control board. The specific wiring method is: 24V DC is connected to the common output COM terminal of the five-way relay control board, and the five load devices, namely the water pressure pump, the water pump, the steering servo, the surface water inlet solenoid valve, and the bottom water inlet solenoid valve, are respectively connected to the output normally open NO terminal, and the five GPIO signals output by the core control board are respectively connected to the IN terminal of the relay, and the on and off of the five relays are controlled by the IN1-IN5 high and low level signals, thereby controlling the start and stop of the five load devices.
3. The solar-powered autonomous cruising aquaculture pond water-cultivating boat according to claim 2, characterized in that: The water quality monitoring unit includes a semi-open water tank and a sensor group for measuring water quality parameters of the upper and lower water layers of the pond, namely the surface layer and the bottom layer; The semi-open water tank has two water inlet ends, namely a surface water inlet hole and a bottom water inlet pipe. Both water inlet ends are located at the front of the semi-open water tank. The surface water inlet hole is located X1 cm below the water surface. The bottom water inlet pipe is pumped with water by a water pump. The surface water inlet solenoid valve and the bottom water inlet solenoid valve control the entry of surface water and the entry of bottom water respectively. At the same time, only one of the surface water inlet solenoid valve and the bottom water inlet solenoid valve can be opened, and the other is closed; The semi-open water tank also has a drainage hole at the bottom of the rear end, which is always kept open; When measuring surface water quality parameters: the surface water inlet solenoid valve is opened, and the bottom water inlet solenoid valve is closed. During the movement of the boat, the surface of the pond is pressed into the water tank and discharged through the drain hole. The surface water can flow in the tank; When measuring the bottom water quality parameters: the surface water inlet solenoid valve is closed, the bottom water inlet solenoid valve is opened, and the bottom water pumped by the water pump enters the front end of the water tank through the water pipe, thereby raising the water level in the tank. Using the water level difference, the water in the tank is automatically discharged from the drain hole, so that the bottom water can flow in the tank.
4. The solar-powered, autonomous cruising aquaculture pond water-cultivating boat according to claim 3, characterized in that: The bottom layer at the stern of the water-cultivating boat is an open frame structure, on which a pressure water pump and a suction water pump are installed; the water outlet of the pressure water pump at the front end of the frame is connected to a hose to the bottom layer of the pond, and when the pressure water pump is working, the surface water is pressed into the bottom layer of the pond and the floating mud on the bottom of the pond is flushed out; the water inlet of the suction water pump at the rear end of the frame is connected to a hose to the bottom of the pond, and the bottom water of the pond together with the floating mud is pumped to the surface for oxidation by photosynthesis; at the same time, the water outlet of the suction water pump is located opposite to the steering gear, and the steering gear is used to control the steering of the hull.
5. The solar-powered autonomous cruising aquaculture pond water-cultivating boat according to claim 4, characterized in that: The hardware part of the core control board is implemented based on the XC30 LoRa module; The XC30 LoRa module has a total of 29 pins for connecting peripheral resources. In the sensing and monitoring part of the water-farming boat, the B13 and B14 pins are used to connect the SCL and SDA lines of the accelerometer and angular velocity meter MPU6050 and the magnetometer HMC5883L; the USART2 pins corresponding to A2 and A3 are used to connect the USART serial port TX and RX lines of the GPS sensor; the USART3 corresponding to the B10 and B11 pins are used to connect the 485 communication module to convert the serial port signal into a 485 signal, and then connected to the RS485 interface A and B lines of the water quality sensor; Pin B15 is the input port of the battery voltage measurement digital-to-analog converter AD, and the voltage value V corresponding to the resistor is measured using a voltage divider circuit, and the current battery voltage is calculated; In the control part of the water-farming boat, B5, B6, B7, B8, and B9 are connected to the input terminals IN1 to IN5 of the five-way relay control board as ordinary GPIOs, and the on and off of the corresponding relays are controlled by high and low levels; B3 outputs a PWM signal to control the speed of the water pump; B4 outputs a PWM signal to control the rotation angle of the steering servo; pin ANT is connected to the LoRa antenna, pins VDD and GND are connected to the 3.3V DC power supply, pins A13 and A14 are used for version download, program burning, and program tracking and debugging; the USART1 serial port corresponding to pins A9 and A10 provides log printing output to the outside for program debugging; the remaining pins are not used and are directly left floating.
6. The solar-powered autonomous cruising aquaculture pond water-cultivating boat according to claim 5, characterized in that: The water pump at the rear of the hull of the water-cultivating boat pumps the bottom water of the pond to below the water surface and sprays it to the rear of the hull. When the water sprays backward, the water-cultivating boat obtains a reverse force to push the hull forward; the water pump flow rate is adjusted by adjusting the speed of the water pump motor, thereby adjusting the travel speed of the hull; the motor speed of the water pump is controlled using a digital PWM signal, and the MCU of the core control board outputs PWM signals with different duty cycles to adjust the water pump speed, and the travel speed of the hull is adjusted by changing the water spraying speed of the water pump; the motor operating speed of the water pump is divided into two states: full speed and half speed; the water pump is also used to pump the bottom water of the pond to the surface water surface, thereby playing the role of water cultivation.
7. A cruising method for a solar-powered autonomous cruising aquaculture pond water-cultivating boat according to any one of claims 1 to 6, characterized in that: include: During the autonomous cruising on the water surface, the water-farming boat calculates the position and attitude in real time, and continuously adjusts the direction of the servo to control the steering of the hull according to the target waypoint. The GPS sensor is used to obtain the current position of the hull, and the acceleration and angular velocity gyroscope and magnetometer sensor are used to form a nine-axis IMU measurement unit. Based on the nine-axis data, an inertial hull attitude solution algorithm is used to solve the hull heading reference system.
8. The method according to claim 7, characterized in that The water-farming boat enters an initialization phase before autonomous cruising on the water surface, and keeps the hull horizontal and still to calibrate the gyroscope: in the initialization phase, while keeping the gyroscope still, the gyroscope X, Y, and Z three-axis data are read N times in a loop, and a short sleep period of 2ms is performed between each reading, and the average values X1, Y1, and Z1 of the X, Y, and Z three-axis data are respectively calculated as the offset of the gyroscope. During actual measurement, the gyroscope X, Y, and Z three-axis measured values are respectively subtracted from the gyroscope offsets X1, Y1, and Z1 to obtain the angular velocity values in the X, Y, and Z directions.
9. The method according to claim 8, characterized in that Before the water-farming boat enters the cruising pond for the first time, the magnetometer sensor needs to be calibrated at the pond entrance: the core control board equipped with the magnetometer is rotated around the X, Y, and Z axes respectively, and the magnetometer X, Y, and Z axis data are cyclically read N times, and a short sleep period of 2ms is performed between each reading. After the rotation is completed, the maximum and minimum values of the magnetometer X, Y, and Z axis data are obtained respectively, and the maximum and minimum values of the X-axis data are added and divided by 2 to obtain the average value X2 as the X-axis fixed offset; the maximum and minimum values of the Y-axis data are added and divided by 2 to obtain the average value Y2 as the Y-axis fixed offset; the maximum and minimum values of the Z-axis data are added and divided by 2 to obtain the average value Z2 as the Z-axis fixed offset; During actual measurement, the fixed offsets X2, Y2, and Z2 are respectively subtracted from the measured values of the magnetometer's X, Y, and Z axes to obtain the geomagnetic values in the X, Y, and Z directions.
10. The method according to claim 9, characterized in that The inertial hull attitude solution algorithm includes: solving the nine-axis data obtained by the nine-axis IMU measurement unit into Euler angles in the navigation coordinate system, using the Magdwick gradient descent attitude solution algorithm, the input is the acceleration, angular velocity, geomagnetic nine-axis data of the carrier obtained by the nine-axis IMU measurement unit and the algorithm scheduling frequency, the output is the quaternion after iterative calculation, the quaternion is converted into Euler angles of rotation ψ around the Z axis, rotation θ around the Y axis, and rotation φ around the X axis, the Euler angle ψ output by the algorithm is the yaw angle yaw, θ is the roll angle roll, and φ is the pitch angle pitch, wherein pitch and roll are used to measure the amplitude of the left and right swing and the amplitude of the up and down swing of the hull in the pond, respectively, and the yaw angle yaw is used to measure the direction of the bow, that is, the current heading of the hull; The water-farming boat adopts the following navigation control algorithm: obtain the navigation track point of the current pond from the network end, and then perform the following steps: Step 1: Calculate the next target navigation point before starting the navigation task, calculate the distance between the current location and all target points respectively, and select the target point with the closest distance as the target navigation point; Step 2: Use the triangular cosine theorem to calculate the distance between the current location point A and the target navigation point B: The coordinates of the current location point A are (Ja, Wa); the coordinates of the target navigation point B are (Jb, Wb); R is the radius of the earth; Δλ is the intermediate parameter; Step 3, calculate the heading angle θ between the current position point A and the target navigation point B: Intermediate parameters Δλ is calculated using longitude and latitude as follows: Step 4, determine whether the target navigation point has been reached. When distance≤3L, the navigation point has been reached, and the next target navigation point is selected in sequence, and step 3 is entered to navigate to the new target navigation point. When the last target navigation point is completed, the current round of navigation is determined to be completed, and the ship returns to the origin to enter the next round of automatic cruising; otherwise, the target navigation point has not been reached. When distance≤6L, the water pump enters half-speed operation; when distance>6L, the water pump runs at full speed, and step 5 is entered; L is the length of the ship; Step 5, obtaining the current heading speed or bow direction based on the inertial hull attitude solution algorithm, the bow direction is the yaw angle; Step 6, calculate the difference degToChg between the heading angle θ and the yaw angle yaw. Both the heading angle θ and the yaw angle yaw are deflections relative to the geographic north. Define the clockwise direction as positive, and let degToChg = θ-yaw. When degToChg ≤ 180°, rotate the steering servo clockwise; when degToChg> 180°, rotate the steering servo counterclockwise; when |degToChg ≤ 3|, keep the steering servo unchanged, continue to maintain the current heading, and enter step 2; otherwise, determine whether the rotation direction is clockwise or counterclockwise, and then determine the steering servo angle, and enter step 7; Step 7, limit the maximum rotation angle of the steering servo to 60 degrees, and the MCU of the core control board outputs PWM signals with different duty cycles to complete the angle control of the steering servo; determine the rotation angle amplitude of the steering servo according to the speed, and when in the full-speed operation stage, map the steering from 0 to 180° to 0 to 60°, and the steering servo angle rudToChg=degToChg / 3; when in the half-speed operation stage, if degToChg≤60°, then rudToChg=degToChg, if degToChg>60°, then rudToChg=60°; after turning the steering servo, continue navigation and return to step 2; The water-farming boat realizes the PWM control of the steering gear by the following method: the automatic reload register ARR value is set in the clock initialization of the core control board MCU, and the PWM frequency Fpwm is calculated by the following formula: Where X1 represents the main frequency of the MCU of the core control board; Adjust the duty cycle of PWM to change the steering servo angle: Duty cycle To make the rudder direction level with the hull, set the register of the timer Timer CCR = 7.5% * (ARR + 1) = 30. The rotation of the steering servo and the change of the duty cycle are linear. When the rudder angle is 1°, the change of the duty cycle is Then when the steering servo rotates X, the change of CCR ΔCCR is linearly related to the change of duty cycle Δduty, expressed as ΔCCR=Aduty*(ARR+1)=dutyEveryDeg*X*(ARR+1)=0.22*X; In order to stabilize the hull when turning, the steering servo is limited to a rotation angle of 60°. When the steering servo rotates to a maximum of 60°, the corresponding duty cycle is 4.2% to 10.8%, and ΔCCR = 13.2≈13; Calculate the change of register CCR, take the rudder direction and hull level as the initial state, turn the steering servo X, CCR = 30 ± ΔCCR, the sign is negative for left turn and positive for right turn, modify the value of register CCR, change the duty cycle of PWM, and control the turning angle of the rudder.
Citation Information
Patent Citations
Beacon navigation based water quality improving ship, control system and control process
CN106020206A
Mobile monitoring node apparatus of water-surface floating object
CN107168155A
Automatic shift navigation beacon light ship and realizing method thereof
CN110001885A
Water information intelligent monitoring system based on unmanned ship
CN116991097A
Inertial motion tracking device
US10274509B1
