Ultrasonic water level detection method and device for aquaculture with fault self-diagnosis function
Technical Field
The invention relates to the field of aquaculture and detection, in particular to a device and a method for detecting the water level of a culture pond by adopting an ultrasonic technology.
Background
In the aquaculture process, the real-time monitoring of the water level of the culture pond is very important. The water level of the culture pond influences the temperature of each underwater area, and in an automatic culture environment, the fault of water level detection can lead to unreasonable water level and reduce the yield of various aquatic products. In a more serious situation, once the water level detection equipment breaks down, the whole system is in error due to the fact that the measured water level is completely wrong, the water level is controlled to be too low, the water tank is emptied to cause large-area death of aquatic products, and irreparable loss is formed.
The existing aquiculture water level detection generally adopts a floating ball type detection method, for example, a water level device disclosed in Chinese patent No. 201720681384.7 judges the water level by detecting the positions of a floating ball and an iron block through a sensor. The device disclosed in chinese patent No. 201810615020.8 is to control the water level by a floating ball and a matching mechanical structure. The floating ball type water level detection device does not have the function of automatically detecting faults, and the device can not avoid equipment aging and damage in an outdoor environment after long-term operation, so that the water level of the culture pond is out of control due to faults.
Compared with the traditional floating ball type detection method, the ultrasonic water level detection method has the advantages of no need of direct contact, reduction of equipment loss, strong anti-interference capability and the like. The ultrasonic water level can be accurately measured, the water level height can be continuously measured and recorded in detail, and the monitoring scientificity is greatly improved. In an aquatic product breeding base, most of ultrasonic devices are installed in a severe outdoor environment, and interference and even damage of an internal circuit are possibly caused by long-time sunshine exposure and weather gift washing. The existing ultrasonic device only has the function of alarming the abnormity of an operating circuit, but cannot judge whether the distance measuring function is normal. In an automatic aquaculture system, the whole water level control system has no human intervention, once an ultrasonic device is halted or a detection probe fails, the detected water level is always kept unchanged, and the system still operates normally after the system fails to recognize the fault. If the measured water level is far higher than the actual water level, the automatic culture system can continuously drain water, and aquatic products can die due to water shortage when the water level of the culture pond is emptied. If the measured water level is far lower than the actual water level, the automatic culture system can continuously add water into the culture pond, the culture pond can be overflowed when the water level is too high, and aquatic products are greatly lost. Therefore, it is very important to design an ultrasonic water level detection device with self-detection of faults to prevent the water level of the automatic culture system from being out of control.
Disclosure of Invention
Under the background that the water level measurement fault cannot be automatically detected in the prior art, the invention provides the ultrasonic water level detection method and the ultrasonic water level detection device with the function of automatically detecting the fault, the fault self-detection function is realized on the basis of not changing the structure of the existing distance measuring device, and the accuracy of each distance measurement is ensured.
In order to achieve the above object, the ultrasonic water level detection device with fault self-diagnosis for aquaculture of the present invention adopts the technical scheme that: the lower end of a vertical rod is fixed on the bank of an aquaculture pond, the upper end of the vertical rod is fixedly connected with one end of a horizontal hollow rod, the other end of the horizontal hollow rod extends above the aquaculture pond, an ultrasonic probe and a controller are arranged at the other end of the horizontal hollow rod, the middle position of the horizontal hollow rod is fixedly connected with the upper end of a vertical fixing rod, a horizontal supporting plate is fixed at the lower end of the vertical fixing rod, a steering engine is arranged on the upper surface of the horizontal supporting plate, an output shaft of the steering engine is coaxially connected with a steering wheel below, and the steering wheel is fixedly connected with a metal detection plate; the metal detection plate is a rectangular plate, the surface of the metal detection plate at one end of the metal detection plate is connected with a steering wheel, and the ultrasonic probe is arranged above the metal detection plate; the controller is respectively connected with the ultrasonic probe and the steering engine through control lines
The technical scheme adopted by the detection method of the ultrasonic water level detection device with the fault self-diagnosis function for aquaculture is as follows:
step A: the controller controls the ultrasonic probe to send ranging sound waves, the current time is t1, the ranging sound waves bounce and are received by the ultrasonic probe after impacting the water surface of the aquaculture pond, the current time is t2, the water level depth H = H-v (t 2-t 1)/2 is calculated, H is the distance between the ultrasonic probe and the bottom of the aquaculture pond, and v is the ultrasonic propagation speed;
and B: the controller controls the steering engine to rotate clockwise by a fixed angle of 90 degrees, so that the metal detection plate rotates to the position below the ultrasonic probe and shields a measurement path of the ultrasonic probe, the ultrasonic probe is controlled to send a measurement signal, and the measurement distance d from the ultrasonic probe to the metal detection plate is measured; the controller controls the steering engine to rotate 90 degrees anticlockwise to drive the metal detection plate to return;
and C: the controller compares the measured distance d with the actual vertical distance L between the ultrasonic probe and the metal detection plate, judges whether the compared difference is within a set error range, and if the difference exceeds the error range, the distance measurement fails, and if the difference does not exceed the error range, the water level depth h is accurate water level data.
Compared with the prior art, the invention has the following advantages:
1. the detection device provided by the invention realizes the fault self-diagnosis function of ultrasonic water level detection, and avoids the phenomenon that a great amount of aquatic products die due to the fact that the liquid level detection value is unchanged when the detection device is halted.
2. After the water level detection is finished each time, the controller drives the steering engine, the steering engine drives the metal detection plate to rotate to the position below the ultrasonic probe, and fixed distance detection is carried out to judge whether the detection device fails or not, so that the diagnosis function of whether the detection device fails or not is realized, the accuracy of each distance measurement is ensured, and the problems of low efficiency, poor real-time performance and the like of manual regular detection are effectively solved.
3. The detection device is suitable for ultrasonic equipment with various precisions and shapes because the original ultrasonic probe is not modified, and the detachable structure of the protective shell is easy to overhaul and replace different equipment.
4. The controller in the detection device is connected with the upper computer through the wireless communication module, and therefore remote monitoring and control can be achieved.
3. In consideration of service life and failure probability, the detection device is additionally provided with a metal steering engine protective shell and a metal controller protective shell to prevent the damage and interference of the outside to equipment.
Drawings
FIG. 1 is a schematic structural view of an ultrasonic water level detecting apparatus for aquaculture with fault self-diagnosis according to the present invention;
fig. 2 is an enlarged view of an assembly structure of the vertical fixing rod 7, the horizontal supporting plate 5 and the metal steering engine protective shell 3 in fig. 1;
FIG. 3 is an enlarged bottom view of steering gear 4 of FIG. 1;
figure 4 is an enlarged top view of the rudder disk 2 in figure 1;
fig. 5 is an enlarged top view of the metal detection plate 1 in fig. 1;
fig. 6 is a flowchart of a detection method of the ultrasonic water level detecting apparatus shown in fig. 1.
In the figure: 1. a metal probe plate; 2. a rudder wheel; 3. a metal steering engine protective shell; 4. a steering engine; 5. a horizontal support plate; an L-shaped fixed support; 7. a vertical fixing rod; 8. a steering engine control line; 9. a metal controller protective case; 10. a controller; 11. an ultrasonic probe; 12. a horizontal hollow bar; 13. a vertical rod; 14. shoreside; 15. an aquaculture pond;
101. a central screw hole; 102. fixing screw holes; 201. a central through hole; 202. fixing screw holes; 206. a female tooth; 301. fixing screws; 401. fixing screw holes 402; 403. fixing screw holes; 404. an output shaft of the steering engine; 405. male teeth; 501. and fixing the screw.
Detailed Description
Referring to fig. 1-2, the ultrasonic water level detection apparatus for aquaculture with fault self-diagnosis of the present invention is installed at the bank 14 of an aquaculture pond 15, a vertical rod 13 is additionally installed at the bank 14, the lower end of the vertical rod 13 is fixed at the bank 14, the upper end of the vertical rod 13 is fixedly connected to one end of a horizontal hollow rod 12 by welding, and the other end of the horizontal hollow rod 12 extends above the aquaculture pond 15. The horizontal hollow bar 12 maintains a horizontal position, ensuring that the ultrasonic probe 11 is in a vertical position. The other end of the horizontal hollow rod 12 is provided with an ultrasonic probe 11 and a controller 10, the controller 10 is arranged inside the metal controller protection shell 9, the other end of the horizontal hollow rod 12 is fixedly connected with the metal controller protection shell 9 through welding, and the metal controller protection shell 9 protects the controller 10. An ultrasonic probe 11 is arranged below the controller 10, a control line of the controller 10 is connected with the ultrasonic probe 11, and the ultrasonic probe 11 extends out of the lower part of the outer part of the metal controller protection shell 9, so that the metal controller protection shell 9 and the ultrasonic probe 11 are integrated. The metal controller protection shell 9 is kept at the horizontal position of the upper surface and the lower surface, the ultrasonic probe 11 is ensured to be in the vertical state, and the water level is ensured to be measured accurately. The upper end of the vertical fixing rod 7 is fixedly connected with the middle position of the horizontal hollow rod 12, the lower end of the vertical fixing rod 7 is fixed with a horizontal supporting plate 5 through a fixing screw 501, the vertical fixing rod 7 and the horizontal supporting plate 5 are arranged below the horizontal hollow rod 12, and an L-shaped fixing support 6 is additionally arranged at the connecting position of the horizontal supporting plate 5 and the vertical fixing rod 7 to ensure the stability of the horizontal supporting plate 5 and the vertical fixing rod 7.
A steering engine 4 is installed on the upper surface of a horizontal supporting plate 5, a metal steering engine protective shell 3 covers the steering engine 4, the metal steering engine protective shell 3 is fixedly installed on the horizontal supporting plate 5 through fixing screws 301 on two sides, and the core component steering engine 4 is protected by the metal steering engine protective shell 3. A steering wheel 2 and a metal detection plate 1 are arranged below the horizontal support plate 5, an output shaft of the steering engine 4 is coaxially and fixedly connected with the steering wheel 2 below, the steering wheel 2 is connected with the metal detection plate 1 below, so that the steering engine 4 is connected with the metal detection plate 1 through the steering wheel 2 to drive the metal detection plate 1 to rotate.
The horizontal support plate 5 is below the ultrasonic probe 1 but does not block the normal measurement of the ultrasonic probe 11. However, the metal detection plate 1 is required to be capable of shielding the normal measurement of the ultrasonic probe 11 after rotating, the metal detection plate 1 is in a horizontal position after being installed, and the horizontal length of the ultrasonic probe 11 is fixed, so that the horizontal length is enough to shield the detection path of the ultrasonic probe 11.
The vertical length of the vertical fixing rod 7 determines the vertical distance L between the ultrasonic probe 11 and the detection plate 1, and the actual vertical distance between the ultrasonic probe 11 and the metal detection plate 1 is L and is fixed.
A round small hole is formed in the joint of the metal controller protective shell 9 and the horizontal hollow rod 12, the metal controller protective shell is connected to a steering engine control line 8 of the controller 10, and the metal controller protective shell penetrates through the horizontal hollow rod 12, the vertical fixing rod 7 and the metal steering engine protective shell 3 to be connected with a steering engine 4, so that the controller 10 can control the steering engine 4. Meanwhile, the controller 10 is also connected with the ultrasonic probe 11 through a control line to control the work of the ultrasonic probe 11, and the controller 10 is also connected with an upper computer through a wireless communication module to transmit the processing result to the upper computer.
As shown in fig. 3, the steering gear 4 is fixed to the support plate 5 through fixing screw holes 401 and 402 at both sides. A circle of male teeth 405 is arranged on the side wall of an output shaft 404 of the steering engine 4, and a fixed screw hole 403 is formed in the middle of the output shaft. As shown in fig. 4, the rudder disk 2 is in a disc open shape, the central through hole 201 of the rudder disk is coaxial with the fixed screw hole 403 on the steering engine output shaft 404, a circle of female teeth 206 are arranged on the inner wall of the rudder disk 2, and when the steering engine 4 is connected with the rudder disk 2, the male teeth 405 on the steering engine output shaft 404 are meshed with the female teeth 206 on the rudder disk 2. Several fixing screw holes 202 are opened on the surface of the rudder plate 2, and the metal detecting plate 1 below the fixing screw holes 202 is connected. As shown in fig. 5, the metal detection plate 1 is a rectangular plate, a central screw hole 101 is formed on the plate surface at one end, the central screw hole 101 is coaxial with the central through hole 201 of the rudder disk 2 and the fixing screw hole 403 on the output shaft 404 of the steering engine, several fixing screw holes 102 are formed around the central screw hole 101, and the fixing screw holes 102 correspond to the fixing screw holes 202 on the plate surface of the rudder disk 2 and are used for fixedly connecting the metal detection plate 1 and the rudder disk 2. The centers of the metal detecting plate 1, the rudder disk 2 and the steering engine 4 are fixedly connected together from bottom to top by a screw which sequentially passes through the fixing screw hole 102 and the fixing screw hole 403 of the central through hole 201. When steering wheel 4 moves, steering wheel output shaft 404 rotates, relies on public tooth 405 to drive female tooth 206, and female tooth 206 rotates with rudder disk 2 simultaneously to drive metal detecting plate 1 rotation of fixed connection with it again by rudder disk 2, make metal detecting plate 1 change position, metal detecting plate 1 is in the department of deviating from one end face and is connected rudder disk 2, and the ultrasonic transducer 11 of top can be sheltered from to the other end department of deviation. Since the metal detection plate 1 has a rectangular structure, the metal detection plate has two positions after rotation, the two positions have a 90-degree difference, one position is located right below the ultrasonic probe 11 and shields the ultrasonic probe 11, and since the actual vertical distance L between the metal detection plate 1 and the ultrasonic probe 11 is fixed, whether a fault occurs can be confirmed by comparing the fixed distance L with the water level distance measured by the ultrasonic probe 11. The other position of the metal detection plate 1 is that the ultrasonic probe 11 rotates clockwise by 90 degrees, and the position leaves the ultrasonic probe 11 away from the ultrasonic probe 11, so that the normal water level measurement of the ultrasonic probe 11 cannot be blocked.
Referring to fig. 1 to 6, when the ultrasonic water level detection device for aquaculture with fault self-diagnosis of the present invention is in operation, the upper computer sends an ultrasonic detection command, which is sent to the controller 10 via the wireless communication module, and determines whether the command is a water level detection command, if the command is a detection command, the controller 10 receives a ranging command, and then controls the ultrasonic probe 11 to perform water level detection, and if the command is not a detection command, the ultrasonic water level detection device is not operated and continues to wait.
When the controller 10 detects the water level, the ultrasonic probe 11 is controlled to send a measurement signal, namely, send a ranging sound wave, and the current time t1 is recorded, the sent ranging sound wave rebounds after impacting the water surface of the aquaculture pond 15 and is received by the ultrasonic probe 11, and the current time t2 is recorded immediately. The depth h of the current water level can be calculated according to the propagation velocity v of the ultrasonic wave, and the calculation formula is as follows: h = H-v (t 2-t 1)/2, wherein H is the distance of the ultrasonic probe 1 from the bottom of the aquaculture pond 15, and is a fixed distance measured in advance before detection. After the calculation, the controller 10 saves the measured water level depth h, and the normal water level measurement is completed. The data of the water level depth h indicates that the circuit inside the detection device is normal and has no abnormal condition, but the distance measurement function cannot be judged whether to be normal, so that whether the measurement data is accurate needs to be judged.
After the normal water level measurement is completed, the equipment performs fault self-detection, and if fault detection is performed before the water level measurement is performed, the situation that the device fails in the operation process may occur, so that misjudgment is caused. Firstly, the controller 10 controls the steering engine 4 to operate, and clockwise rotates by a fixed angle of 90 degrees, so that the metal detection plate 1 rotates by a fixed angle to the position below the ultrasonic probe 11, the measurement path of the ultrasonic probe 11 is shielded, and the distance between the ultrasonic probe 11 and the metal detection plate 1 is ensured to be measured at this time. The controller 10 controls the ultrasonic probe 11 to transmit a measurement signal for measuring a measurement distance d from the ultrasonic probe 11 to the metal detection plate 1. The controller 10 controls the steering engine to rotate 90 degrees anticlockwise, and drives the metal detection plate 1 to return, so that the metal detection plate 1 does not block the ultrasonic probe 11 from measuring the water level, and the normal water level is measured next time.
The controller 10 compares the measured distance d with the actual vertical distance L between the ultrasonic probe 11 and the metal detection plate 1, determines whether the compared difference is within a set error range, and once the difference exceeds the error range, it indicates that the device is in fault, and the controller 10 lights a fault lamp and sends fault information through the wireless communication module to perform fault alarm and wait for processing. If the water level does not exceed the error range, the water level detection is normal, the previously measured water level depth h is accurate data, the water level depth h is uploaded to an upper computer, and the upper computer receives the data and stores the data in a database and displays the data in real time for a detector to observe.