Control method for reducing frequent starting of pressure control type water pump

文档序号:1934024 发布日期:2021-12-07 浏览:20次 中文

阅读说明:本技术 一种减少压力控制型水泵频繁启动的控制方法 (Control method for reducing frequent starting of pressure control type water pump ) 是由 姜德志 齐国新 赵守传 王星星 卢围春 王将 陈涛 于 2020-06-05 设计创作,主要内容包括:本发明属于水泵技术领域,特别涉及一种减少压力控制型水泵频繁启动的控制方法,本发明通过压力传感器监测当前水压值、单片机计算水压变化平均值,当当前水压值小于水压最低限值且累计连续时间大于或等于时间设定值时,则必须开启水泵进行增加;当水压变化平均值大于或等于阈值时,水压突变,则表示非管道泄露,而是用户开启阀门用水,此时需要开启水泵增压;当水压变化平均值小于阈值时,则表示是管道微泄露,允许水压降低到更低的程度才进行增压,此时无需开启水泵增压。本发明在管道存在微泄露的情况下,可以有效的减少水泵的频繁启停。(The invention belongs to the technical field of water pumps, and particularly relates to a control method for reducing frequent starting of a pressure control type water pump, wherein a current water pressure value is monitored through a pressure sensor, a singlechip calculates an average value of water pressure change, and when the current water pressure value is smaller than a water pressure minimum limit value and the accumulated continuous time is greater than or equal to a time set value, the water pump is required to be started for increasing; when the average value of the water pressure change is larger than or equal to the threshold value, the sudden change of the water pressure indicates that the pipeline is not leaked, but a user opens a valve to use water, and at the moment, a water pump needs to be opened for pressurization; when the average value of the water pressure change is smaller than the threshold value, the pipeline is indicated to be slightly leaked, the water pressure is allowed to be reduced to a lower degree for pressurization, and the water pump does not need to be started for pressurization. The invention can effectively reduce the frequent start and stop of the water pump under the condition that the pipeline has micro leakage.)

1. A control method for reducing frequent starting of a pressure control type water pump is characterized by comprising the following steps: the method comprises the following steps:

A. initializing the single chip microcomputer and setting a water pressure minimum limit value xminA threshold thr and a time set value T;

B. preprocessing the data of the pressure sensor, and detecting to obtain an initial water pressure value x0

C. The pressure sensor monitors in real time to obtain the current water pressure value xi

D. Calculating the ith water pressure change value xi-xi-1

E. Calculating the average value of the latest n water pressure changes:

F. if the current water pressure value xiBelow the water pressure minimum limit xminContinuing to execute the step G; if the current water pressure value xiNot lower than the water pressure minimum limit value xminContinuing to execute the step H;

G. calculating the current water pressure value xiBelow the water pressure minimum limit xminThe accumulated continuous time t; if the accumulated continuous time T is greater than or equal to the time set value T, continuing to execute the step I; if the accumulated continuous time T is less than the time set value T, continuing to execute the step H;

H. if the average value f (x) of the water pressure changes is larger than or equal to the threshold value thr, continuing to execute the step I; if the average value f (x) of the water pressure changes is less than the threshold value thr, continuing to execute the step J;

I. starting the water pump, and continuing to execute the step J;

J. and processing other events and returning to the step C.

2. The control method for reducing frequent startup of a pressure control type water pump according to claim 1, characterized in that: the single chip microcomputer is electrically connected with the pressure sensor and controls the water pump to start and stop.

3. The control method for reducing frequent startup of the pressure control type water pump according to claim 2, characterized in that: the single chip microcomputer controls the water pump to start and stop through a relay, a coil of the relay is electrically connected with the control output end of the single chip microcomputer, and a contact switch is electrically connected with the water pump.

4. The control method for reducing frequent startup of the pressure control type water pump according to claim 3, characterized in that: the triode is arranged between the coil of the relay and the control output end of the single chip microcomputer, the base electrode of the triode is electrically connected with the control output end of the single chip microcomputer, the collector electrode of the triode is electrically connected with VCC voltage after being connected with the coil of the relay in series, and the emitting electrode of the triode is grounded.

5. The control method for reducing frequent startup of the pressure control type water pump according to claim 4, characterized in that: and a coil of the relay is connected with the freewheeling diode in parallel and then is electrically connected with VCC voltage.

6. The control method for reducing frequent startup of a pressure control type water pump according to claim 1, characterized in that: the water pump electricity is connected power supply, power supply provides VCC voltage, and VCC voltage is connected with singlechip, pressure sensor electricity respectively.

7. The control method for reducing frequent startup of the pressure control type water pump according to claim 6, characterized in that: the power supply supplies VCC voltage through an AC/DC power adapter.

8. The control method for reducing frequent startup of the pressure control type water pump according to claim 2, characterized in that: and the pressure sensor is electrically connected with the AD input port of the singlechip.

The technical field is as follows:

the invention belongs to the technical field of water pumps, and particularly relates to a control method for reducing frequent starting of a pressure control type water pump.

Background art:

the water pump is operated under pressure control, and is started when the pressure is lower than a preset value and is shut down when the pressure is higher than the preset value. This is mainly used in domestic pipeline pressure boost or well water pumping, and when the user opened tap, pipeline pressure reduced water pump started, and when the user closed tap, pipeline pressure increased water pump shut off.

The traditional pressure control mode usually adopts a pressure switch, and when the water pressure is high, the pressure switch is switched off, and the water pump is switched off. When the pressure is low, the pressure switch is closed, and the water pump is started.

In recent years, a single chip microcomputer control mode is used, and the state of a pressure switch is detected through the single chip microcomputer, so that the work of the water pump is controlled. Some controllers adopt a pressure sensor to replace a pressure switch, so that pressure points can be set more flexibly, and better use experience is provided for users.

However, the above methods all have a great problem, and the problem of frequent starting of the water pump often occurs, mainly because the pipeline is difficult to avoid the situation of micro-leakage, and the pressure tank carried by the water pump itself is generally very small, so that after the pressure is gradually reduced, the water pump starts by itself, even if the user does not start the faucet for water at this time. And the water pressure is lower than a certain value, namely the water pump is started to boost, and the value cannot be very low due to the limit of a processing method, so that the water pump is started frequently when leakage exists.

The invention content is as follows:

the invention aims to provide a control method for reducing frequent starting of a pressure control type water pump, which can effectively reduce frequent starting and stopping of the water pump under the condition that a pipeline has micro leakage.

The purpose of the invention is realized as follows:

a control method for reducing frequent starting of a pressure control type water pump comprises the following steps:

A. initializing the single chip microcomputer and setting a water pressure minimum limit value xminA threshold thr and a time set value T;

B. preprocessing the data of the pressure sensor, and detecting to obtain an initial water pressure value x0

C. The pressure sensor monitors in real time to obtain the current water pressure value xi

D. Calculating the ith water pressure change value xi-xi-1

E. Calculating the average value of the latest n water pressure changes:

F. if the current water pressure value xiBelow the water pressure minimum limit xminContinuing to execute the step G; if the current water pressure value xiNot lower than the water pressure minimum limit value xminContinuing to execute the step H;

G. calculating the current water pressure value xiBelow the water pressure minimum limit xminThe accumulated continuous time t; if the accumulated continuous time T is greater than or equal to the time set value T, continuing to execute the step I; if the accumulated continuous time T is less than the time set value T, continuing to execute the step H;

H. if the average value f (x) of the water pressure changes is larger than or equal to the threshold value thr, continuing to execute the step I; if the average value f (x) of the water pressure changes is less than the threshold value thr, continuing to execute the step J;

I. starting the water pump, and continuing to execute the step J;

J. and processing other events and returning to the step C.

In the control method for reducing frequent starting of the pressure control type water pump, the single chip microcomputer is electrically connected with the pressure sensor, and the single chip microcomputer controls starting and stopping of the water pump.

In the control method for reducing frequent starting of the pressure control type water pump, the single chip microcomputer controls the water pump to start and stop through the relay, the coil of the relay is electrically connected with the control output end of the single chip microcomputer, and the contact switch is electrically connected with the water pump.

In the control method for reducing frequent starting of the pressure control type water pump, a triode is arranged between a coil of the relay and the control output end of the singlechip, a base electrode of the triode is electrically connected with the control output end of the singlechip, a collector electrode of the triode is electrically connected with VCC voltage after being connected with the coil of the relay in series, and an emitter electrode of the triode is grounded.

In the control method for reducing frequent starting of the pressure control type water pump, a coil of the relay is connected with the freewheeling diode in parallel and then is electrically connected with the VCC voltage.

In the control method for reducing frequent starting of the pressure control type water pump, the water pump is electrically connected with a power supply, the power supply provides a VCC voltage, and the VCC voltage is respectively and electrically connected with the single chip microcomputer and the pressure sensor.

In the control method for reducing frequent startup of the pressure control type water pump, the power supply supplies VCC voltage through an AC/DC power adapter.

In the control method for reducing frequent starting of the pressure control type water pump, the pressure sensor is electrically connected with the AD input port of the single chip microcomputer.

Compared with the prior art, the invention has the outstanding and beneficial technical effects that:

according to the invention, the current water pressure value is monitored by the pressure sensor, the singlechip calculates the average value of water pressure change, when the pipeline leaks a little, the water pressure is allowed to be reduced to a lower degree for pressurization, and at the moment, the water pump does not need to be started for pressurization, so that the frequent starting of the water pump is greatly reduced.

Description of the drawings:

FIG. 1 is a control flow diagram of the present invention;

FIG. 2 is a functional block diagram of the present invention;

fig. 3 is a schematic diagram of the present invention.

The specific implementation mode is as follows:

the invention will be further described in the following with reference to specific embodiments thereof, with reference to the accompanying drawings, in which figures 1 to 3:

a control method for reducing frequent starting of a pressure control type water pump comprises the following steps:

A. initializing the singlechip IC1, and setting a water pressure minimum limit value xminA threshold thr and a time set value T;

B. preprocessing the data of the pressure sensor U1, and detecting to obtain an initial water pressure value x0

C. The pressure sensor U1 monitors in real time to obtain the current water pressure value xi

D. Calculating the ith water pressure change value xi-xi-1

E. Calculating the average value of the latest n water pressure changes:

F. if the current water pressure value xiBelow the water pressure minimum limit xminContinuing to execute the step G; if the current water pressure value xiNot lower than the water pressure minimum limit value xminContinuing to execute the step H;

G. calculating the current water pressure value xiBelow the water pressure minimum limit xminThe accumulated continuous time t; if the accumulated continuous time T is greater than or equal to the time set value T, continuing to execute the step I; if the accumulated continuous time T is less than the time set value T, continuing to execute the step H;

H. if the average value f (x) of the water pressure changes is larger than or equal to the threshold value thr, continuing to execute the step I; if the average value f (x) of the water pressure changes is less than the threshold value thr, continuing to execute the step J;

I. starting the water pump, and continuing to execute the step J;

J. and processing other events and returning to the step C.

The invention monitors the current water pressure value x of the water pump pressure tank through the pressure sensor U1iThe singlechip IC1 calculates the average value f (x) of water pressure change and the current water pressure value xiLess than the water pressure minimum limit value xminWhen the accumulated continuous time T is greater than or equal to the time set value T, the water is required to be openedThe pump is increased; when the average value f (x) of the water pressure change is larger than or equal to the threshold value thr, the sudden change of the water pressure indicates that the pipeline is not leaked, but a user opens a valve to use water, and at the moment, a water pump needs to be opened for pressurization; when the average value f (x) of the water pressure change is smaller than the threshold value thr, the pipeline is indicated to be slightly leaked, the water pressure is allowed to be reduced to a lower degree for pressurization, the water pump does not need to be started for pressurization at the moment, and the frequent starting of the water pump is greatly reduced.

As shown in fig. 2, the single chip IC1 is electrically connected with the pressure sensor U1, and the single chip IC1 controls the start and stop of the water pump.

As shown in fig. 3, the single chip IC1 controls the control mode of the water pump: the single chip microcomputer IC1 controls the water pump to start and stop through a relay K1, a coil of the relay K1 is electrically connected with the control output end of the single chip microcomputer IC1, and a contact switch is electrically connected with the water pump.

Preferably, a triode N1 is arranged between the coil of the relay K1 and the control output end of the single chip microcomputer IC1, the base of the triode N1 is electrically connected with the control output end of the single chip microcomputer IC1, the collector of the triode N1 is electrically connected with the VCC voltage after being connected in series with the coil of the relay K1, and the emitter of the triode N is grounded.

In order to release the energy stored in the coil of the relay K1, the coil of the relay K1 is connected in parallel with the freewheeling diode D1 and then electrically connected to the VCC voltage.

Preferably, the water pump electricity is connected power supply, power supply provides VCC voltage, and VCC voltage is connected with singlechip IC1, pressure sensor U1 electricity respectively.

Furthermore, the power supply supplies VCC voltage through an AC/DC power adapter.

Because the signal that pressure sensor U1 output is analog, therefore pressure sensor U1 is connected with the AD input port of singlechip IC1 electricity, and the ADC in singlechip IC1 converts analog signal into digital signal.

In this embodiment, the single chip IC1 is ES7P003 (a product of eastern soft carrier microelectronics); the pressure sensor U1 is a P046 series pressure sensor; the relay K1 is a 16A relay to adapt to water pumps with various power levels.

The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, so: all equivalent changes made according to the structure, shape and principle of the invention are covered by the protection scope of the invention.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种闪蒸汽压缩机组故障诊断方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!