Constant mud level control device based on stm32 single-chip microcomputer
Through the ultrasonic mud level meter and PID algorithm based on STM32 microcontroller, the problem of high cost and single function of the liquid level meter is solved, the automatic adjustment of the frequency of the sludge transportation pump is realized, and the equipment efficiency and the stability of sludge transportation are improved.
Patent Information
- Application Number
- CN202420701988.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-08
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2034-04-08
AI Technical Summary
The existing technology uses liquid level gauges with high cost, single function, and large device size. Moreover, the echo sampling algorithm of the ultrasonic liquid level gauge is not suitable for measuring the mud level in the hopper, resulting in rough adjustment of the operating frequency of the sludge transfer pump and increasing labor costs. and equipment wear and tear, reducing equipment efficiency.
An ultrasonic mud level meter based on STM32 microcontroller is used, combined with PID algorithm, Kalman filter and delay control method, to control the operating frequency of the sludge transport pump through a frequency converter to maintain a constant position of sludge in the hopper.
Automatic frequency adjustment of the sludge transport pump is realized, reducing labor costs, improving equipment efficiency and equipment life, reducing energy consumption, and ensuring the stability of sludge transport.
Smart Images

Figure CN221926994U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of constant mud level control equipment, in particular to a constant mud level control device based on an STM32 single chip microcomputer. Background Art
[0002] After searching the Chinese patent literature with the existing announcement number CN219217811U, a constant mud level control device is disclosed, including a transmission shaft, a sludge thickening tank, and a main beam, and the main beam is used to support the transmission shaft. Scraper arms are fixedly installed on the left and right sides of the transmission shaft, and scrapers are evenly distributed on the lower end surface of the scraper arm. A groove is provided on the side of the scraper away from the scraper arm, and corresponding connecting mechanisms are arranged inside the left and right sides of the scraper. The device realizes the connection between the brush and the scraper through the coordination between the brush, the connecting mechanism, the scraper and the protective cover, and achieves the installation effect of the brush, effectively solving the problem of brush replacement. The connection method of the connecting mechanism and the locking block is changed to simplify the disassembly and assembly steps of the brush, which is convenient for the staff to replace the damaged brush, thereby improving the cleaning effect of the brush on the bottom surface of the sludge thickening tank.
[0003] At present, the operation of sludge pump mainly depends on the manual observation of the unloading flow rate of the conveyor discharge port and the change of the amount of mud in the sludge hopper. According to experience, the motor frequency of the sludge pump is constantly adjusted, and then the rate of pumping mud to the sludge silo is adjusted, so as to find the operating frequency of the sludge pump that can maintain the constant mud level in the sludge hopper. During the operation, it is also necessary to observe whether the sludge in the sludge hopper overflows through monitoring or other patrol measures. After overflow, the equipment needs to be switched and the optimal frequency needs to be readjusted. If the overflow is serious, it needs to be shut down for treatment. In addition, the overflow and the sludge in the bucket of the problematic equipment need to be handled manually, which increases the labor cost, pollutes the working environment, and reduces the equipment operation efficiency. In addition, the operating frequency of the sludge pump regulated by naked eye observation or other manual methods is very rough. Basically, the operating frequency is high and the amount of mud in the sludge pump is small. On the one hand, this will cause the stator and rotor of the sludge pump to have a large regional dry grinding, and the equipment will operate at a high temperature, which will reduce the life of the equipment, increase the failure rate and wear value of the equipment, and on the other hand, it will increase the energy consumption of the equipment and reduce the efficiency of the equipment. The existing similar industrial technology solution is applied to the constant liquid level control of water pumps, which is a process in which the liquid level value is output by the liquid level meter, and then the PLC adjusts the frequency converter according to the algorithm to control the water pump to achieve a constant liquid level. However, this technology uses a liquid level meter with high cost, single function, large device size, and generally consists of a meter head and a sensor probe. In addition, the echo sampling algorithm design of the ultrasonic level meter is not suitable for measuring the mud level in the hopper. Utility Model Content
[0004] The technical problem to be solved by the utility model is to overcome the defects of the prior art and provide a constant mud level control device based on an stm32 single-chip microcomputer, aiming to solve the technical problems that the prior art uses a liquid level meter with high cost, single function, large device size, and is generally composed of a meter head and a sensor probe, and the echo sampling algorithm design of the ultrasonic liquid level meter is not suitable for measuring the mud level in the hopper.
[0005] In order to solve the above technical problems, the utility model provides the following technical solutions:
[0006] The utility model discloses a constant mud level control device based on an STM32 single-chip microcomputer. The device comprises a sludge conveying pump, a bidirectional conveyor and an STM32 single-chip microcomputer module. The top surface of the sludge conveying pump is provided with a sludge hopper, the top of the sludge hopper is provided with an ultrasonic probe, the top of the ultrasonic probe is provided with a first STM32 single-chip microcomputer module, the top of the first STM32 single-chip microcomputer module is provided with a sludge discharge port, the top surface of the sludge discharge port is provided with a bidirectional conveyor, a frequency converter is provided on one side of the sludge conveying pump, a three-phase AC power supply is provided on one side of the frequency converter, a second STM32 single-chip microcomputer module is provided on the top of the frequency converter, a touch screen is provided on one side of the second STM32 single-chip microcomputer module, and a DC power supply is provided on the top of the second STM32 single-chip microcomputer module.
[0007] As a further description of the above technical solution:
[0008] The sludge hopper and the sludge discharge port are arranged correspondingly, and the three-phase AC power supply is respectively connected to the sludge conveying pump and the frequency converter through a three-phase AC line for power supply.
[0009] As a further description of the above technical solution:
[0010] The frequency converter is respectively connected to the first STM32 single-chip microcomputer module, the second STM32 single-chip microcomputer module and the touch screen through a communication control line and powered on. The touch screen is a human-computer interaction touch screen.
[0011] As a further description of the above technical solution:
[0012] The DC power supply is respectively connected to the first STM32 single-chip microcomputer module, the second STM32 single-chip microcomputer module, the touch screen and the bidirectional conveyor through a DC power line, and the bidirectional conveyor is provided in two groups.
[0013] As a further description of the above technical solution:
[0014] The sludge conveying pump is a single screw pump, which includes an extrusion chamber, a long bolt, a stator, a screw plug, a screw propeller, a suction chamber, a bearing seat, a water retaining ring, a mechanical sealing structure, a bearing, a positioning sleeve and a round nut.
[0015] The utility model has the following beneficial effects:
[0016] In the utility model, the amount of sludge in the current hopper is obtained by utilizing an ultrasonic mud level meter made based on an stm32 single-chip microcomputer development board, and the operating frequency of the sludge conveying pump is controlled by a frequency converter through a PID algorithm, a Karman filter and a delay control method. The input of sludge is basically constant, and the output of sludge in the hopper is controlled mainly by controlling the operating speed of the sludge conveying pump to maintain a constant mud level in the hopper. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0018] Figure 1 It is a schematic diagram of the overall structure of the utility model;
[0019] Figure 2 This is a schematic diagram of the connection flow of the STM32 single-chip microcomputer module of the utility model;
[0020] In the figure: 1. Sludge conveying pump; 2. Bidirectional conveyor; 3. Sludge hopper; 4. Ultrasonic probe; 5. First STM32 microcontroller module; 6. Sludge discharge port; 7. Frequency converter; 8. Three-phase AC power supply; 9. Second STM32 microcontroller module; 10. Touch screen; 11. DC power supply. DETAILED DESCRIPTION
[0021] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0022] In the drawings, the same reference numerals all refer to the same components.
[0023] Example 1
[0024] Reference Figure 1-2The utility model provides an embodiment: a constant mud level control device based on an stm32 single-chip microcomputer, comprising a sludge conveying pump 1, a bidirectional conveyor 2 and an STM32 single-chip microcomputer module, a sludge hopper 3 is arranged on the top surface of the sludge conveying pump 1, an ultrasonic probe 4 is arranged on the top of the sludge hopper 3, a first STM32 single-chip microcomputer module 5 is arranged on the top of the ultrasonic probe 4, a sludge discharge port 6 is arranged on the top of the first STM32 single-chip microcomputer module 5, a bidirectional conveyor 2 is arranged on the top surface of the sludge discharge port 6, a frequency converter 7 is arranged on one side of the sludge conveying pump 1, a three-phase AC power supply 8 is arranged on one side of the frequency converter 7, a second STM32 single-chip microcomputer module 9 is arranged on the top of the frequency converter 7, a touch screen 10 is arranged on one side of the second STM32 single-chip microcomputer module 9, and a DC power supply 11 is arranged on the top of the second STM32 single-chip microcomputer module 9.
[0025] The sludge hopper 3 and the sludge discharge port 6 are arranged correspondingly, and the three-phase AC power supply 8 is respectively connected to the sludge conveying pump 1 and the frequency converter 7 through the three-phase AC line to energize.
[0026] The frequency converter 7 is connected to the first STM32 single-chip computer module 5, the second STM32 single-chip computer module 9 and the touch screen 10 through the communication control line, and the touch screen 10 is configured as a human-computer interaction touch screen.
[0027] The DC power supply 11 is respectively connected to the first STM32 single-chip microcomputer module 5, the second STM32 single-chip microcomputer module 9, the touch screen 10 and the bidirectional conveyor 2 through a DC power line, and the bidirectional conveyor 2 is provided in two groups.
[0028] The sludge conveying pump 1 is a single screw pump, and the sludge conveying pump 1 includes an extrusion chamber, a long bolt, a stator, a screw plug, a screw propeller, a suction chamber, a bearing seat, a water retaining ring, a mechanical sealing structure, a bearing, a positioning sleeve and a round nut.
[0029] Specifically, its structure consists of a sludge conveying pump 1, a bidirectional conveyor 2, a sludge hopper 3, an ultrasonic probe 4, a first STM32 single-chip computer module 5, a sludge discharge port 6, a frequency converter 7, a three-phase AC power supply 8, a second STM32 single-chip computer module 9, a touch screen 10 and a DC power supply 11 to form a constant mud level control device based on an STM32 single-chip computer. The sludge in the sludge hopper 3 is pressed into the stator and rotor of the conveying pump through the sludge conveying pump 1 through a propulsion screw, and then the sludge is continuously squeezed to form a strong pressure through the rotation between the stator and the rotor, and finally enters the sludge storage tank through a pipeline. The frequency converter 7 is used to adjust the frequency of the alternating current to adjust the rotation speed of the motor, thereby controlling the screw propeller at the bottom of the sludge hopper 3 and the stator and rotor of the pump, and finally realizing the control of the amount of sludge output to the sludge storage tank per unit time. The two-way conveyor 2 can switch the spiral rotation direction according to the actual situation of the equipment to control the sludge to be transported to the 1# or 2# machine. The sludge falls into the sludge hopper 3 of the sludge conveying pump 1 through the sludge discharge port 6 of the two-way conveyor 2. The sludge hopper 3 is a trapezoidal regular container for sludge to be transported. The bottom and the spiral structure with a propulsion effect are openly connected. Because it has a fixed amount of sludge accommodating function, it can ensure that the sludge will not overflow to the ground during the frequency fluctuation of the conveying pump. It is also an important component of the constant mud level control system. The ultrasonic probe 4 is composed of an ultrasonic transducer, which is composed of a generating device and a receiving device. The ADC chip is used to realize the quantitative sampling of the echo data. The ultrasonic generating device is driven and controlled by the output high and low potentials of the stm32 single-chip microcomputer, and its receiving device outputs the received data to the stm32 single-chip microcomputer after filtering, conversion, and amplification. During this period, the program continuously emits and receives ultrasonic waves to refresh the mud level data. The first STM32 single-chip microcomputer module 5 and the second STM32 single-chip microcomputer module 9 are the cores of system operation and control, and respectively receive data information transmitted by the ultrasonic probe 4, the touch screen 10 and the frequency converter 7. The amount of sludge in the sludge hopper 3 is calculated according to the mud level algorithm program, and then the difference between the real-time mud level and the target mud level set by the control screen is used as input according to the PID control algorithm and the Karman filter method, and the frequency value of the frequency converter 7 is used as output, so that the mud level is gradually approached to the set value by continuously adjusting the output frequency of the three-phase AC power supply 8 of the frequency converter 7, and finally stabilized at the set value. The sludge discharge port 6 is used to prevent the sludge from falling and splashing, and has a certain guiding effect on the sludge falling. The frequency converter 7 can convert the fixed 50 Hz three-phase AC power supply 8 into an adjustable frequency AC power output to the motor of the sludge conveying pump 1, thereby controlling the rotation speed of the conveying pump, and then controlling the sludge conveying speed.The rotation speed of the sludge conveying pump 1 is high. When the amount of sludge delivered into the sludge hopper 3 by the two-way conveyor 2 per unit time is relatively stable, the sludge in the sludge hopper 3 will be consumed quickly, and the mud level will naturally drop until it approaches the set mud level value and gradually stabilizes. A visualization platform for stable control of the system is realized through the touch screen 10. On the one hand, the sludge level, sludge amount, inverter 7 operation information, conveying motor current, voltage, alarm, etc. in the conveying system are displayed on the touch screen for easy monitoring. On the other hand, the operation of the system can be controlled by starting, stopping, manual, automatic, parameter setting, etc. of the touch screen 10, so that the overall operation frequency of the sludge conveying pump can be effectively controlled.
[0030] Working principle: After the sludge is processed by the dewatering machine, it is sent to the two-way conveyor 2 through the shaftless screw conveyor. The two-way conveyor can switch the spiral rotation direction according to the actual situation of the equipment to control the sludge to be transported to the 1# or 2# machine. The sludge passes through the sludge discharge port 6 of the two-way conveyor 2 and falls into the sludge hopper 3 of the sludge conveying pump. The sludge is pushed into the stator and rotor of the pump by the screw propeller of the sludge conveying pump 1. It is pumped into the conveying pipe and sent to the sludge storage tank through the high-sealing extrusion force. The probe is composed of an ultrasonic transmitting module and a receiving module. After the device is powered on and initialized, the stm32 microcontroller drives the ultrasonic generator to emit The ultrasonic receiver receives the reflected ultrasonic wave after the pulse wave with a frequency of more than 20kHz is emitted. The ultrasonic receiver amplifies, filters, and reduces noise of the received signal, and then converts it into a digital signal through the ADC chip and outputs it to the digital signal processing board based on the DSP architecture. The processed data is sent to the stm32 microcontroller, which calculates the sludge height of the sludge hopper 3 based on the time difference from emission to reception, and uses multiple sampling to take the average and Kalman filtering to remove the noise fluctuation measured by the ultrasonic probe 4, so as to obtain a relatively stable mud level value and the amount of sludge in the sludge hopper 3. The mud level is controlled according to the input of the touch screen 10, and the operating frequency of the AC output of the inverter 7 is adjusted through the analog output to adjust the speed of the sludge pump. According to PID feedback control, KP is the proportional coefficient, KI / S is the integral regulation to eliminate the steady-state error, and KDS is the differential regulation. When the actual mud level is lower than the set mud level, the PID incremental feedback control is used to reduce the frequency of the sludge pump 1, and reduce the output of the sludge in the sludge hopper 3. When the actual mud level is higher than the set mud level, the PID incremental feedback control is used to increase the frequency of the sludge pump 1, and increase the output of the sludge in the sludge hopper 3. The control of the frequency converter 7 by the STM32 single-chip microcomputer is through the 4-20ma current analog control, and the frequency modulation range is 0-50Hz. The two are linearly corresponding. The frequency converter 7 adjusts the frequency output to the motor of the delivery pump, thereby changing the speed of the asynchronous motor to change the sludge delivery speed. The sludge delivery speed in the sludge hopper 3 is strongly positively correlated with the number of revolutions of the delivery pump, so that the overall use efficiency is effectively improved.
[0031] Finally, it should be noted that the above description is only a preferred embodiment of the utility model and is not intended to limit the utility model. Although the utility model is described in detail with reference to the above embodiments, those skilled in the art can still modify the technical solutions recorded in the above embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the utility model shall be included in the protection scope of the utility model.
Claims
1. A constant mud level control device based on an STM32 single-chip microcomputer, comprising a sludge conveying pump (1), a bidirectional conveyor (2) and an STM32 single-chip microcomputer module, characterized in that: The top surface of the sludge conveying pump (1) is provided with a sludge hopper (3), the top of the sludge hopper (3) is provided with an ultrasonic probe (4), the top of the ultrasonic probe (4) is provided with a first STM32 single-chip computer module (5), the top of the first STM32 single-chip computer module (5) is provided with a sludge discharge port (6), the top surface of the sludge discharge port (6) is provided with a bidirectional conveyor (2), a frequency converter (7) is provided on one side of the sludge conveying pump (1), a three-phase AC power supply (8) is provided on one side of the frequency converter (7), a second STM32 single-chip computer module (9) is provided on the top of the frequency converter (7), a touch screen (10) is provided on one side of the second STM32 single-chip computer module (9), and a DC power supply (11) is provided on the top of the second STM32 single-chip computer module (9).
2. A constant mud level control device based on stm32 single chip microcomputer according to claim 1, characterized in that: The sludge hopper (3) and the sludge discharge port (6) are arranged correspondingly, and the three-phase AC power supply (8) is respectively connected to the sludge conveying pump (1) and the frequency converter (7) through a three-phase AC line to be energized.
3. A constant mud level control device based on stm32 single chip microcomputer according to claim 1, characterized in that: The frequency converter (7) is respectively connected to the first STM32 single-chip computer module (5), the second STM32 single-chip computer module (9) and the touch screen (10) through a communication control line and powered on. The touch screen (10) is provided as a human-machine interactive touch screen.
4. A constant mud level control device based on stm32 single chip microcomputer according to claim 1, characterized in that: The DC power supply (11) is respectively connected to the first STM32 single-chip computer module (5), the second STM32 single-chip computer module (9), the touch screen (10) and the bidirectional conveyor (2) through a DC power line to be energized, and the bidirectional conveyor (2) is provided in two groups.
5. A constant mud level control device based on stm32 single chip microcomputer according to claim 1, characterized in that: The sludge conveying pump (1) is a single screw pump, and the sludge conveying pump (1) comprises an extrusion chamber, a long bolt, a stator, a screw plug, a screw propeller, a suction chamber, a bearing seat, a water retaining ring, a mechanical sealing structure, a bearing, a positioning sleeve and a round nut.
