Voltage detection circuit, intelligent toilet, voltage detection method

CN115754452BActive Publication Date: 2026-09-11GUANGDONG LEHUA HOME FURNISHING CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202211455714.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-21
Publication Date
2026-09-11
Estimated Expiration
2042-11-21

AI Technical Summary

Technical Problem

相关技术,通过互感器等元器件对市电电压进行检测,而通过互感器检测的方法会增加检测电路的成本

Benefits of technology

[0010]The voltage detection circuit according to embodiments of the present invention has at least the following beneficial effects: A raw detection signal is obtained by performing related operations on the mains power through an interface module, a switching module, and a switching power supply. The conversion module operates the raw detection signal in two paths: one path generates a power supply signal for powering the back-end circuit based on the raw detection signal; the other path generates a target detection signal based on the raw detection signal. The main control module obtains the target voltage of the mains power based on the target detection signal and a preset voltage reference database. Therefore, the voltage detection circuit provided in this application not only provides power to the back-end circuit but also detects the target voltage of the mains power through a preset voltage reference database, avoiding the method of detecting the mains voltage using a transformer in related technologies, thereby reducing the cost of the mains voltage detection circuit to a certain extent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115754452B_ABST
    Figure CN115754452B_ABST
Patent Text Reader

Abstract

The application discloses a voltage detection circuit, an intelligent closestool, and a voltage detection method. The voltage detection circuit comprises an interface module, a switching module, a switching power supply, and a transformation module. The interface module is used for rectifying mains power to obtain a rectified signal. The switching module is used for generating a conduction signal according to the rectified signal. The secondary winding of the switching power supply is used for generating an original detection signal according to the conduction signal and the rectified signal. The transformation module is electrically connected with the secondary winding of the switching power supply. The transformation module is used for generating a power supply signal according to the original detection signal and is also used for performing a transformation operation on the original detection signal to obtain a target detection signal. The main control module is connected with the transformation module. The main control module is used for searching a preset voltage reference database according to the target detection signal to obtain a target voltage of the mains power. The application can reduce the cost of the mains voltage detection circuit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of voltage detection technology, and in particular to a voltage detection circuit, a smart toilet, and a voltage detection method. Background Technology

[0002] In related technologies, devices connected to mains power need to collect mains voltage data to ensure stable operation even with fluctuations in the mains voltage. For example, smart toilets with warm water washing functions require mains voltage monitoring to maintain a stable water temperature. These technologies typically use current transformers to detect the mains voltage, but this increases the cost of the detection circuit. Therefore, reducing the cost of mains voltage detection circuits has become a pressing technical problem. Summary of the Invention

[0003] This invention aims to at least solve one of the technical problems existing in the prior art. To this end, this invention proposes a voltage detection circuit, a smart toilet, and a voltage detection method, which can reduce the cost of mains voltage detection circuits.

[0004] A voltage detection circuit according to a first aspect embodiment of the present invention includes:

[0005] An interface module is provided, which is used to connect to the mains power supply and to perform rectification on the mains power supply to obtain a rectified signal.

[0006] A switching module, which is electrically connected to the interface module, is used to generate a conduction signal based on the rectified signal.

[0007] A switching power supply, wherein the primary winding of the switching power supply is electrically connected to the interface module and the switching module respectively, and the secondary winding of the switching power supply is used to generate an original detection signal based on the conduction signal and the rectified signal;

[0008] A conversion module is electrically connected to the secondary winding of the switching power supply. The conversion module is used to generate a power supply signal based on the original detection signal. The conversion module is also used to perform a conversion operation on the original detection signal to obtain a target detection signal. The conversion operation includes rectification and filtering.

[0009] The main control module is connected to the conversion module. The main control module is used to search a preset voltage reference database based on the target detection signal to obtain the target voltage of the mains power.

[0010] The voltage detection circuit according to embodiments of the present invention has at least the following beneficial effects: A raw detection signal is obtained by performing related operations on the mains power through an interface module, a switching module, and a switching power supply. The conversion module operates the raw detection signal in two paths: one path generates a power supply signal for powering the back-end circuit based on the raw detection signal; the other path generates a target detection signal based on the raw detection signal. The main control module obtains the target voltage of the mains power based on the target detection signal and a preset voltage reference database. Therefore, the voltage detection circuit provided in this application not only provides power to the back-end circuit but also detects the target voltage of the mains power through a preset voltage reference database, avoiding the method of detecting the mains voltage using a transformer in related technologies, thereby reducing the cost of the mains voltage detection circuit to a certain extent.

[0011] According to some embodiments of the present invention, the conversion module includes a first conversion unit, and the secondary winding of the switching power supply includes a first sub-secondary winding. The first conversion unit includes:

[0012] The first diode, whose anode is electrically connected to the first sub-secondary winding, is used to rectify the original detection signal.

[0013] A first capacitor, one end of which is electrically connected to the cathode of the first diode, and the other end of which is grounded;

[0014] A first resistor, one end of which is electrically connected to one end of the first capacitor;

[0015] A second resistor, one end of which is electrically connected to the other end of the first resistor, and the other end of which is electrically connected to the other end of the first capacitor;

[0016] The third resistor has one end electrically connected to the connection node of the first resistor and the second resistor, and the other end electrically connected to the main control module.

[0017] The second capacitor has one end electrically connected to the other end of the third resistor, and the other end of the second resistor is grounded. The second capacitor is used to filter the original detection signal after rectification to obtain the target detection signal.

[0018] According to some embodiments of the present invention, the first transformation unit further includes:

[0019] The second diode has one end electrically connected to one end of the third resistor, and the other end of the second diode is grounded.

[0020] According to some embodiments of the present invention, the conversion module includes a second conversion unit, the secondary winding of the switching power supply includes a second sub-secondary winding, and the second conversion unit includes:

[0021] The third diode, wherein the anode of the third diode is electrically connected to the second sub-secondary winding;

[0022] The third capacitor has one end electrically connected to the cathode of the third diode and the other end electrically connected to the second sub-secondary winding.

[0023] A fourth diode, which is connected in parallel with the third diode;

[0024] A fourth capacitor is connected in parallel with the third capacitor, and the fourth capacitor is used to generate the power supply signal based on the original detection signal.

[0025] According to some embodiments of the present invention, the interface module includes:

[0026] A fuse, the fuse being used for connection to mains power;

[0027] A common-mode inductor, which is electrically connected to the fuse;

[0028] A rectifier bridge, the input terminal of which is electrically connected to the common-mode inductor, is used to rectify the mains power.

[0029] The fifth capacitor is electrically connected to the output terminal of the rectifier bridge, the switching module, and the switching power supply.

[0030] A smart toilet according to a second aspect embodiment of the present invention includes:

[0031] The voltage detection circuit as described in any of the first aspects;

[0032] A heating element is electrically connected to the main control module; wherein the main control module is used to search a preset power reference database according to the target voltage to obtain the target power, and the main control module is used to control the duty cycle of the heating element according to the target power.

[0033] According to some embodiments of the present invention, it further includes:

[0034] A zero-crossing detection circuit is provided, which is electrically connected to the mains power supply and also electrically connected to the main control module. The zero-crossing detection circuit is used to generate a zero-crossing signal based on the mains power supply. The main control module is used to generate a function activation signal based on the zero-crossing signal. The function activation signal is used to activate at least one of the following toilet functions: water heating, seat heating, and fan heating.

[0035] According to some embodiments of the present invention, it further includes:

[0036] A drive circuit is electrically connected to the main control module; wherein the main control module is further configured to generate control signals, and the drive circuit is configured to generate drive signals based on the control signals.

[0037] The functional component includes a stepper motor, which is electrically connected to the drive circuit and is used to switch working states according to the drive signal.

[0038] A spray gun, which is connected to the moving end of the stepper motor.

[0039] According to some embodiments of the present invention, the functional component further includes:

[0040] A pulse pump, which is electrically connected to the main control module, is used to switch operating states according to the control signal.

[0041] A voltage detection method according to a third aspect of the present invention, applied to a smart toilet as described in any of the second aspects, the method comprising:

[0042] The main control module generates a test signal; wherein the test signal is used to control the working state of the functional components to be a test working state;

[0043] The transformation module generates a test detection signal and sends the test detection signal to the main control module;

[0044] The main control module sends the test working status and the test detection signal to the external programming system for programming.

[0045] The main control module acquires the voltage reference database burned by the external programming system; wherein, the voltage reference database is a voltage reference database generated by the external programming system based on the test working state, the test detection signal, and the test voltage of the mains power.

[0046] The main control module generates control signals according to control commands;

[0047] The functional component switches its operating state to the target operating state according to the control signal;

[0048] The transformation module generates the target detection signal;

[0049] The main control module searches the voltage reference database based on the target detection signal and the target operating status to obtain the target voltage.

[0050] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0051] The present invention will be further described below with reference to the accompanying drawings and embodiments, wherein:

[0052] Figure 1 This is a block diagram of a voltage detection circuit according to an embodiment of the present invention;

[0053] Figure 2 This is a schematic diagram of a voltage detection circuit according to an embodiment of the present invention;

[0054] Figures 3A to 3D This is a schematic diagram of a voltage reference database according to an embodiment of the present invention;

[0055] Figure 4 This is a block diagram of a module of the smart toilet according to an embodiment of the present invention;

[0056] Figure 5 This is a schematic diagram of a power reference database according to an embodiment of the present invention;

[0057] Figure 6 This is a flowchart of a voltage detection method according to an embodiment of the present invention.

[0058] Reference numerals: Interface module 100, switching power supply T1, conversion module 300, first conversion unit 310, second conversion unit 320, main control module 400. Detailed Implementation

[0059] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0060] In the description of this invention, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., are based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting this invention.

[0061] In the description of this invention, "several" means one or more, "multiple" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.

[0062] In the description of this invention, unless otherwise explicitly defined, terms such as "set up," "install," and "connect" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this invention in conjunction with the specific content of the technical solution.

[0063] In the description of this invention, the terms "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0064] Reference Figure 1 and Figure 2 This application provides a voltage detection circuit, which includes an interface module 100, a switching module 200, a switching power supply T1, a conversion module 300, and a main control module 400. The interface module 100 is electrically connected to the mains power supply and performs rectification on the mains power to obtain a rectified signal. The switching module 200 is electrically connected to the interface module 100 and generates a conduction signal based on the rectified signal. The primary winding of the switching power supply T1 is electrically connected to both the interface module 100 and the switching module 200. The secondary winding of the switching power supply T1 generates an initial detection signal based on the conduction signal and the rectified signal. The conversion module 300 is electrically connected to the secondary winding of the switching module 200 and generates a power supply signal based on the initial detection signal. The conversion module 300 also performs rectification and filtering operations on the initial detection signal to obtain a target detection signal. The main control module 400 is connected to the conversion module 300. The main control module 400 is used to search the preset voltage reference database according to the target detection signal to obtain the target voltage of the mains power.

[0065] It is understood that the voltage detection circuit provided in this application embodiment is formed by sequentially connecting an interface module 100, a switch module 200, a switching power supply T1, a conversion module 300, and a main control module 400. The power supply signal generated by the conversion module 300 is used to power the back-end circuit. That is, the voltage detection circuit provided in this application embodiment acts as a connection intermediary between the mains power and the back-end circuit. It detects the target voltage of the mains power and generates a power supply signal based on the mains voltage, enabling the back-end circuit to not only perform corresponding functional operations based on the power supply signal but also adjust its functional operations based on the detected target voltage. For example, when the back-end circuit is the circuit corresponding to a smart toilet, the main control module 400 in the voltage detection circuit acts as the functional control module of the smart toilet circuit. The smart toilet circuit performs functional operations such as water heating and seat heating based on the power supply signal. When the mains voltage fluctuates, the main control module 400 generates a corresponding control signal based on the target voltage detected by the voltage detection circuit to ensure the temperature stability of water heating and seat heating. The specific structure of the voltage detection circuit will be described in detail below.

[0066] Interface module 100 connects to the mains power supply via the mains interface and rectifies the received mains voltage to obtain a DC high voltage V1. Switching module 200 controls the primary winding of switching power supply T1 to conduct based on this DC high voltage V1, causing the secondary winding of switching power supply T1 to generate a raw detection signal V2 through electromagnetic induction with the primary winding. Conversion module 300 performs two operations on this raw detection signal V2: one operation generates a power supply signal to power the downstream circuitry based on V2, and the other operation performs rectification, filtering, and other conversion operations on V2 to generate the corresponding target detection signal. It can be understood that the raw detection signal V2 is a voltage signal proportional to the DC high voltage V1. Therefore, when the output current of the power supply signal is constant, the magnitude of the raw detection signal V2 has a one-to-one mapping relationship with the DC high voltage V1. That is, when the output current of the power supply signal remains constant, the DC high voltage V1 can be determined by measuring the raw detection signal V2, thereby indirectly determining the mains voltage.

[0067] Specifically, based on the method for determining the mains voltage described above, the main control module 400 pre-programs a voltage reference database for determining the target mains voltage using an external programming system. This target voltage is essentially the current mains voltage under testing conditions. The voltage reference database includes the original detection signal and the original voltage. The original detection signal is the signal generated by another operation in the conversion module 300 after the voltage detection circuit performs a series of operations on the mains voltage using the same method described above under testing conditions. The original voltage is the test state voltage obtained by manually or otherwise measuring the mains voltage under testing conditions. The original detection signal and the original voltage are mapped one-to-one to construct the voltage reference database. The main control module 400 searches the voltage reference database based on the target detection signal to find the original detection signal whose value matches the target detection signal. The original voltage corresponding to this original detection signal is then used as the target voltage, thereby achieving the detection of the mains voltage.

[0068] It is understandable that in some embodiments, the stability of the supply voltage output current is related to the back-end circuit, specifically the functional operation of the back-end circuit controlled by the main control module 400. Therefore, the preset voltage reference database can be updated according to different functional operation states of the back-end circuit. For example, taking a smart toilet circuit as an example, which includes a stepper motor and a pulse pump, the main control module 400 controls the operating state of the stepper motor and the pulse pump to achieve functional control of the smart toilet. Therefore, in the test state, the main control module 400 controls the operating state of the stepper motor and the pulse pump, obtains the original detection signal and the original voltage in the corresponding operating state, and constructs a voltage reference database based on the operating state, the original detection signal, and the original voltage. Figures 3A to 3D The voltage reference database is shown. In actual testing, the main control module 400 generates a target detection signal based on the current mains voltage through the conversion module 300. The main control module 400 determines the operating status of the stepper motor and pulse pump, and searches the voltage reference database based on the operating status and the target detection signal to obtain the target voltage of the current mains voltage.

[0069] The voltage detection circuit provided in this embodiment performs related operations on the mains power through the interface module 100, the switch module 200, and the switching power supply T1 to obtain a raw detection signal. The conversion module 300 operates the raw detection signal in two ways: one way is used to generate a power supply signal for powering the back-end circuit based on the raw detection signal; the other way is used to generate a target detection signal based on the raw detection signal. The main control module 400 obtains the target voltage of the mains power based on the target detection signal and a preset voltage reference database. Therefore, the voltage detection circuit provided in this embodiment not only provides power to the back-end circuit but also detects the target voltage of the mains power through a preset voltage reference database, avoiding the method of detecting the mains voltage using a transformer in related technologies, thereby reducing the cost of the mains voltage detection circuit to a certain extent.

[0070] Reference Figure 2 In some embodiments, the conversion module 300 includes a first conversion unit 310. The secondary winding of the switching power supply T1 includes a first sub-secondary winding. The first conversion unit 310 includes a first diode D1, a first capacitor C1, a first resistor R1, a second resistor R2, a third resistor R3, and a second capacitor C2. The anode of the first diode D1 is electrically connected to the first sub-secondary winding, and the first diode D1 is used to rectify the original detection signal. One end of the first capacitor C1 is electrically connected to the cathode of the first diode D1, and the other end of the first capacitor C1 is grounded. One end of the first resistor R1 is electrically connected to one end of the first capacitor C1. One end of the second resistor R2 is electrically connected to the other end of the first resistor R1, and the other end of the second resistor R2 is electrically connected to the other end of the first capacitor C1. One end of the third resistor R3 is electrically connected to the connection node of the first resistor R1 and the second resistor R2, and the other end of the third resistor R3 is electrically connected to the main control module 400. One end of the second capacitor C2 is electrically connected to the other end of the third resistor R3, and the other end of the second resistor R2 is grounded. The second capacitor C2 is used to filter the original detection signal after rectification to obtain the target detection signal.

[0071] It is understood that the transformation module 300 includes a first transformation unit 310 and a second transformation unit 320, wherein the first transformation unit 310 is used to perform the "other path operation" as described in the above embodiments, and the second transformation unit 320 is used to perform the "one path operation" as described in the above embodiments. First, the first transformation unit 310 will be described. Figure 2As shown, the secondary winding of the switching power supply T1 includes a first sub-secondary winding composed of a coil formed by pins 8 and 9. The anode of the first diode D1 is electrically connected to pin 9. The first sub-secondary winding generates a corresponding voltage signal through electromagnetic induction with the primary winding. This voltage signal undergoes a transformation operation after passing through the first diode D1, the first capacitor C1, the first resistor R1, the second resistor R2, the third resistor R3, and the second capacitor C2, thereby generating a target detection signal at the other end of the third resistor R3. Specifically, the first diode D1 is used to rectify the voltage generated by the first sub-secondary winding. The first diode D1, the first resistor R1, and the second resistor R2 are connected in series, forming a resistor group. The first capacitor C1 is connected in parallel with this resistor group. The rectified voltage is converted into a relatively stable DC voltage through the energy storage of the first capacitor C1 and the resistor group. One end of the third resistor R3 is electrically connected to the connection node of the first resistor R1 and the second resistor R2, and the other end of the third resistor R3 is electrically connected to the voltage detection AD port of the main control module 400. One end of the second capacitor C2 is electrically connected to the connection node of the third resistor R3 and the main control module 400. The DC voltage is filtered by the third resistor R3 and the second capacitor C2 to generate the target detection signal.

[0072] In some embodiments, the main control module 400 includes components such as a microcontroller. Since the microcontroller has limitations on the voltage of the input signal, for example, limiting the voltage to no more than 5.5V, the first conversion unit 310 also includes a second diode D2. The anode of the second diode D2 is electrically connected to one end of the third resistor R3, and the cathode of the second diode D2 is grounded. The forward voltage drop of the second diode D2 clamps the voltage to 5V, thereby protecting the main control module 400.

[0073] Finally, the second conversion unit 320 is described. The second conversion unit 320 is connected to the second sub-secondary winding of the switching power supply T1. The second sub-secondary winding consists of a coil formed by pins 10 and 11. Pin 8 of the first sub-secondary winding is electrically connected to pin 10 of the second sub-secondary winding. The second conversion unit 320 includes a third diode D3, a third capacitor C3, a fourth diode D4, and a fourth capacitor C4. The third capacitor C3, the third diode D3, and the fourth diode D4 are connected in parallel. One node of this parallel connection is electrically connected to pin 10 of the second sub-secondary winding, and the other node is electrically connected to one end of the fourth capacitor C4. The other end of the fourth capacitor C4 is electrically connected to pin 11 of the second sub-secondary winding. The second sub-secondary winding generates a corresponding voltage signal through electromagnetic induction with the primary winding. This voltage signal is rectified by the second conversion unit 320 to generate a DC power supply signal, for example, a 12V DC voltage signal.

[0074] Reference Figure 2In some embodiments, the interface module 100 includes a fuse F1, a common-mode inductor L1, a rectifier bridge T2, and a fifth capacitor C5. The interface module 100 includes two AC power interfaces, L2 and N1. Interface L2 is used to connect to the live wire of the AC power supply, and interface N1 is used to connect to the neutral wire. One end of the fuse F1 is electrically connected to the L2 port. The input terminal of the common-mode inductor L1 is electrically connected to the other end of the fuse F1 and the N1 port, respectively. The output terminal of the common-mode inductor L1 is electrically connected to the input terminal of the rectifier bridge T2. Both ends of the fifth capacitor C5 are electrically connected to the output terminal of the rectifier bridge T2, and the fifth capacitor C5 is also electrically connected to the primary winding of the switching power supply T1 and the switching module 200. The AC power is input to the voltage detection circuit through the AC power interface and rectified into a high-voltage DC V1 by the common-mode inductor L1, rectifier bridge T2, and fifth capacitor C5.

[0075] It is understood that the embodiments of this application do not specifically limit the model and size of the above-mentioned components, and the model and size of each component can be adaptively selected according to actual needs. Furthermore, other components included in the interface module 100, switch module 200, switching power supply T1, and conversion module 300, as well as their connection methods with other components, can be referred to... Figure 2 .

[0076] Reference Figures 1 to 4 This application also provides a smart toilet, which includes a voltage detection circuit and a heating element as described in any of the above embodiments. The heating element is electrically connected to a main control module 400, which searches a preset power reference database based on the target voltage to obtain the target power. The main control module 400 then controls the duty cycle of the heating element according to the target power.

[0077] It is understood that the heating element, as one of the components included in the back-end circuit of the above embodiments, is used to be installed in the seat ring to realize the function of heating the smart toilet seat ring; or, it can be combined with other functions of the smart toilet, such as the warm water washing function, which is not specifically limited in this embodiment. Since the resistance of the heating element is a fixed value, in the test state, the original power corresponding to each original voltage can also be calculated through the resistance of the heating coil, and a power reference database (such as...) can be constructed based on the original power and the original voltage. Figure 5(As shown). The external programming system pre-programs the power reference database into the main control module 400. This allows the main control module 400 to determine the current target voltage of the mains power through the voltage detection circuit, then compare this target voltage with the original voltage in the power reference database. The original power corresponding to the original voltage with the same value is taken as the target power of the heating element. The main control module 400 controls the duty cycle of the heating element based on this target power, thereby ensuring the stability of the heating element's temperature when the mains voltage fluctuates. It is understandable that... Figure 5 The power reference database shown is a reference database obtained by testing a heating element with a rated voltage of 220V and a rated power of 1600W. The values ​​in this power reference database will change depending on the type of heating element selected, and this embodiment of the application does not make specific limitations on this.

[0078] As can be seen, the contents of the above voltage detection circuit embodiments are all applicable to the embodiments of this smart toilet. The specific functions implemented by this smart toilet embodiment are the same as those of the above voltage detection circuit embodiments, and the beneficial effects achieved are also the same as those achieved by the above voltage detection circuit embodiments.

[0079] In some embodiments, the smart toilet further includes a zero-crossing detection circuit, which is connected to the mains power supply and generates a zero-crossing signal based on the mains voltage. The main control module 400 generates a function activation signal based on the zero-crossing signal, which activates at least one toilet function among water heating, seat heating, and fan heating. It is understood that the components corresponding to the toilet functions such as water heating, seat heating, and fan heating are located on the back-end circuit. The main control module 400 activates the corresponding components on the back-end circuit based on the zero-crossing detection signal, thereby activating the corresponding toilet function when the mains voltage crosses zero. It is understood that the specific components included in the zero-crossing detection circuit can refer to the components included in zero-crossing detection circuits in related technologies; this embodiment does not specifically limit this.

[0080] In some embodiments, the smart toilet also includes a drive circuit, functional components, and a power element such as a spray gun capable of realizing the relevant toilet functions. The drive circuit is electrically connected to the main control module 400, which also generates control signals. The drive circuit generates drive signals based on the control signals. A stepper motor is electrically connected to the drive circuit and switches its operating state according to the drive signals. The spray gun is connected to the moving end of the stepper motor. The drive circuit may include components for driving and controlling the stepper motor. The main control module 400 generates control signals based on user-input control commands, for example, the spray gun is used for a warm water cleaning function. When the user selects the warm water cleaning function via buttons, wireless control, etc., the main control module 400 generates a control signal, and the drive module controls the stepper motor to rotate according to the control signal, thereby driving the spray gun to move.

[0081] In some embodiments, the functional components further include a pulse pump connected to the main control module 400. The pulse pump is used to control the pumping of water flow. Similar to a stepper motor, the pulse pump is also used to operate or not operate according to the control signal generated by the main control module 400. That is, the main control module 400 is used to control the operating state of the pulse pump, thereby realizing the control of the corresponding toilet function.

[0082] Reference Figure 6 In some embodiments, this application also provides a voltage detection method for use in a smart toilet as described in any of the above embodiments, the method including but not limited to steps S601 to S608.

[0083] Step S601: The main control module generates a test signal; wherein, the test signal is used to control the working state of the functional component to the test working state;

[0084] Step S602: The transformation module generates a test detection signal and sends the test detection signal to the main control module;

[0085] Step S603: The main control module sends the test working status and test detection signals to the external programming system for programming.

[0086] Step S604: The main control module obtains the voltage reference database burned by the external programming system; wherein, the voltage reference database is a voltage reference database generated by the external programming system based on the test working status, test detection signal, and mains test voltage;

[0087] Step S605: The main control module generates control signals according to the control instructions;

[0088] Step S606: The functional component switches its working state to the target working state according to the control signal;

[0089] Step S607: The transformation module generates the target detection signal;

[0090] Step S608: The main control module searches the voltage reference database based on the target detection signal and the target working status to obtain the target voltage.

[0091] In step S601 of some embodiments, the main control module generates a test signal, for example, referring to... Figures 3A to 3D This test signal is used to control the operating state of functional components such as stepper motors and pulse pumps, switching their operating states to corresponding test operating states. For example, switching to any of the following test operating states: neither the stepper motor nor the pulse pump is working, the pulse pump is working alone, the stepper motor is working alone, or both the stepper motor and the pulse pump are working simultaneously.

[0092] In step S602 of some embodiments, when the functional component is in any of the above-described test operating states, the conversion module generates a test detection signal using the method described in any of the above embodiments. Specifically, the second secondary winding generates a corresponding voltage through electromagnetic induction with the primary winding. This voltage is then rectified by the first conversion unit, etc., to generate a test detection signal at the third resistor R3 in the first conversion unit. The voltage detection AD port of the main control module obtains this test detection signal by being electrically connected to the third resistor R3.

[0093] In steps S603 to S604 of some embodiments, the main control module is communicatively connected to the external programming system. The main control module sends the test operating status and test detection signal to the external programming system through the communication connection port. When the functional component is in any of the above-mentioned test operating states, the test voltage is measured manually or otherwise to obtain the mains power, and this test voltage is sent to the external programming system via typing or communication transmission. The external programming system maps the corresponding test operating status, test voltage, and test detection signal to construct a voltage reference database.

[0094] In steps S605 to S606 of some embodiments, the user generates a control command to represent the selection of the corresponding toilet function via buttons, wireless control, or other means. The main control module 400 generates a corresponding control signal based on the control command to control the working state of the corresponding functional component, that is, to switch the functional component to the target working state, thereby controlling the smart toilet to switch to the corresponding toilet function. It is understood that the target working state and the test working state include the same types of working states. For example, when the functional component only includes a stepper motor and a pulse pump, the test working state includes any one of the following: neither the stepper motor nor the pulse pump is working; the pulse pump is working alone; the stepper motor is working alone; or both the stepper motor and the pulse pump are working simultaneously. Correspondingly, the target working state also includes any one of the following: neither the stepper motor nor the pulse pump is working; the pulse pump is working alone; the stepper motor is working alone; or both the stepper motor and the pulse pump are working simultaneously. It is understood that, according to the actual needs of the toilet function, the functional component, the test working state, and the target working state can also be adaptively adjusted, and this embodiment of the application does not specifically limit this.

[0095] In step S607 of some embodiments, under actual detection conditions, the transformation module generates a target detection signal according to the method described in any of the above embodiments.

[0096] In step S608 of some embodiments, the main control module searches the pre-programmed voltage reference database based on the target detection signal and the target working state to obtain the corresponding target voltage.

[0097] It is evident that the contents of the above-described smart toilet embodiments are all applicable to the embodiments of this voltage detection method. The specific functions implemented by this voltage detection method embodiment are the same as those of the above-described smart toilet embodiments, and the beneficial effects achieved are also the same as those achieved by the above-described smart toilet embodiments.

[0098] The embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments, and various changes can be made within the scope of knowledge possessed by those skilled in the art without departing from the spirit of the present invention. Furthermore, the embodiments of the present invention and the features thereof can be combined with each other unless otherwise specified.

Claims

1. A voltage detection circuit, characterized in that, include: An interface module is provided, which is used to connect to the mains power supply and to perform rectification on the mains power supply to obtain a rectified signal. A switching module, which is electrically connected to the interface module, is used to generate a conduction signal based on the rectified signal. A switching power supply, wherein the primary winding of the switching power supply is electrically connected to the interface module and the switching module respectively, and the secondary winding of the switching power supply is used to generate an original detection signal based on the conduction signal and the rectified signal; A conversion module is electrically connected to the secondary winding of the switching power supply. The conversion module includes a first conversion unit and a second conversion unit. The second conversion unit is used to generate a power supply signal based on the original detection signal, and the first conversion unit is used to perform a conversion operation on the original detection signal to obtain a target detection signal. The conversion operation includes rectification and filtering. The main control module is connected to the conversion module. The main control module is used to search a preset voltage reference database based on the target detection signal and the target working state of the functional components to obtain the target voltage of the mains power. The voltage reference database is generated by an external programming system based on the test working state, the test detection signal, and the test voltage of the mains power.

2. The voltage detection circuit according to claim 1, characterized in that, The secondary winding of the switching power supply includes a first sub-secondary winding, and the first conversion unit includes: The first diode, whose anode is electrically connected to the first sub-secondary winding, is used to rectify the original detection signal. A first capacitor, one end of which is electrically connected to the cathode of the first diode, and the other end of which is grounded; A first resistor, one end of which is electrically connected to one end of the first capacitor; A second resistor, one end of which is electrically connected to the other end of the first resistor, and the other end of which is electrically connected to the other end of the first capacitor; The third resistor has one end electrically connected to the connection node of the first resistor and the second resistor, and the other end electrically connected to the main control module. The second capacitor has one end electrically connected to the other end of the third resistor, and the other end of the second resistor is grounded. The second capacitor is used to filter the original detection signal after rectification to obtain the target detection signal.

3. The voltage detection circuit according to claim 2, characterized in that, The first transformation unit further includes: The second diode has one end electrically connected to one end of the third resistor, and the other end of the second diode is grounded.

4. The voltage detection circuit according to claim 2, characterized in that, The secondary winding of the switching power supply includes a second sub-secondary winding, and the second conversion unit includes: The third diode, wherein the anode of the third diode is electrically connected to the second sub-secondary winding; The third capacitor has one end electrically connected to the cathode of the third diode and the other end electrically connected to the second sub-secondary winding. A fourth diode, which is connected in parallel with the third diode; A fourth capacitor is connected in parallel with the third capacitor, and the fourth capacitor is used to generate the power supply signal based on the original detection signal.

5. The voltage detection circuit according to claim 1, characterized in that, The interface module includes: A fuse, the fuse being used for connection to mains power; A common-mode inductor, which is electrically connected to the fuse; A rectifier bridge, the input terminal of which is electrically connected to the common-mode inductor, is used to rectify the mains power. The fifth capacitor is electrically connected to the output terminal of the rectifier bridge, the switching module, and the switching power supply.

6. A smart toilet, characterized in that, include: The voltage detection circuit as described in any one of claims 1 to 5; A heating element is electrically connected to the main control module; wherein the main control module is used to search a preset power reference database according to the target voltage to obtain the target power, and the main control module is used to control the duty cycle of the heating element according to the target power.

7. The smart toilet according to claim 6, characterized in that, Also includes: A zero-crossing detection circuit is provided, which is electrically connected to the mains power supply and also electrically connected to the main control module. The zero-crossing detection circuit is used to generate a zero-crossing signal based on the mains power supply. The main control module is used to generate a function activation signal based on the zero-crossing signal. The function activation signal is used to activate at least one of the following toilet functions: water heating, seat heating, and fan heating.

8. The smart toilet according to claim 6, characterized in that, Also includes: A drive circuit is electrically connected to the main control module; wherein the main control module is further configured to generate control signals, and the drive circuit is configured to generate drive signals based on the control signals. The functional component includes a stepper motor, which is electrically connected to the drive circuit and is used to switch working states according to the drive signal. A spray gun, which is connected to the moving end of the stepper motor.

9. The smart toilet according to claim 8, characterized in that, The functional components also include: A pulse pump, which is electrically connected to the main control module, is used to switch operating states according to the control signal.

10. A voltage detection method, characterized in that, Applied to the smart toilet as described in any one of claims 6 to 9, the method comprises: The main control module generates a test signal; wherein the test signal is used to control the working state of the functional components to be a test working state; The transformation module generates a test detection signal and sends the test detection signal to the main control module; The main control module sends the test working status and the test detection signal to the external programming system for programming. The main control module acquires the voltage reference database burned by the external programming system; wherein, the voltage reference database is a voltage reference database generated by the external programming system based on the test working state, the test detection signal, and the test voltage of the mains power. The main control module generates control signals according to control commands; The functional component switches its operating state to the target operating state according to the control signal; The transformation module generates the target detection signal; The main control module searches the voltage reference database based on the target detection signal and the target operating status to obtain the target voltage.

Citation Information

Patent Citations

  • Mains supply high speed monitoring system for emergency lighting power source

    CN106199154A

  • Motor control method, system and equipment, car washer and computer storage medium

    CN114189197A

  • Electromechanical way of soybean milk and soybean milk machine

    CN205018851U