A supercapacitor-based toilet flushing control method, device and readable medium
By using a supercapacitor in a smart toilet and combining it with a power detection circuit, the remaining energy is accurately calculated to control the opening and closing of the flush valve. This solves the problems of short battery life and inaccurate supercapacitor energy judgment when there is no mains power supply, and achieves reliable flushing without electricity and energy-saving control.
Patent Information
- Application Number
- CN202210128654.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-11
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2042-02-11
AI Technical Summary
Existing smart toilets suffer from short battery life, self-discharge, and corrosion issues when using backup power to operate the flush valve in the absence of mains power. The capacitance of the supercapacitor is affected by ambient temperature, which reduces its energy storage capacity and makes it impossible to accurately determine the remaining energy, resulting in the flush valve failing to close reliably.
A supercapacitor is used as a backup power source. The current voltage and capacitance value of the supercapacitor are detected by a power detection circuit to calculate whether the remaining energy is sufficient to complete the flushing action. The control module controls the opening and closing of the flushing valve based on the calculation results to avoid the problem of failure to close due to insufficient remaining energy.
This technology enables reliable valve closure and non-electric flushing of supercapacitors in the absence of mains power, avoiding frequent battery replacements and water waste, and improving the reliability and energy efficiency of the system.
Smart Images

Figure CN116632993B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of intelligent toilet flushing control, in particular to a toilet flushing control method and device based on super capacitor and readable medium. BACKGROUND
[0002] The existing intelligent toilet flushing method needs sufficient residual energy in the system to reliably close the valve of the water supply valve component after the system power failure. Currently, the following two ways can be implemented to provide energy:
[0003] 1. Increase the energy storage capacitor of the primary stage power supply part;
[0004] 2. Use a backup battery to provide energy for the rear-end reliable valve closing.
[0005] In the absence of commercial power supply, battery power can also be used to achieve flushing.
[0006] However, the existing intelligent toilet power failure flushing technology has the following problems:
[0007] 1. The existing technology uses a backup power supply to complete the valve opening and closing action of the flushing valve in the absence of commercial power supply. The backup power supply can be a battery or a super capacitor, but the safety problem, self-discharge and corrosion problem of the battery make its service life only last for 2-3 years, which is quite different from the product life cycle. During the entire product use period, the battery needs to be replaced several times, which increases the use cost and causes environmental pollution problems.
[0008] 2. When a super capacitor is selected as a backup power supply, the capacitance value of the super capacitor is affected by the environmental temperature, and the capacitance value at low temperature is only about 30% of the original normal temperature. In addition, as the service life decreases, the rated capacitance value also decreases. With the decrease of the capacitance value, the storage energy capacity is also decreasing. At this time, if the residual energy is determined by the rated capacitance value, there will be a large deviation from the actual use of residual energy. In the intelligent toilet, a 10F capacitor is used, and the rated storage energy is used to determine that it can flush ten times, without further determining how much current residual energy is affected by environmental factors. When using a super capacitor to supply power, the residual energy of the capacitor can only open the flushing valve, and there is not enough energy to close the valve, so that the flushing valve cannot be closed, resulting in waste of water resources. SUMMARY
[0009] In view of the technical problems mentioned in the above background technology, the purpose of the embodiments of the present application is to propose a toilet flushing control method and device based on super capacitor and readable medium to solve the technical problems mentioned in the above background technology.
[0010] In a first aspect, embodiments of the present application provide a supercapacitor-based toilet flushing control method. The toilet comprises a main power supply, a supercapacitor, and a toilet flushing assembly. When the main power supply is working normally, the main power supply provides power for the toilet flushing assembly. When the main power supply is powered off, the supercapacitor provides power for the toilet flushing assembly. The toilet flushing assembly comprises a flushing valve, a control module, a switching circuit, a boost circuit, and a power detection circuit. The control module is connected with the flushing valve, the switching circuit, and the power detection circuit, and controls the opening or closing of the flushing valve, the switching circuit, and the power detection circuit. The supercapacitor, the switching circuit, and the boost circuit are connected in sequence. The boost circuit is connected with the control module, the flushing valve, and the power detection circuit. The control method comprises the following steps:
[0011] S1, in response to the main power supply not providing power for the toilet flushing assembly, enabling the supercapacitor to supply power, and sending a first control instruction to the control module to control the control module to start the power detection circuit. The power detection circuit generates a fixed power consumption ΔQ after being started.
[0012] S2, collecting the current voltage U1 of the supercapacitor, and calculating the residual energy Q1 that the supercapacitor can support for flushing according to the fixed power consumption ΔQ and the current voltage U1 of the supercapacitor:
[0013] ΔU3 2 =U1 2 -U3 2 ;
[0014] C=2*ΔQ / ΔU3 2 ;
[0015] ΔU 2 =U3 2 -U2 2 ;
[0016] Q1=1 / 2*C*ΔU 2 ;
[0017] Wherein, C is the current capacitance value of the supercapacitor, U2 is the voltage required for the flushing valve to work, ΔU is the voltage drop amplitude of the supercapacitor, and U3 is the residual voltage value of the supercapacitor after executing the fixed power consumption ΔQ.
[0018] S3, comparing the residual energy Q1 that the supercapacitor can support for flushing with the energy required for the toilet flushing assembly to complete one flushing action to determine whether the supercapacitor can provide the flushing valve to complete one flushing action. If yes, a second control instruction is sent to the control module to control the control module to start the flushing valve to execute the flushing action. The flushing action comprises at least one valve closing action.
[0019] In some embodiments, step S3 specifically comprises:
[0020] S31, respectively calculate the energy Q2 consumed by the flush valve to complete a flush action and the energy Q4 consumed by the peripheral circuit to work, the peripheral circuit being the circuit in the toilet flushing assembly other than the flush valve:
[0021] Q2 = U2 * I2 * T2;
[0022] Q4 = U4 * I4 * T4;
[0023] wherein U2 is the voltage required for the flush valve to work, I2 is the current required for the flush valve to work, T2 is the time required to complete a flush action; U4 is the voltage required for the peripheral circuit to work, I4 is the current required for the peripheral circuit to work, T4 is the time required for the peripheral circuit to work;
[0024] S32, according to the energy Q1 left by the super capacitor to support flushing, the energy Q2 consumed by the flush valve to complete a flush action and the energy Q4 consumed by the peripheral circuit to work, calculate the number T of times the super capacitor provides power to the toilet flushing assembly to complete flushing:
[0025] T = Q1 / (Q2 + Q4);
[0026] S33, determine whether the number T is greater than or equal to 1, if yes, control the control module to start the flush valve to execute the flush action.
[0027] In some embodiments, the toilet flushing assembly further comprises an alarm module connected with the control module, the alarm module is also connected with the boost circuit, and step S33 further comprises:
[0028] If the number T is less than 1, a third control instruction is sent to the control module to control the control module to start the alarm module to send an alarm signal.
[0029] In some embodiments, step S3 further comprises:
[0030] After obtaining the result of determining whether the super capacitor can provide the flush valve to complete a flush action, a fourth control instruction is sent to the control module to control the control module to close the switch circuit to stop the super capacitor from providing power to the toilet flushing assembly.
[0031] In some embodiments, step S1 further comprises:
[0032] Obtain a flush instruction, detect the power supply state of the main power supply to the toilet flushing assembly based on the flush instruction, if the main power supply provides power to the toilet flushing assembly, a fifth control instruction is sent to the control module to control the control module to start the flush valve to execute the flush action, if the main power supply does not provide power to the toilet flushing assembly, step S1 is executed.
[0033] In some embodiments, the enabling the super capacitor to supply power in step S1 further comprises:
[0034] turning on the switch circuit to connect the super capacitor with the control module, the flush valve and the power detection circuit;
[0035] providing power to the control module, the flush valve and the power detection circuit through the boost circuit after boosting.
[0036] In some embodiments, the response to the situation that the main power supply does not supply power to the toilet flushing assembly in step S1 specifically comprises the situation that the main power supply cannot provide power to open the valve after providing power to open the valve of the flush valve or the situation that the main power supply cannot provide power to open and close the valve of the flush valve.
[0037] In a second aspect, embodiments of the present application provide a toilet flushing control device based on a super capacitor. The toilet comprises a main power supply, a super capacitor and a toilet flushing assembly. When the main power supply is working normally, the main power supply provides power to the toilet flushing assembly. When the main power supply is powered off, the super capacitor provides power to the toilet flushing assembly. The toilet flushing assembly comprises a flush valve, a control module, a switch circuit, a boost circuit and a power detection circuit. The control module is connected with the flush valve and the power detection circuit and controls the opening or closing of the flush valve and the power detection circuit. The super capacitor, the switch circuit and the boost circuit are connected in sequence. The boost circuit is connected with the control module, the flush valve and the power detection circuit. The control device comprises:
[0038] a detection module configured to enable the super capacitor to supply power in response to the situation that the main power supply does not supply power to the toilet flushing assembly, and send a first control instruction to the control module to control the control module to start the power detection circuit. The power detection circuit generates a fixed power consumption ΔQ after starting;
[0039] an energy calculation module configured to collect the current voltage U1 of the super capacitor, and calculate the residual energy Q1 of the super capacitor that can support flushing according to the fixed power consumption ΔQ and the current voltage U1 of the super capacitor:
[0040] ΔU3 2 =U1 2 -U3 2 ;
[0041] C=2*ΔQ / ΔU3 2 ;
[0042] ΔU 2 =U3 2 -U2 2 ;
[0043] Q1=1 / 2*C*ΔU 2 ;
[0044] Wherein, C is the current capacitance value of the super capacitor, U2 is the voltage required for the flushing valve to work, ΔU is the voltage drop amplitude of the super capacitor, and U3 is the voltage value left after the super capacitor performs the fixed power consumption ΔQ.
[0045] A judging module is configured to judge whether the super capacitor can provide the flushing valve to complete a flushing action according to the comparison between the energy Q1 left by the super capacitor and the energy required for the toilet flushing assembly to complete a flushing action, and if so, send a second control instruction to the control module to control the control module to start the flushing valve to perform the flushing action, wherein the flushing action includes at least one valve closing action.
[0046] In a third aspect, an embodiment of the present application provides an electronic device, including one or more processors; a storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the implementation manners of the first aspect.
[0047] In a fourth aspect, an embodiment of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method described in any of the implementation manners of the first aspect.
[0048] Compared with the prior art, the present application has the following beneficial effects:
[0049] (1) The toilet flushing control scheme based on the super capacitor is not only suitable for the scenario of power-off valve closing, but also suitable for the scenario of power-free flushing, and the super capacitor is used instead of the battery to realize the power-free flushing, which can be used for long-term cyclic charging without replacement.
[0050] (2) The toilet flushing control scheme based on the super capacitor is relatively simple, and only needs to rely on the structure and formula conversion to realize the control of the power-off valve closing and the power-free flushing component.
[0051] (3) The present application uses the power detection circuit to detect whether the remaining power of the super capacitor can meet the power requirement of the flushing valve to complete a flushing action, so as to avoid that the remaining power of the super capacitor is insufficient to close the flushing valve after the super capacitor is used to flush the valve open. BRIEF DESCRIPTION OF DRAWINGS
[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without any creative effort on the basis of these drawings.
[0053] Figure 1is an exemplary device architecture diagram in which an embodiment of the present application can be applied;
[0054] Figure 2 is a flowchart of a super-capacitor-based toilet flushing control method according to an embodiment of the present application;
[0055] Figure 3 is a connection diagram between a super-capacitor and a toilet flushing component of a super-capacitor-based toilet flushing control method according to an embodiment of the present application;
[0056] Figure 4 is a logic diagram of a super-capacitor-based toilet flushing control method according to an embodiment of the present application;
[0057] Figure 5 is a schematic diagram of a super-capacitor-based toilet flushing control device according to an embodiment of the present application;
[0058] Figure 6 is a structural schematic diagram of a computer device suitable for implementing an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the objects, technical solutions, and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0060] Figure 1 An exemplary device architecture 100 of a super-capacitor-based toilet flushing control method or a super-capacitor-based toilet flushing control device according to an embodiment of the present application is shown.
[0061] As shown in Figure 1 , the device architecture 100 can include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is a medium for providing a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 can include various connection types, such as wired, wireless communication links, or fiber optic cables, etc.
[0062] A user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various applications, such as data processing applications, file processing applications, etc. can be installed on the terminal devices 101, 102, 103.
[0063] The terminal devices 101, 102, and 103 can be hardware or software. When the terminal devices 101, 102, and 103 are hardware, they can be various electronic devices including but not limited to a smart phone, a tablet computer, a laptop computer, a desktop computer, and the like. When the terminal devices 101, 102, and 103 are software, they can be installed in the above-listed electronic devices. They can be implemented as multiple software or software modules (for example, software or software modules for providing distributed services) or as a single software or software module. No specific limitation is made herein.
[0064] The server 105 can be a server providing various services, for example, a background data processing server for processing files or data uploaded by the terminal devices 101, 102, and 103. The background data processing server can process the obtained files or data to generate a processing result.
[0065] It should be noted that the supercapacitor-based toilet flushing control method provided by the embodiments of the present application can be executed by the server 105 or the terminal devices 101, 102, and 103, and correspondingly, the supercapacitor-based toilet flushing control apparatus can be arranged in the server 105 or the terminal devices 101, 102, and 103.
[0066] It should be understood that Figure 1 The number of terminal devices, networks, and servers in the above-mentioned apparatus architecture is merely illustrative. Any number of terminal devices, networks, and servers can be provided according to implementation needs. In the case where the data to be processed does not need to be obtained remotely, the above-mentioned apparatus architecture can not include a network, but only a server or a terminal device.
[0067] Figure 2 A supercapacitor-based toilet flushing control method provided by an embodiment of the present application is shown. The toilet includes a main power supply, a supercapacitor, and a toilet flushing assembly. When the main power supply is working normally, the main power supply provides power for the toilet flushing assembly. When the main power supply is powered off, the supercapacitor provides power for the toilet flushing assembly. The toilet flushing assembly includes a flushing valve, a control module, a switching circuit, a boost circuit, and a power detection circuit. As shown in Figure 3 The control module is connected with the flushing valve, the switching circuit, and the power detection circuit and controls the opening or closing of the flushing valve, the switching circuit, and the power detection circuit. The supercapacitor, the switching circuit, and the boost circuit are connected in sequence. The boost circuit is connected with the control module, the flushing valve, and the power detection circuit to provide power. The control method includes the following steps:
[0068] S0, acquire a flushing instruction, detect a power supply state of the toilet flushing assembly by the main power supply based on the flushing instruction, if the main power supply provides power to the toilet flushing assembly, send a fifth control instruction to the control module to control the control module to start the flush valve to perform a flushing action, if the main power supply does not provide power to the toilet flushing assembly, execute step S1.
[0069] Specifically, as shown in the figure, Figure 4 The flushing instruction is generated according to the user's key pressing on the flushing button. After acquiring the flushing instruction, the power supply state of the toilet flushing assembly by the main power supply is detected, and it is judged whether the main power supply provides power to the toilet flushing assembly. If so, the control module is directly driven according to the flushing instruction to start the flush valve to perform the flushing action. Otherwise, step S1 is executed to enter the subsequent steps.
[0070] In actual situations, there are two scenarios. One is power-off closing valve, that is, the city power supply is turned on to open the flush valve, and the super capacitor power supply is needed to close the valve. In this case, when the city power supply is detected to be off, the working loop of the super capacitor is turned on, and the super capacitor supply voltage is boosted by the boost circuit to supply power to the flush valve to maintain the reliable closing of the flush valve. After the valve is closed, the control module cuts off all power supplies. After the city power supply is restored, the circuit continues to charge the super capacitor. The other is no power flushing, that is, the super capacitor provides power to complete a complete opening and closing action of the valve in the absence of city power supply. When there is no city power supply, the key is triggered to take power, and the super capacitor supply voltage is boosted by the boost circuit to supply power to the flush valve. After the control module works, it normally executes a flushing process. After flushing is completed, the control module automatically cuts off all power supplies to ensure that the system will not consume additional power. After the city power supply is restored, the circuit continues to charge the super capacitor. The working process of the embodiment of the application will be described in detail below taking no power flushing as an example. The power-off closing valve case can be adjusted according to the no power flushing case.
[0071] S1, in response to the main power supply not providing power to the toilet flushing assembly, enabling the super capacitor power supply, and sending a first control instruction to the control module to control the control module to start the power detection circuit, and the power detection circuit generates a fixed power consumption AQ after starting.
[0072] In a specific embodiment, when the main power supply cannot provide power to the toilet flushing assembly, the super capacitor stores a certain amount of power at this time. When the super capacitor supplies power, the voltage of the super capacitor is collected, and the remaining power of the super capacitor can be calculated by a set calculation method, so as to judge whether it can meet the complete opening and closing action of the flush valve. After enabling the super capacitor power supply in step S1, it further includes:
[0073] The switch circuit is turned on to connect the super capacitor with the control module, the flush valve and the power detection circuit;
[0074] The control module, the flush valve and the power detection circuit are powered by the super capacitor after being boosted by the DC-DC loop in the boost circuit.
[0075] Specifically, the switch circuit can control the connection or disconnection of the super capacitor with the control module, the flush valve and the power detection circuit, and the boost circuit can boost the voltage of the super capacitor and power the control module, the flush valve and the power detection circuit. The boost circuit includes a DC-DC loop that converts the DC voltage of the super capacitor into a DC voltage that can start the control module, the flush valve and the power detection circuit. After obtaining sufficient power, the control module can start the power detection circuit to detect the remaining power of the super capacitor. In specific embodiments, the specific structure of the power detection circuit is not limited, as long as the power detection circuit generates a fixed power consumption ΔQ after being started, and therefore will not be described again. The fixed power consumption ΔQ corresponds to the corresponding load. After turning on the load in the power detection circuit, the super capacitor provides power to the power detection circuit, and the voltage of the super capacitor decreases by ΔU.
[0076] S2, the current voltage U1 of the super capacitor is collected, and the remaining energy Q1 that the super capacitor can support for flushing is calculated according to the fixed power consumption ΔQ and the current voltage U1 of the super capacitor:
[0077] ΔU3 2 =U1 2 -U3 2 ;
[0078] C=2*ΔQ / ΔU3 2 ;
[0079] ΔU 2 =U3 2 -U2 2 ;
[0080] Q1=1 / 2*C*ΔU 2 ;
[0081] Wherein, C is the current capacitance value of the super capacitor, U2 is the voltage required for the flush valve to work, ΔU is the voltage drop of the super capacitor, and U3 is the remaining voltage value of the super capacitor after executing the fixed power consumption ΔQ.
[0082] Specifically, since the internal capacitance value of the super capacitor will decrease due to the environment and aging, etc., the embodiment of the application can judge the current capacitance value of the super capacitor by increasing the power detection circuit, and further calculate the remaining power that the super capacitor can support for flushing. If the remaining power that the super capacitor can support for flushing cannot meet the completion of a complete flushing action of the flushing valve, the flushing action will not be performed, avoiding the situation of opening the valve with power and closing the valve without power.
[0083] S3, judging whether the super capacitor can provide the flushing valve to complete a flushing action according to the comparison between the remaining energy Q1 that the super capacitor can support for flushing and the energy required for the toilet flushing assembly to complete a flushing action, and if so, sending a second control instruction to the control module to control the control module to start the flushing valve to perform the flushing action, wherein the flushing action includes at least one valve closing action.
[0084] In a specific embodiment, step S3 specifically includes:
[0085] The energy Q2 consumed by the flushing valve to complete a flushing action and the energy Q4 consumed by the peripheral circuit to work are calculated respectively, and the peripheral circuit is the circuit in the toilet flushing assembly except the flushing valve:
[0086] Q2=U2*I2*T2;
[0087] Q4=U4*I4*T4;
[0088] Wherein U2 is the voltage required for the flushing valve to work, I2 is the current required for the flushing valve to work, and T2 is the time required to complete a flushing action; U4 is the voltage required for the peripheral circuit to work, I4 is the current required for the peripheral circuit to work, and T4 is the time required for the peripheral circuit to work;
[0089] S32, calculating the number T of times that the super capacitor provides power to the toilet flushing assembly to complete flushing according to the remaining energy Q1 that the super capacitor can support for flushing, the energy Q2 consumed by the flushing valve to complete a flushing action, and the energy Q4 consumed by the peripheral circuit to work:
[0090] T=Q1 / (Q2+Q4);
[0091] S33, judging whether the number T is greater than or equal to 1, and if so, controlling the control module to start the flushing valve to perform the flushing action.
[0092] In a specific embodiment, in the case of no-electric flushing, the time T2 includes the time of at least completing a complete opening and closing valve action, for example, the time of opening valve is 40 ms, and the time of closing valve is 40 ms. In the case of power-off closing valve, the flushing action only includes a closing valve action, so T2 = 40 ms; in the case of no-electric flushing, the flushing action can include an opening valve action and a closing valve action, so T2 = 80 ms, which is determined according to the action mode set by the flushing valve when completing a flushing. U2, I2, T2 are all known values, so the energy Q2 consumed by the flushing valve for a single flushing can be calculated, and the required power of the peripheral circuit can be further calculated. In the embodiment of the present application, the peripheral circuit is the circuit of the toilet flushing assembly except the flushing valve, including the control module, the switching circuit, the boost circuit and the power detection circuit, etc., and the required power Q4 of the peripheral circuit is the power except the flushing loss, and U4, I4, T4 are all known values, so the required power Q4 of the peripheral circuit can be easily calculated. The number T of times of discharging the super capacitor to flush is the number of times of discharging the super capacitor to flush, which is calculated according to the power stored in the super capacitor according to the current capacitance value. Since the capacitance value of the super capacitor is easily affected by the outside world, the capacitance value will fluctuate, resulting in that the number T is also uncertain, so the number of times of discharging the super capacitor to start and close the flushing valve can be accurately measured by the power detection circuit. When T≥1, the flushing valve can complete a flushing action. When T<1, the flushing valve cannot complete a flushing action. Therefore, the control module does not open the flushing valve, and the indicator light displays an alarm that cannot flush. This method can completely avoid the situation that the remaining power of the super capacitor after flushing opening valve is insufficient to close the flushing valve. When the number T is less than 1, an alarm signal can be sent.
[0093] In a specific embodiment, the toilet flushing assembly further comprises an alarm module (not shown in the figure) connected with the control module, and the alarm module is also connected with the boost circuit and is powered by the super capacitor. Step S33 further comprises:
[0094] If the number T is less than 1, a third control instruction is sent to the control module to control the control module to start the alarm module to send an alarm signal.
[0095] Specifically, when T<1, the flushing valve cannot complete a flushing action, the control module does not start the flushing valve to open or close the valve, but controls the indicator light to display an alarm that cannot flush. This method not only completely avoids the situation that the remaining power of the super capacitor after flushing opening valve is insufficient to close the flushing valve, but also can display and monitor the insufficient remaining power of the super capacitor.
[0096] The current super capacitor can support the remaining power of flushing by formula conversion and back calculation, so as to determine whether the flushing action can be performed. The above voltage determination method includes but is not limited to the above method. This scheme avoids the phenomenon that the power of the super capacitor is reduced to only open the valve but cannot close the valve in the case of no commercial power.
[0097] In a specific embodiment, step S3 further comprises:
[0098] After obtaining the result of determining whether the super capacitor can provide the flushing valve to complete a flushing action, a fourth control instruction is sent to the control module to control the control module to close the switching circuit to stop the super capacitor from providing power to the toilet flushing assembly.
[0099] Specifically, the control module is also connected with the switching circuit for controlling the connection and closing of the super capacitor with the control module, the flushing valve and the power detection circuit in the toilet flushing assembly. When the control module works and the flushing valve normally completes a flushing process, the fourth control instruction is sent to the control module to close the switching circuit, and all power supplies are automatically cut off to ensure that the system will not consume additional power. When the remaining power of the super capacitor cannot meet the flushing valve to perform a complete opening and closing action, the fourth control instruction is sent to the control module to close the switching circuit, so as to save energy. After the commercial power supply, the circuit continues to charge the super capacitor.
[0100] In the case that the front-end power supply cannot supply power, the super capacitor can be started to perform the flushing action, and the power detection circuit detects the power of the super capacitor every time the super capacitor is used for flushing. Whether the super capacitor can meet a complete flushing action (including opening and closing the valve). Since the internal capacitance value of the super capacitor will decrease due to environmental and aging reasons, the power detection circuit of the present application can judge the capacitance value of the super capacitor. If the remaining power of the super capacitor cannot meet a complete flushing action of the flushing valve, an alarm will be given, and the flushing action will not be performed, avoiding the situation of opening the valve with power and closing the valve without power.
[0101] Further reference Figure 5 As an implementation of the method shown in the above figures, the present application provides an embodiment of a toilet flushing control device based on a super capacitor. The device embodiment corresponds to the method embodiment shown in Figure 2 The device can be applied to various electronic devices.
[0102] The embodiment of the application provides a toilet flushing control device based on a super capacitor, the toilet comprises a main power supply, a super capacitor and a toilet flushing assembly, when the main power supply normally works, the main power supply provides power for the toilet flushing assembly, when the main power supply is powered off, the super capacitor provides power for the toilet flushing assembly; the toilet flushing assembly comprises a flushing valve, a control module, a switching circuit, a voltage boosting circuit and a power detection circuit, the control module is connected with the flushing valve and the power detection circuit and controls the opening or closing of the flushing valve and the power detection circuit, the super capacitor, the switching circuit and the voltage boosting circuit are sequentially connected, the voltage boosting circuit is connected with the control module, the flushing valve and the power detection circuit, and the control device comprises:
[0103] The detection module 1 is configured to enable the super capacitor to supply power and send a first control instruction to the control module to control the control module to start the power detection circuit in response to the main power supply not supplying power to the toilet flushing assembly, and the power detection circuit generates fixed power consumption Delta Q after being started;
[0104] The energy calculation module 2 is configured to collect the current voltage U1 of the super capacitor, and calculate the residual energy Q1 of the super capacitor that can support flushing according to the fixed power consumption Delta Q and the current voltage U1 of the super capacitor:
[0105] Delta U3 2 = U1 2 -U3 2 ;
[0106] C = 2 * Delta Q / Delta U3 2 ;
[0107] Delta U 2 = U3 2 -U2 2 ;
[0108] Q1 = 1 / 2 * C * Delta U 2 ;
[0109] Wherein C is the current capacitance value of the super capacitor, U2 is the voltage required for the flushing valve to work, Delta U is the voltage drop amplitude of the super capacitor, and U3 is the residual voltage value of the super capacitor after executing the fixed power consumption Delta Q;
[0110] The judgment module 3 is configured to compare the residual energy Q1 of the super capacitor that can support flushing with the energy required for the toilet flushing assembly to complete one flushing action, and judge whether the super capacitor can provide the flushing valve to complete one flushing action, if yes, a second control instruction is sent to the control module to control the control module to start the flushing valve to execute the flushing action, wherein the flushing action comprises at least one valve closing action.
[0111] Reference is made to Figure 6 which shows an electronic device (for example Figure 1The diagram shows the structure of a computer device 600 (a server or terminal device). Figure 6 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0112] like Figure 6 As shown, the computer device 600 includes a central processing unit (CPU) 601 and a graphics processing unit (GPU) 602, which can perform various appropriate actions and processes according to programs stored in read-only memory (ROM) 603 or programs loaded from storage section 609 into random access memory (RAM) 604. The RAM 604 also stores various programs and data required for the operation of the device 600. The CPU 601, GPU 602, ROM 603, and RAM 604 are interconnected via a bus 605. An input / output (I / O) interface 606 is also connected to the bus 605.
[0113] The following components are connected to I / O interface 606: an input section 607 including a keyboard, mouse, etc.; an output section 608 including an LCD, speakers, etc.; a storage section 609 including a hard disk, etc.; and a communication section 610 including a network interface card, such as a LAN card or modem. The communication section 610 performs communication processing via a network such as the Internet. A drive 611 may also be connected to I / O interface 606 as needed. A removable medium 612, such as a hard disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 611 as needed so that computer programs read from it can be installed into storage section 609 as needed.
[0114] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 610, and / or installed from removable medium 612. When the computer program is executed by central processing unit (CPU) 601 and graphics processing unit (GPU) 602, the functions defined in the methods of this application are performed.
[0115] Note that the computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer-readable medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present context, a computer-readable medium can be any tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present context, a computer-readable signal medium can include a computer-readable program code in a baseband or propagated as carrier waves in a propagated data signal associating with a carrier wave. Such a propagated signal can take a wide variety of forms including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer-readable signal medium can also be any computer-readable medium that can be selected to communicate a program code for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0116] Computer program code for carrying out operations of the present application can be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0117] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using dedicated hardware-based apparatus to perform the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0118] The modules described in the embodiments of this application can be implemented in software or hardware. These modules can also be located within a processor.
[0119] In another aspect, this application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiments; or it may exist independently and not assembled into the electronic device. The computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: enable power supply to the supercapacitor in response to a lack of power supply from the main power supply to the toilet flushing assembly, and send a first control command to the control module to control the control module to start the power detection circuit, which generates a fixed power consumption ΔQ after startup; collect the current voltage U1 of the supercapacitor, and calculate the remaining energy Q1 that the supercapacitor can currently support for flushing based on the fixed power consumption ΔQ and the current voltage U1 of the supercapacitor.
[0120] ΔU3 2 =U1 2 -U3 2 ;
[0121] C = 2 * ΔQ / ΔU3 2 ;
[0122] ΔU 2 =U3 2 -U2 2 ;
[0123] Q1 = 1 / 2 * C * ΔU 2 ;
[0124] Wherein, C is the current capacitance value of the super capacitor, U2 is the voltage required for the flushing valve to work, ΔU is the voltage drop of the super capacitor, U3 is the voltage value left after the super capacitor performs a fixed power consumption ΔQ; according to the comparison between the energy Q1 left by the super capacitor to support flushing and the energy required for the toilet flushing assembly to complete a flushing action, it is judged whether the super capacitor can provide the flushing valve to complete a flushing action, if yes, a second control instruction is sent to the control module to control the control module to start the flushing valve to perform the flushing action, wherein the flushing action includes at least one valve closing action.
[0125] The above description is merely the preferred embodiments of the present application and the explanation of the technical principles applied. It should be understood by those skilled in the art that the inventive scope involved in the present application is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by the combinations of the above technical features or their equivalent features without departing from the inventive concept. For example, the technical solutions formed by the mutual replacement of the above features and the technical features disclosed in the present application (but not limited to) with similar functions.
Claims
1. A toilet flushing control method based on supercapacitors, characterized in that, The toilet includes a main power supply, a supercapacitor, and a toilet flushing assembly. When the main power supply is working normally, it provides power to the toilet flushing assembly. When the main power supply is interrupted, the supercapacitor provides power to the toilet flushing assembly. The toilet flushing assembly includes a flushing valve, a control module, a switching circuit, a boost circuit, and a power detection circuit. The control module is connected to the flushing valve, the switching circuit, and the power detection circuit respectively and controls the opening or closing of the flushing valve, the switching circuit, and the power detection circuit. The supercapacitor, the switching circuit, and the boost circuit are connected in sequence. The boost circuit is connected to the control module, the flushing valve, and the power detection circuit respectively. The control method includes the following steps: S1, in response to the main power supply not supplying power to the toilet flushing assembly, enable the supercapacitor to supply power and send a first control command to the control module to control the control module to start the power detection circuit. After the power detection circuit is started, it generates a fixed power consumption ΔQ. S2, acquire the current voltage U1 of the supercapacitor, and calculate the remaining energy Q1 that the supercapacitor can support for flushing based on the fixed power consumption ΔQ and the current voltage U1 of the supercapacitor: ΔU3²= U1 2 - U3²; C = 2 * ΔQ / ΔU³²; ΔU 2 = U3 2 - U2 2 ; Q1 = 1 / 2 * C * ΔU²; Where C is the current capacitance value of the supercapacitor, U2 is the voltage required for the flushing valve to operate, ΔU is the voltage drop of the supercapacitor, and U3 is the remaining voltage value of the supercapacitor after performing a fixed power consumption ΔQ. S3, based on a comparison between the remaining energy Q1 of the supercapacitor that can currently support flushing and the energy required for the toilet flushing assembly to complete one flushing action, determine whether the supercapacitor can provide the flushing valve with enough energy to complete one flushing action. If so, send a second control command to the control module to control the control module to start the flushing valve to perform the flushing action. The flushing action includes at least one valve closing action, specifically including: S31, calculate the energy Q2 required for the flush valve to complete one flushing action and the energy Q4 required for the peripheral circuit to operate. The peripheral circuit refers to the circuit in the toilet flushing assembly other than the flush valve. Q2 = U2 * I2 * T2; Q4 = U4 * I4 * T4; Wherein, U2 is the voltage required for the flushing valve to operate, I2 is the current required for the flushing valve to operate, and T2 is the time required to complete one flushing action; U4 is the voltage required for the peripheral circuit to operate, I4 is the current required for the peripheral circuit to operate, and T4 is the time required for the peripheral circuit to operate. S32, based on the remaining energy Q1 that the supercapacitor can currently support for flushing, the energy Q2 required for the flush valve to complete one flushing action, and the energy Q4 required for the peripheral circuit to operate, calculate the number of times T that the supercapacitor provides power to the toilet flushing assembly to complete the flushing: T = Q1 / (Q2 + Q4); S33, determine whether the number T is greater than or equal to 1. If so, control the control module to start the flushing valve to perform the flushing action.
2. The toilet flushing control method based on supercapacitor according to claim 1, characterized in that, The toilet flushing assembly further includes an alarm module connected to the control module, and the alarm module is also connected to the boost circuit. Step S33 further includes: If the number of times T is less than 1, a third control command is sent to the control module to control the control module to activate the alarm module and issue an alarm signal.
3. The toilet flushing control method based on supercapacitor according to claim 1, characterized in that, The step S3 is followed by: After obtaining the result of determining whether the supercapacitor can provide enough power for the flush valve to complete one flushing action, a fourth control command is sent to the control module to control the control module to turn off the switching circuit to stop the supercapacitor from providing power to the toilet flushing assembly.
4. The toilet flushing control method based on supercapacitor according to claim 1, characterized in that, The procedure preceding step S1 also includes: Obtain a flushing command, and based on the flushing command, detect the power supply status of the main power supply to the toilet flushing component. If the main power supply provides power to the toilet flushing component, send a fifth control command to the control module to control the control module to start the flushing valve to perform the flushing action. If the main power supply does not provide power to the toilet flushing component, proceed to step S1.
5. The toilet flushing control method based on supercapacitor according to claim 1, characterized in that, After enabling the supercapacitor to supply power in step S1, the following further includes: Turn on the switching circuit to connect the supercapacitor to the control module, the flushing valve, and the power detection circuit. The voltage is boosted by the boost circuit and then supplied to the control module, flushing valve and power detection circuit respectively.
6. The toilet flushing control method based on supercapacitor according to claim 1, characterized in that, The situation in step S1 that responds to the main power supply not supplying power to the toilet flushing assembly specifically includes situations where the main power supply provides power to the flushing valve to open the valve but cannot provide power to close the valve, or situations where the main power supply cannot provide power to the flushing valve to open and close the valve.
7. A toilet flushing control device based on a supercapacitor, characterized in that, The toilet includes a main power supply, a supercapacitor, and a toilet flushing assembly. When the main power supply is working normally, it provides power to the toilet flushing assembly. When the main power supply is interrupted, the supercapacitor provides power to the toilet flushing assembly. The toilet flushing assembly includes a flushing valve, a control module, a switching circuit, a boost circuit, and a power detection circuit. The control module is connected to the flushing valve and the power detection circuit respectively and controls the opening or closing of the flushing valve and the power detection circuit. The supercapacitor, the switching circuit, and the boost circuit are connected in sequence. The boost circuit is connected to the control module, the flushing valve, and the power detection circuit respectively. The control device includes: The detection module is configured to enable the supercapacitor to supply power in response to the lack of power supply from the main power supply to the toilet flushing assembly, and send a first control command to the control module to control the control module to start the power detection circuit, which generates a fixed power consumption ΔQ after starting. An energy calculation module is configured to acquire the current voltage U1 of the supercapacitor and calculate the remaining energy Q1 that the supercapacitor can currently support for flushing based on the fixed power consumption ΔQ and the current voltage U1 of the supercapacitor. ΔU3²= U1 2 - U3²; C = 2 * ΔQ / ΔU³²; ΔU 2 = U3 2 - U2 2 ; Q1 = 1 / 2 * C * ΔU²; Where C is the current capacitance value of the supercapacitor, U2 is the voltage required for the flushing valve to operate, ΔU is the voltage drop of the supercapacitor, and U3 is the remaining voltage value of the supercapacitor after performing a fixed power consumption ΔQ. The judgment module is configured to compare the remaining energy Q1 of the supercapacitor that can currently support flushing with the energy required for the toilet flushing assembly to complete one flushing action to determine whether the supercapacitor can provide enough energy for the flushing valve to complete one flushing action. If so, a second control command is sent to the control module to control the control module to start the flushing valve to perform the flushing action. The flushing action includes at least one valve closing action, specifically including: Calculate the energy Q2 required for the flush valve to complete one flushing action and the energy Q4 required for the peripheral circuit to operate. The peripheral circuit refers to the circuits in the toilet flushing assembly other than the flush valve. Q2 = U2 * I2 * T2; Q4 = U4 * I4 * T4; Wherein, U2 is the voltage required for the flushing valve to operate, I2 is the current required for the flushing valve to operate, and T2 is the time required to complete one flushing action; U4 is the voltage required for the peripheral circuit to operate, I4 is the current required for the peripheral circuit to operate, and T4 is the time required for the peripheral circuit to operate. Based on the remaining energy Q1 of the supercapacitor, the energy Q2 required for the flush valve to complete one flushing action, and the energy Q4 required for the peripheral circuit to operate, the number of flushing cycles T that the supercapacitor provides to the toilet flushing assembly to complete is calculated: T = Q1 / (Q2 + Q4); Determine whether the number T is greater than or equal to 1. If so, control the control module to start the flushing valve to perform the flushing action.
8. An electronic device, comprising: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-6.
Citation Information
Patent Citations
Supercapacitor-based backup power control system
CN110768362A
Water flushing circuit and intelligent closestool
CN214833199U