Disclosure of Invention
The invention mainly aims to provide a control method and device of a water purifier and a computer readable storage medium, and aims to solve the technical problem that the cost of the water purifier in the prior art is high.
In order to achieve the above object, the present invention provides a method for controlling a water purifier, the method comprising the steps of:
detecting the current water level in a water storage tank of the water purifier, wherein the water storage tank is used for storing purified water generated by the water purifier in the running process, a water bag of the water purifier is used for storing generated direct drinking water, and the water bag is arranged in the water storage tank;
when the water level is lower than the preset water level threshold value, purified water is controlled to be injected into the water storage tank, so that the water level of the purified water in the water storage tank is continuously raised, and when a faucet corresponding to direct drinking water is opened, the purified water with high water level in the water storage tank is utilized to press out the direct drinking water in the water bag.
Preferably, when the water level is lower than a preset water level threshold, before the step of controlling to inject purified water into the water storage tank, the method further includes:
acquiring first time required for filling purified water in the water storage tank;
when the water level is lower than the preset water level threshold, after the step of controlling the purified water to be injected into the water storage tank, the method further comprises the following steps:
and when the time for injecting the purified water reaches the first time, controlling to stop injecting the purified water into the water storage tank.
Preferably, when the water level is lower than a preset water level threshold, the step of controlling the purified water to be injected into the water storage tank includes:
and when the water level is lower than a preset water level threshold value, controlling to open a normally closed water inlet valve and a normally open electromagnetic valve of the water purifier, and closing a booster pump, a flushing electromagnetic valve and the normally closed electromagnetic valve so as to continuously inject purified water into the water storage tank.
Preferably, the step of controlling to terminate the injection of the purified water into the water storage tank when the time of injecting the purified water reaches the first time includes:
and when the time for injecting the purified water reaches the first time, controlling to close the normally open electromagnetic valve so as to stop injecting the purified water into the water storage tank.
Preferably, after the step of controlling to terminate the injection of the purified water into the water storage tank when the time of injecting the purified water reaches the first time, the method further includes:
and when the condition that the operation of the water purifier meets the preset drainage condition is detected, the purified water in the water storage tank is controlled to be emptied.
Preferably, before the step of controlling the purified water in the water storage tank to be drained when it is detected that the operation of the water purifier meets the preset drainage condition, the method further includes:
acquiring second time required by emptying of the purified water in the water storage tank;
when the water purifier is detected to run to meet the preset drainage condition, the step of controlling the purified water in the water storage tank to be drained comprises the following steps:
and when the water purifier is detected to run to meet the preset drainage condition, controlling to open the normally closed water inlet valve, the flushing electromagnetic valve and the normally closed electromagnetic valve, and closing the booster pump and the normally open electromagnetic valve to discharge the purified water in the water storage tank and continue for the second time to empty the purified water in the water storage tank.
Preferably, the control method of the water purifier further includes:
recording the water filling times of filling the direct drinking water in the water bag;
when detecting that the operation of the water purifier meets the preset drainage condition, the step of controlling the purified water in the water storage tank to be drained comprises the following steps:
and when the water full frequency reaches a preset frequency threshold value, controlling to empty the purified water in the water storage tank.
Preferably, when the water level is lower than a preset water level threshold, after the step of controlling to inject the purified water into the water storage tank, the method further includes:
and controlling to open the normally closed water inlet valve, the booster pump and the flushing electromagnetic valve of the water purifier, and closing the normally closed electromagnetic valve and the normally open electromagnetic valve so as to carry out flushing operation of the water purifier.
Further, in order to achieve the above object, the present invention also provides a control device of a water purifier, comprising: a memory, a processor, and a water purifier control program stored on the memory and executable on the processor, the water purifier control program when executed by the processor implementing the steps of:
detecting the current water level in a water storage tank of the water purifier, wherein the water storage tank is used for storing purified water generated by the water purifier in the running process, a water bag of the water purifier is used for storing generated direct drinking water, and the water bag is arranged in the water storage tank;
when the water level is lower than the preset water level threshold value, purified water is controlled to be injected into the water storage tank, so that the water level of the purified water in the water storage tank is continuously raised, and when a faucet corresponding to direct drinking water is opened, the purified water with high water level in the water storage tank is utilized to press out the direct drinking water in the water bag.
Further, to achieve the above object, the present invention also proposes a computer-readable storage medium having stored thereon a water purifier control program that, when executed by a processor, realizes the steps of:
detecting the current water level in a water storage tank of the water purifier, wherein the water storage tank is used for storing purified water generated by the water purifier in the running process, a water bag of the water purifier is used for storing generated direct drinking water, and the water bag is arranged in the water storage tank;
when the water level is lower than the preset water level threshold value, purified water is controlled to be injected into the water storage tank, so that the water level of the purified water in the water storage tank is continuously raised, and when a faucet corresponding to direct drinking water is opened, the purified water with high water level in the water storage tank is utilized to press out the direct drinking water in the water bag.
According to the scheme provided by the invention, the current water level in the water storage tank of the water purifier is detected, when the water level is lower than the preset water level threshold, purified water is controlled to be injected into the water storage tank, so that the water level of the purified water in the water storage tank is continuously increased, when a user needs to use direct drinking water, the direct drinking water in the water bag is pressed out of the faucet by using the high-water-level purified water in the water storage tank, and therefore, the direct drinking water is pressed out without being driven by a water pump, and the cost of the water purifier is reduced.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: through detecting present water level in the water storage tank of water purifier, when the water level is less than preset water level threshold value, control pours into the purified water into the water storage tank to make the water level of purified water in the water storage tank constantly rise, when the user need use straight drinking water, utilizes the purified water of high water level in the water storage tank, extrudes straight drinking water in the water bag outside tap, thereby has realized not needing to utilize the water pump to drive and just extrude straight drinking water. Through the technical scheme of the embodiment of the invention, the problem of high cost of the water purifier is solved.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment of a water purifier according to an embodiment of the present invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
As shown in fig. 1, the water purifier may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the water purifier configuration shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 2, fig. 2 is a schematic structural diagram of a water purifier according to an embodiment of the present invention. The water purifier comprises a normally closed water inlet valve 10, a booster pump 20, a flushing solenoid valve 30, a normally closed solenoid valve 40, a normally open solenoid valve 50, a pressure switch 60, a PAC (polyaluminium chloride) filter element 70, an RO (Reverse Osmosis) membrane filter element 80, an activated carbon filter element 90, a water storage tank 100, a water storage tank water shortage detection device 110, a water bag (not shown in the figure) and a control board (not shown in the figure), wherein the control board can be the processor 1001. Wherein, the water bag is arranged in the water storage tank 100 and is used for containing the direct drinking water made by the water purifier. The water storage tank water shortage detection device 110 is used for detecting the water storage condition in the water storage tank 100. The control panel is connected with the normally closed water inlet valve 10, the booster pump 20, the flushing electromagnetic valve 30, the normally closed electromagnetic valve 40, the normally open electromagnetic valve 50 and the pressure switch 60, and the control panel can control the opening and closing of the normally closed water inlet valve 10, the booster pump 20, the flushing electromagnetic valve 30, the normally closed electromagnetic valve 40, the normally open electromagnetic valve 50 and the pressure switch 60, so that the water making, flushing, emptying and other operations of the water purifier are realized.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a water purifier control program.
The processor 1001 and the memory 1005 in the water purifier of the present invention may be provided in a control device of the water purifier which calls the water purifier control program stored in the memory 1005 by the processor 1001 and performs the following operations:
detecting the current water level in a water storage tank of the water purifier, wherein the water storage tank is used for storing purified water generated by the water purifier in the running process, a water bag of the water purifier is used for storing generated direct drinking water, and the water bag is arranged in the water storage tank;
when the water level is lower than the preset water level threshold value, purified water is controlled to be injected into the water storage tank, so that the water level of the purified water in the water storage tank is continuously raised, and when a faucet corresponding to direct drinking water is opened, the purified water with high water level in the water storage tank is utilized to press out the direct drinking water in the water bag.
Further, the processor 1001 may call the water purifier control program stored in the memory 1005, and also perform the following operations:
acquiring first time required for filling purified water in the water storage tank;
and when the time for injecting the purified water reaches the first time, controlling to stop injecting the purified water into the water storage tank.
Further, the processor 1001 may call the water purifier control program stored in the memory 1005, and also perform the following operations:
and when the water level is lower than a preset water level threshold value, controlling to open a normally closed water inlet valve and a normally open electromagnetic valve of the water purifier, and closing a booster pump, a flushing electromagnetic valve and the normally closed electromagnetic valve so as to continuously inject purified water into the water storage tank.
Further, the processor 1001 may call the water purifier control program stored in the memory 1005, and also perform the following operations:
and when the time for injecting the purified water reaches the first time, controlling to close the normally open electromagnetic valve so as to stop injecting the purified water into the water storage tank.
Further, the processor 1001 may call the water purifier control program stored in the memory 1005, and also perform the following operations:
and when the condition that the operation of the water purifier meets the preset drainage condition is detected, the purified water in the water storage tank is controlled to be emptied.
Further, the processor 1001 may call the water purifier control program stored in the memory 1005, and also perform the following operations:
acquiring second time required by emptying of the purified water in the water storage tank;
and when the water purifier is detected to run to meet the preset drainage condition, controlling to open the normally closed water inlet valve, the flushing electromagnetic valve and the normally closed electromagnetic valve, and closing the booster pump and the normally open electromagnetic valve to discharge the purified water in the water storage tank and continue for the second time to empty the purified water in the water storage tank.
Further, the processor 1001 may call the water purifier control program stored in the memory 1005, and also perform the following operations:
recording the water filling times of filling the direct drinking water in the water bag;
and when the water full frequency reaches a preset frequency threshold value, controlling to empty the purified water in the water storage tank.
Further, the processor 1001 may call the water purifier control program stored in the memory 1005, and also perform the following operations:
and controlling to open the normally closed water inlet valve, the booster pump and the flushing electromagnetic valve of the water purifier, and closing the normally closed electromagnetic valve and the normally open electromagnetic valve so as to carry out flushing operation of the water purifier.
Above-mentioned scheme is passed through to this embodiment, current water level in the water storage tank through detecting the water purifier, when the water level is less than preset water level threshold value, control pours into the purified water into in the water storage tank into, so that the water level of purified water in the water storage tank constantly risees, when the user need use directly drinking water, utilize the purified water of high water level in the water storage tank, extrude the straight drinking water in the water bag outside tap, thereby realized not needing to utilize the water pump to drive and just extrude straight drinking water, consequently, the cost of water purifier has been reduced.
Based on the hardware structure, the embodiment of the control method of the water purifier is provided.
Referring to fig. 3, fig. 3 is a schematic flow chart of a first embodiment of a control method of a water purifier according to the present invention.
In a first embodiment, the control method of the water purifier includes the steps of:
step S10, detecting the current water level in a water storage tank of the water purifier, wherein the water storage tank is used for storing purified water generated by the water purifier during operation, a water bag of the water purifier is used for storing generated direct drinking water, and the water bag is arranged in the water storage tank;
in this embodiment, when the user need make straight drinking water and use the straight drinking water that the water purifier made through the water purifier, at first open the water purifier, control water purifier operation system water mode. When the water purifier operates the water making mode, the water purifier performs water making operation to generate direct drinking water, and the generated direct drinking water is injected into the water bag of the water purifier. For example, as shown in fig. 2, the water purifier is operated in a water preparation mode by controlling to open a normally closed water inlet valve 10, a booster pump 20, a normally closed solenoid valve 40 and a normally open solenoid valve 50 of the water purifier and close a flushing solenoid valve 30 of the water purifier, and tap water is filtered by a PAC filter element 70 and an RO membrane filter element 80 to generate drinking water for a user and purified water for cleaning. Wherein, the direct drinking water generated after filtering is injected into the water bag in the water storage tank 100 of the water purifier, and the purified water generated after filtering enters the water storage tank 100 through the normally open solenoid valve 50. Therefore, the drinking water is continuously stored in the water bag, and simultaneously, the purified water is continuously stored in the water storage tank 100.
Further, whether the water purifier operates in the water making mode can be controlled by detecting the open/close state of the pressure switch 60. Specifically, when the pressure switch 60 is detected to be closed, it is indicated that the direct drinking water in the water bag is insufficient, and at this time, the water purifier is controlled to operate the water preparation mode, the normally closed water inlet valve 10, the booster pump 20, the normally closed solenoid valve 40 and the normally open solenoid valve 50 of the water purifier are opened, and the flushing solenoid valve 30 of the water purifier is closed, so that the water preparation operation is performed. Therefore, the water purifier can automatically perform water preparation operation by detecting the open/close state of the pressure switch 60.
Because the pressure switch 60 is automatically switched off when the water bag is filled with direct drinking water, whether the water bag is filled with direct drinking water can be judged by detecting the opening and closing state of the pressure switch 60. Specifically, when the pressure switch 60 is detected to be closed, it is indicated that the water bag is not filled with direct drinking water, and at this time, the water purifier is controlled to continue to operate the water making mode to generate direct drinking water. Until the pressure switch 60 is detected to be switched off, the water bag is indicated to be filled with direct drinking water, and at the moment, the direct drinking water is stopped being filled into the water bag.
After the water bag is filled with direct drinking water, in order to press the direct drinking water in the water bag out to the corresponding faucet, in this embodiment, the purified water is continuously injected into the water storage tank 100. For example, as shown in fig. 2, the water purifier is controlled to close the booster pump 20 and continue to control the normally closed water inlet valve 10, the normally closed solenoid valve 40 and the normally open solenoid valve 50 of the water purifier to open, and the flushing solenoid valve 30 of the water purifier is closed, so that more and more purified water is stored in the water storage tank 100, and the water level of the purified water in the water storage tank 100 is continuously raised. When the purified water in the water storage tank 100 is full, it is discharged through the normally closed solenoid valve 40 and the flushing solenoid valve 30.
When the water level of the purified water in the water storage tank 100 reaches a certain height, when the tap corresponding to the direct drinking water is opened, the purified water with the high water level in the water storage tank 100 is utilized to press the direct drinking water in the water bag out of the tap, so that the user can use the water. Therefore, in order to utilize the purified water in the water storage tank 100 to press out the direct drinking water in the water bag, in this embodiment, the current water level of the purified water in the water storage tank 100 is detected in real time or at regular time. Optionally, the water shortage detection device 110 is used to detect the current water level of the purified water in the water storage tank 100 in real time or at regular time, so as to determine whether the water storage tank 100 is short of water currently.
And step S20, when the water level is lower than a preset water level threshold value, controlling to inject purified water into the water storage tank so as to enable the water level of the purified water in the water storage tank to be continuously raised, and when a tap corresponding to direct drinking water is opened, utilizing the purified water with high water level in the water storage tank to press out the direct drinking water in the water bag.
In this embodiment, a preset water level threshold for determining whether the water storage tank 100 is short of water is preset. After detecting the current water level of the purified water in the water storage tank 100 through the water shortage detection device 110 of the water storage tank, comparing the detected water level with a preset water level threshold value, if the detected water level is higher than the preset water level threshold value, it is sufficient to explain that the purified water in the water storage tank 100 is sufficient, and the purified water stored currently in the water storage tank 100 is utilized, so that the direct drinking water in the water bag can be pressed out of the faucet. If the detected water level is lower than the preset water level threshold, it indicates that the purified water in the water storage tank 100 is insufficient, and at this time, the purified water is controlled to be injected into the water storage tank 100. For example, in the water purifier shown in fig. 2, the normally closed water inlet valve 10 and the normally open solenoid valve 50 are controlled to be opened, and the booster pump 20, the flushing solenoid valve 30 and the normally closed solenoid valve 40 are controlled to be closed, so that purified water is injected into the water storage tank 100, and the level of the purified water in the water storage tank 100 is continuously increased.
Along with the water level of the purified water in the water storage tank 100 is continuously raised, when a tap corresponding to the direct drinking water is opened, the purified water with high water level in the water storage tank 100 is utilized, and the direct drinking water in the water bag can be pressed out of the tap, so that the water can be used by a user. That is, this embodiment has realized not needing the water pump to drive, just extrudes the effect of straight drinking water, consequently, greatly reduced the cost of water purifier to, owing to need not install the water pump, also practiced thrift the space.
The scheme that this embodiment provided, current water level in the water storage tank through detecting the water purifier, when the water level is less than preset water level threshold value, control pours into the purified water into in the water storage tank into, so that the water level of purified water in the water storage tank constantly risees, when the user need use directly drinking water, utilize the purified water of high water level in the water storage tank, extrude the straight drinking water in the water bag outside tap, thereby realized not needing to utilize the water pump to drive and just extrude straight drinking water, consequently, the cost of water purifier has been reduced.
Further, as shown in fig. 4, a second embodiment of the method for controlling a water purifier according to the present invention is proposed based on the first embodiment, and in this embodiment, before the step S20, the method further includes:
step S30, acquiring first time required by filling purified water in the water storage tank;
after the step S20, the method further includes:
and step S40, when the time for injecting the purified water reaches the first time, controlling to stop injecting the purified water into the water storage tank.
In this embodiment, the time required for filling the water storage tank 100 with purified water is obtained before the water storage tank 100 is filled with purified water. For convenience of description, the time required for filling the water storage tank 100 with purified water will be hereinafter referred to as a first time. For example, the first time required to obtain the filling of the water storage tank 100 with purified water is calculated by taking the volume of the water storage tank 100 and the rate of filling the water storage tank 100 with purified water. It will be understood by those skilled in the art that the step S30 may be executed before the step S20, after the step S20, or simultaneously with the step S20 and the step S30, and the specific execution sequence of the step S20 and the step S30 is not limited herein.
In the process of injecting purified water into the water storage tank 100, the normally closed water inlet valve 10 and the normally open solenoid valve 50 are controlled to be opened, the booster pump 20, the flushing solenoid valve 30 and the normally closed solenoid valve 40 are closed, the time for injecting the purified water is timed, when the time for injecting the purified water reaches the first time, it is indicated that the water storage tank 100 is filled with the purified water, and at this time, the injection of the purified water into the water storage tank 100 is controlled to be stopped.
Optionally, the step S40 includes:
and step A, controlling to close the normally open electromagnetic valve when the time for injecting the purified water reaches the first time so as to stop injecting the purified water into the water storage tank.
Alternatively, when the time for injecting the purified water reaches the first time, which indicates that the water storage tank 100 is filled with the purified water, at this time, the normally open solenoid valve 50 is controlled to be closed, so that the injection of the purified water into the water storage tank 100 is terminated.
Further, after the step S40, the method further includes:
and B, when the water purifier is detected to run to meet the preset water drainage condition, controlling the purified water in the water storage tank to be drained.
In order to ensure the cleanness and hygiene of the water purifier, the purified water in the water storage tank 100 is drained. Specifically, a drainage condition corresponding to the operation of the water purifier is preset, and when it is detected that the operation of the water purifier satisfies the preset drainage condition, the purified water in the water storage tank 100 is controlled to be drained. For example, a corresponding drain period is previously set, and when it is detected that the operation of the water purifier reaches the preset drain period, the purified water in the water storage tank 100 is controlled to be drained. For example, the normally closed water inlet valve 10, the flushing solenoid valve 30 and the normally closed solenoid valve 40 are controlled to be opened, and the booster pump 20 and the normally open solenoid valve 50 are controlled to be closed, thereby discharging the purified water in the water storage tank 100.
Optionally, before the step B, the method further includes:
step C, acquiring second time required by emptying the purified water in the water storage tank;
the step B comprises the following steps: and when the water purifier is detected to run to meet the preset drainage condition, controlling to open the normally closed water inlet valve, the flushing electromagnetic valve and the normally closed electromagnetic valve, and closing the booster pump and the normally open electromagnetic valve to discharge the purified water in the water storage tank and continue for the second time to empty the purified water in the water storage tank.
Alternatively, in the process of discharging the purified water in the water storage tank 100, the time required for the purified water filled in the water storage tank 100 to be drained is also acquired. For convenience of description, the time required for the water storage tank 100 to be filled with purified water to be emptied will be hereinafter referred to as a second time. For example, by acquiring the volume of the water storage tank 100 and the rate at which the purified water in the water storage tank 100 is drained, the second time required to empty the water storage tank 100 filled with the purified water is calculated.
When it is detected that the operation of the water purifier satisfies the preset drainage condition, the normally closed water inlet valve 10, the flushing solenoid valve 30 and the normally closed solenoid valve 40 are controlled to be opened, and the booster pump 20 and the normally open solenoid valve 50 are controlled to be closed, so that the purified water in the water storage tank 100 is drained and the operation state is continued for a second time. After the second time has elapsed, the purified water in the water storage tank 100 is all emptied. At this time, the flushing solenoid valve 30 and the normally closed solenoid valve 40 are controlled to be closed, the normally open solenoid valve 50 is opened, the normally closed water inlet valve 10 is continuously controlled to be opened, and the booster pump 20 is closed, so that the purified water is continuously injected into the water storage tank 100. After the first time, the water storage tank 100 is filled with purified water, and at this time, the normally open solenoid valve 50 is controlled to be closed, thereby stopping the injection of the purified water into the water storage tank 100.
Further, the control method of the water purifier further includes:
d, recording the water filling times of filling the direct drinking water in the water bag;
the step B comprises the following steps: and when the water full frequency reaches a preset frequency threshold value, controlling to empty the purified water in the water storage tank.
Further, a preset number threshold N is preset, and the preset number threshold N can be flexibly set according to actual conditions, which is not limited herein. After direct drinking water is filled in the water bag each time, the number of times of filling the water bag with direct drinking water is recorded, the number of times of filling the water bag is updated, the current number of times of filling the water bag is compared with a preset number threshold N, if the current number of times of filling the water bag reaches the preset number threshold N, the direct drinking water in the water bag is also described to pass through N full water periods, and at the moment, the purified water in the water storage tank 100 is controlled to be emptied. For example, the normally closed water inlet valve 10, the flushing solenoid valve 30 and the normally closed solenoid valve 40 are controlled to be opened, and the booster pump 20 and the normally open solenoid valve 50 are controlled to be closed, thereby discharging the purified water in the water storage tank 100. Further, the recorded water filling times of filling the direct drinking water in the water bag are reset.
Otherwise, if the current water full frequency does not reach the preset frequency threshold N, it is also indicated that the direct drinking water in the water bag has not passed through N water full cycles, at this time, the purified water in the water storage tank 100 does not need to be emptied, and until the water full frequency reaches the preset frequency threshold N, the purified water in the water storage tank 100 is controlled to be emptied.
The scheme that this embodiment provided, when detecting that the water purifier operation satisfies preset drainage condition, the control is with the water purification evacuation in the water storage tank to ensure the clean health of water purifier, improved the security that the user used the water purifier.
Further, as shown in fig. 5, a third embodiment of the control method of a water purifier according to the present invention is proposed based on the first embodiment or the second embodiment, and in this embodiment, after step S20, the method further includes:
and step S50, controlling to open the normally closed water inlet valve, the booster pump and the flushing electromagnetic valve of the water purifier, and closing the normally closed electromagnetic valve and the normally open electromagnetic valve to flush the water purifier.
In this embodiment, in order to further ensure the cleanness and hygiene of the water purifier, it is necessary to perform a washing operation of the water purifier. Specifically, when the flushing is required, the normally closed water inlet valve 10, the booster pump 20 and the flushing solenoid valve 30 of the water purifier are controlled to be opened, and the normally closed solenoid valve 40 and the normally open solenoid valve 50 are controlled to be closed, so that the accessed tap water passes through the PAC filter element 70, the normally closed water inlet valve 10, the booster pump 20, the RO membrane filter element 80 and the flushing solenoid valve 30 to perform the flushing operation of the water purifier.
According to the scheme provided by the embodiment, when the water purifier needs to be flushed, the normally closed water inlet valve, the booster pump and the flushing electromagnetic valve of the water purifier are controlled to be opened, and the normally closed electromagnetic valve and the normally open electromagnetic valve are closed, so that the accessed tap water is flushed through the PAC filter element, the normally closed water inlet valve, the booster pump, the RO membrane filter element and the flushing electromagnetic valve, the cleanness and the sanitation of the water purifier are further ensured, and the safety of a user in using the water purifier is further improved.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a water purifier control program is stored on the computer-readable storage medium, and when executed by a processor, the water purifier control program implements the following operations:
detecting the current water level in a water storage tank of the water purifier, wherein the water storage tank is used for storing purified water generated by the water purifier in the running process, a water bag of the water purifier is used for storing generated direct drinking water, and the water bag is arranged in the water storage tank;
when the water level is lower than the preset water level threshold value, purified water is controlled to be injected into the water storage tank, so that the water level of the purified water in the water storage tank is continuously raised, and when a faucet corresponding to direct drinking water is opened, the purified water with high water level in the water storage tank is utilized to press out the direct drinking water in the water bag.
Further, the water purifier control program, when executed by the processor, further implements operations of:
acquiring first time required for filling purified water in the water storage tank;
and when the time for injecting the purified water reaches the first time, controlling to stop injecting the purified water into the water storage tank.
Further, the water purifier control program, when executed by the processor, further implements operations of:
and when the water level is lower than a preset water level threshold value, controlling to open a normally closed water inlet valve and a normally open electromagnetic valve of the water purifier, and closing a booster pump, a flushing electromagnetic valve and the normally closed electromagnetic valve so as to continuously inject purified water into the water storage tank.
Further, the water purifier control program, when executed by the processor, further implements operations of:
and when the time for injecting the purified water reaches the first time, controlling to close the normally open electromagnetic valve so as to stop injecting the purified water into the water storage tank.
Further, the water purifier control program, when executed by the processor, further implements operations of:
and when the condition that the operation of the water purifier meets the preset drainage condition is detected, the purified water in the water storage tank is controlled to be emptied.
Further, the water purifier control program, when executed by the processor, further implements operations of:
acquiring second time required by emptying of the purified water in the water storage tank;
and when the water purifier is detected to run to meet the preset drainage condition, controlling to open the normally closed water inlet valve, the flushing electromagnetic valve and the normally closed electromagnetic valve, and closing the booster pump and the normally open electromagnetic valve to discharge the purified water in the water storage tank and continue for the second time to empty the purified water in the water storage tank.
Further, the water purifier control program, when executed by the processor, further implements operations of:
recording the water filling times of filling the direct drinking water in the water bag;
and when the water full frequency reaches a preset frequency threshold value, controlling to empty the purified water in the water storage tank.
Further, the water purifier control program, when executed by the processor, further implements operations of:
and controlling to open the normally closed water inlet valve, the booster pump and the flushing electromagnetic valve of the water purifier, and closing the normally closed electromagnetic valve and the normally open electromagnetic valve so as to carry out flushing operation of the water purifier.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.