Intelligent toilet flap control circuit, method and intelligent toilet
By combining the current information reading module and the main control chip, the problems of incomplete lid opening and motor speed fluctuations in smart toilets have been solved, achieving precise control of the lid opening and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG LEHUA HOME FURNISHING CO LTD
- Filing Date
- 2023-06-16
- Publication Date
- 2026-07-14
AI Technical Summary
Existing smart toilet lid control systems suffer from installation errors and tolerances between the motor and the toilet lid, resulting in the lid not opening properly and causing motor speed fluctuations near the mechanical limit, which affects the user experience.
By employing a current information reading module and a main control chip, the current signal of the drive motor is read and a compensation signal is output when the current threshold is reached. Combined with a preset virtual position signal, the motor is started and stopped, thus achieving precise control of the flip cover.
Real-time compensation for angular deviations between the smart toilet lid hinge and drive motor improves the precision control of the lid position and enhances the user experience.
Smart Images

Figure CN116841226B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart toilet technology, and in particular to a smart toilet lid control circuit, method, and smart toilet. Background Technology
[0002] Smart toilets were initially developed for medical and elderly care purposes. Their hygiene function effectively reduces anal diseases and bacterial infections in all population groups, significantly decreasing the incidence of anorectal diseases. The massage function uses water of varying intensities to repeatedly wash the area, promoting blood circulation and facilitating bowel movements. Gesture control frees up users' hands, enhancing the user experience.
[0003] Currently, most smart toilet automatic lid-opening control systems on the market use DC motors with electronic systems for automatic control, combined with gesture microwave sensors to adjust the opening speed and angle of the toilet lid. The angle and position information of the lid is read by Hall effect sensors or encoders integrated inside the motor, and combined with the mechanical limit structure of the toilet seat, it controls the opening and closing of the toilet seat. However, because the motor and the toilet lid are connected by a shaft, and with long-term use, tolerances may develop between the toilet seat plate and the ceramic body during installation, requiring the toilet seat plate to rotate a certain angle for the electronic rotor position to be detected and fed back to the control system. This not only easily leads to the toilet lid not opening properly, but also causes significant motor speed fluctuations near the mechanical limit structure, affecting user experience.
[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this invention is to provide a smart toilet lid control circuit, method, and smart toilet, aiming to solve the technical problem that existing smart toilet lids fail to close properly, resulting in significant motor speed fluctuations near the mechanical limit, which affects user experience.
[0006] To achieve the above objectives, the present invention provides an intelligent toilet lid control circuit, which includes: a current information reading module, a main control chip, and a motor drive module;
[0007] The input terminal of the current information reading module is connected to the drive motor of the smart toilet, the output terminal of the current information reading module is connected to the input terminal of the main control chip, the input terminal of the motor drive module is connected to the output terminal of the main control chip, the output terminal of the motor drive module is connected to the drive motor, and the drive motor is connected to the smart toilet lid.
[0008] The current information reading module is used to read the current signal of the drive motor and send the current signal to the main control chip;
[0009] The main control chip is used to output a compensation signal to the motor drive module when the current signal reaches a preset current threshold.
[0010] The motor drive module is used to control the start and stop of the drive motor based on the compensation signal and the preset dummy signal, so as to control the opening and closing of the smart toilet lid.
[0011] Optionally, the current information reading module includes: a first current reading module and a second current reading module;
[0012] The input terminal of the first current reading module is connected to the flip-top drive motor of the smart toilet, the output terminal of the first current reading module is connected to the first input terminal of the main control chip, the input terminal of the second current reading module is connected to the seat drive motor of the smart toilet, and the output terminal of the second current reading module is connected to the second input terminal of the main control chip.
[0013] The first current reading module is used to read the first current signal of the flip-cover drive motor and send the first current signal to the main control chip;
[0014] The second current reading module is used to read the second current signal of the seat ring drive motor and send the second current signal to the main control chip;
[0015] The main control chip is also used to output a first compensation signal to the motor drive module to control the start and stop of the flip-cover drive motor when the first current signal reaches a preset current threshold.
[0016] The main control chip is also used to output a second compensation signal to the motor drive module to control the start and stop of the seat ring drive motor when the second current signal reaches a preset current threshold.
[0017] Optionally, both the first current reading module and the second current reading module include: an amplification submodule and a signal input submodule;
[0018] The input terminal of the signal input submodule is connected to the drive motor, the output terminal of the signal input submodule is connected to the input terminal of the amplification submodule, and the output terminal of the amplification submodule is connected to the main control chip.
[0019] The signal input submodule is used to read the current signal of the drive motor and send the current signal to the amplification submodule;
[0020] The amplification submodule is used to amplify the current signal when it is received, and send the amplified current signal to the main control chip.
[0021] Optionally, the amplification submodule includes: a differential amplification unit and a filtering unit;
[0022] The input terminal of the differential amplifier unit is connected to the output terminal of the signal input submodule, the output terminal of the differential amplifier unit is connected to one end of the filter unit, and the other end of the filter unit is connected to the main control chip.
[0023] The differential amplifier unit is used to amplify the current signal when it receives the current signal, and send the amplified current signal to the filter unit.
[0024] The filtering unit is used to filter the amplified current signal and send the filtered current signal to the main control chip.
[0025] Optionally, the differential amplifier unit includes: an operational amplifier, a first resistor, and a second resistor;
[0026] The non-inverting input terminal of the operational amplifier is connected to the non-inverting output terminal of the signal input submodule, and the inverting input terminal of the operational amplifier is connected to the inverting output terminal of the signal input submodule. One end of the first resistor is connected to the power supply, and the other end of the first resistor is connected to the non-inverting input terminal of the operational amplifier. One end of the second resistor is connected to the inverting input terminal of the operational amplifier, and the other end of the second resistor is connected to the output terminal of the operational amplifier. The output terminal of the operational amplifier is connected to the filtering unit.
[0027] The filtering unit includes: a third resistor and a first capacitor;
[0028] The first end of the third resistor is connected to the output of the operational amplifier, the second end of the third resistor is connected to the main control chip, one end of the first capacitor is connected to the second end of the third resistor, and the other end of the first capacitor is grounded.
[0029] Optionally, the signal input submodule includes: a fourth to an eighth resistor and a second capacitor;
[0030] The first end of the fourth resistor is connected to the drive motor; the second end of the fourth resistor is connected to the first end of the fifth resistor; the second end of the fifth resistor is connected to the non-inverting input of the operational amplifier; the first end of the second capacitor is connected to the second end of the fourth resistor; the second end of the second capacitor is connected to the first end of the sixth resistor; the second end of the sixth resistor is grounded; the first end of the seventh resistor is connected to the second end of the second capacitor; the second end of the seventh resistor is connected to the inverting input of the operational amplifier; one end of the eighth resistor is connected to the drive motor; and the other end of the eighth resistor is grounded.
[0031] Optionally, the smart toilet lid control circuit further includes: a location information reading module;
[0032] The first end of the position information reading module is connected to the position reference end of the motor drive module, and the second end of the position information reading module is connected to the position input end of the main control chip.
[0033] The position information reading module is used to read the preset virtual position signal of the drive motor and send the preset virtual position signal to the main control chip.
[0034] Optionally, the location information reading module includes: a third to a fifth capacitor, a ninth resistor, and a tenth resistor;
[0035] The first end of the ninth resistor is connected to the position reference terminal of the motor drive module, the second end of the ninth resistor is connected to the first end of the tenth resistor, the second end of the tenth resistor is connected to the position input terminal of the main control chip, the first end of the third capacitor is connected to the second end of the ninth resistor, the second end of the third capacitor is connected to the second end of the fourth capacitor, the first end of the fourth capacitor is connected to the second end of the tenth resistor, the second end of the fourth capacitor is connected to the second end of the fifth capacitor, the first end of the fifth capacitor is connected to the position input terminal of the main control chip, and the second end of the fifth capacitor is grounded.
[0036] Furthermore, to achieve the above objectives, the present invention also proposes a smart toilet lid control method, which is applied to a smart toilet and includes:
[0037] Read the current signal of the drive motor of the smart toilet and determine whether the current signal reaches a preset current threshold.
[0038] When the current signal reaches the preset current threshold, a compensation signal is generated;
[0039] The drive motor is started and stopped according to the compensation signal and the preset dummy signal, so as to control the opening and closing of the smart toilet lid.
[0040] In addition, to achieve the above objectives, the present invention also proposes a smart toilet, which includes the smart toilet lid control circuit as described above.
[0041] This invention proposes a smart toilet lid control circuit, comprising: a current information reading module, a main control chip, and a motor drive module. The input terminal of the current information reading module is connected to the drive motor of the smart toilet, and the output terminal of the current information reading module is connected to the input terminal of the main control chip. The input terminal of the motor drive module is connected to the output terminal of the main control chip, and the output terminal of the motor drive module is connected to the drive motor. The drive motor is connected to the smart toilet lid. The current information reading module reads the current signal of the drive motor and sends the current signal to the main control chip. The main control chip outputs a compensation signal to the motor drive module when the current signal reaches a preset current threshold. The motor drive module controls the start and stop of the drive motor based on the compensation signal and a preset false position signal to control the opening and closing of the smart toilet lid. This invention, through the compensation signal introduced by the current information reading module, compensates in real time for the angular deviation between the smart toilet lid hinge and the drive motor, achieving precise control of the lid position via the drive motor and improving the user experience. Attached Figure Description
[0042] Figure 1 This is a functional block diagram of the first embodiment of the intelligent toilet lid control circuit of the present invention;
[0043] Figure 2 This is a functional module diagram of the drive motor for controlling the intelligent toilet lid control circuit of the present invention in the first embodiment.
[0044] Figure 3 This is a functional block diagram of the second embodiment of the intelligent toilet lid control circuit of the present invention;
[0045] Figure 4 This is a circuit diagram of the current information reading module in the second embodiment of the intelligent toilet lid control circuit of the present invention;
[0046] Figure 5 This is a circuit diagram of the position information reading module in the second embodiment of the intelligent toilet lid control circuit of the present invention;
[0047] Figure 6 This is a flowchart illustrating the first embodiment of the intelligent toilet lid control method of the present invention;
[0048] Figure 7 This is a control logic diagram of the flip-top control method for an intelligent toilet in the first embodiment of the present invention.
[0049] Explanation of icon numbers:
[0050] label name label name 10 Current information reading module 20 Main control chip 30 Motor drive module 11 Signal Input Submodule 12 Amplification submodule 121 Differential amplifier unit 122 Filtering unit U1 operational amplifier R1-R10 Resistors 1 to 10 C1-C5 First to fifth capacitors
[0051] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0052] It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the invention.
[0053] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0054] It should be noted that all directional indications (such as up, down, near, far, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0055] Furthermore, the use of terms such as "first" and "second" in this invention is for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first" or "second" may explicitly or implicitly include at least one of that feature. Additionally, the technical solutions of the various embodiments can be combined with each other, but only on the basis of being achievable by those skilled in the art. When the combination of technical solutions is contradictory or impossible to implement, the user should consider such a combination of technical solutions to be non-existent and not within the scope of protection claimed by this invention.
[0056] This invention provides a smart toilet seat control circuit, referring to... Figure 1 , Figure 1 This is a functional block diagram of the first embodiment of the intelligent toilet lid control circuit of the present invention;
[0057] based on Figure 1 The first embodiment of the intelligent toilet lid control circuit of the present invention is presented.
[0058] In this embodiment, the intelligent toilet lid control circuit includes: a current information reading module 10, a main control chip 20, and a motor drive module 30;
[0059] The input terminal of the current information reading module 10 is connected to the drive motor of the smart toilet, the output terminal of the current information reading module 10 is connected to the input terminal of the main control chip 20, the output terminal of the main control chip 20 is connected to the input terminal of the motor drive module 30, the output terminal of the motor drive module 30 is connected to the drive motor, and the drive motor is connected to the smart toilet lid.
[0060] The current information reading module 10 is used to read the current signal of the drive motor and send the current signal to the main control chip.
[0061] It should be noted that the current information reading module is used to detect and read the operating current of the drive motor in the smart toilet. Traditional smart toilet lid motor control typically obtains lid position information through encoders or Hall effect sensors. However, the motor and toilet lid are connected by a shaft. Due to long-term use of the toilet lid and tolerances in the installation of the toilet seat and ceramic body, the toilet seat needs to rotate a certain angle for the electronic rotor position to be detected and fed back to the control system. This can easily lead to the toilet lid not fully opening, and significant motor speed fluctuations near the mechanical limit, affecting user experience. Therefore, the current information reading module in this embodiment can be introduced in conjunction with the circuit control system. The current signal introduced by the current information reading module is used for angle compensation, solving the problem of inaccurate speed and position control of the smart toilet lid under the influence of installation errors, size, and weight factors.
[0062] Understandably, to improve the accuracy of current signal reading, the current information reading module can also amplify the current signal through an operational amplifier, and this embodiment does not impose any restrictions on this.
[0063] The main control chip 20 is used to output a compensation signal to the motor drive module when the current signal reaches a preset current threshold.
[0064] Understandably, the main control chip is a MCU responsible for processing information such as flip motor control, current signals, and position signals.
[0065] It should be noted that the preset current threshold is a current threshold pre-set in the main control chip to determine whether the toilet seat and seat have reached a specified position. Generally, the drive motor of a smart toilet is connected to the toilet seat and seat via a rotating shaft, where the toilet seat and seat are reciprocating structures with mechanical limits. Due to the structural limits, when the smart toilet seat is almost at its maximum opening position, the motor resistance increases for a period of time, restricting the motor's movement. At this time, the motor movement fluctuates significantly. Therefore, compensation can be provided by using the current signal from the current information reading module to improve the speed and position control of the smart toilet seat and enhance the user experience. The preset current threshold can be determined based on a percentage of the seat position signal. For example, the current signal corresponding to 80% of the maximum limit is set as the threshold. The preset current threshold will vary depending on the structural limits, and this embodiment does not impose any restrictions on this.
[0066] The motor drive module 30 is used to control the start and stop of the drive motor based on the compensation signal and the preset virtual position signal, so as to control the opening and closing of the smart toilet lid.
[0067] It should be noted that the compensation signal is a compensation signal generated based on the current signal to stabilize the control of the drive motor. The compensation signal can be used to compensate for the angle of the drive motor, thus solving the problem of inaccurate control of the speed and position of the smart toilet lid under the influence of installation errors, size and weight factors.
[0068] Understandably, the preset virtual position signal is a reference signal stored in the main control chip to control the drive motor to the limit position.
[0069] It should be understood that the motor drive module is used to control the drive motor based on the compensation signal and the preset virtual position signal. The motor drive module can control the drive motor using feedforward control + PID loop control. In specific implementation, when the smart toilet seat is powered on for the first time, a complete opening and closing control of the toilet seat reads the rotor position information of the drive motor and stores it as the current preset virtual position signal for use in feedforward loop control. Then, through the compensation signal introduced by the onboard current information reading module, dynamic angle compensation is performed on the drive motor during the lid-opening control process.
[0070] Furthermore, the intelligent toilet lid control circuit of this embodiment may also include a communication module, a position information reading module, and a power module. The communication module is used for communication parsing and for communication between the main control chip and other control modules. The position information reading module is used to read and parse the position information of the drive motor responsible for the lid opening. The power module is used to provide power to the entire control system. Other auxiliary function modules may also be included, but this embodiment does not limit this.
[0071] Furthermore, considering that a smart toilet includes not only control of the toilet lid but also control of the toilet seat, in this embodiment, referring to... Figure 2 , Figure 2 This is a functional block diagram of the intelligent toilet lid control circuit of the present invention for controlling the drive motor. The current information reading module includes: a first current reading module and a second current reading module.
[0072] The input terminal of the first current reading module is connected to the flip-top drive motor of the smart toilet, the output terminal of the first current reading module is connected to the first input terminal of the main control chip, the input terminal of the second current reading module is connected to the seat drive motor of the smart toilet, and the output terminal of the second current reading module is connected to the second input terminal of the main control chip.
[0073] The first current reading module is used to read the first current signal of the flip-cover drive motor and send the first current signal to the main control chip;
[0074] The second current reading module is used to read the second current signal of the seat ring drive motor and send the second current signal to the main control chip;
[0075] The main control chip is also used to output a first compensation signal to the motor drive module to control the start and stop of the flip-cover drive motor when the first current signal reaches a preset current threshold.
[0076] The main control chip is also used to output a second compensation signal to the motor drive module to control the start and stop of the seat ring drive motor when the second current signal reaches a preset current threshold.
[0077] It should be noted that the first current reading module is used for real-time detection and reading of the current signal of the flip cover drive motor. The second current reading module is used for real-time detection and reading of the current signal of the seat ring drive motor.
[0078] In its implementation, when the smart toilet seat is powered on for the first time, a complete opening and closing control of the toilet seat and seat ring allows for the reading of the rotor position information of the respective flip-top drive motor and seat ring drive motor, which is then stored as their respective preset virtual position signals. At this time, through the first and second compensation signals introduced by the first and second current reading modules, dynamic angle compensation is performed on the drive motors corresponding to the flip-top and seat ring during the flip-top control process, improving the precision control of the speed and position of the smart toilet seat and seat ring.
[0079] This embodiment proposes a smart toilet lid control circuit, which includes: a current information reading module, a main control chip, and a motor drive module. The input terminal of the current information reading module is connected to the drive motor of the smart toilet, and the output terminal of the current information reading module is connected to the input terminal of the main control chip. The input terminal of the motor drive module is connected to the output terminal of the main control chip, and the output terminal of the motor drive module is connected to the drive motor. The drive motor is connected to the smart toilet lid. The current information reading module is used to read the current signal of the drive motor and send the current signal to the main control chip. The main control chip is used to output a compensation signal to the motor drive module when the current signal reaches a preset current threshold. The motor drive module is used to control the start and stop of the drive motor based on the compensation signal and a preset dummy signal to control the opening and closing of the smart toilet lid. When the smart toilet seat is powered on for the first time, a complete opening and closing control cycle can be performed to read the rotor position information of the drive motor and store it as the current preset virtual position signal for use in feedforward loop control. Then, through a compensation signal introduced by the onboard current information reading module, dynamic angle compensation is performed on the drive motor during the lid-opening control process. In this embodiment, the compensation signal introduced by the current information reading module compensates for the angular deviation between the smart toilet lid hinge and the drive motor in real time, achieving precise control of the lid position through the drive motor and improving the user experience.
[0080] Reference Figure 3 , Figure 3 This is a functional block diagram of the second embodiment of the intelligent toilet lid control circuit of the present invention.
[0081] Based on the first embodiment described above, and considering the accuracy of the first current reading module and the second current reading module, in this embodiment, as follows: Figure 3 As shown, both the first current reading module and the second current reading module include: an amplification submodule 12 and a signal input submodule 11;
[0082] The input terminal of the signal input submodule 11 is connected to the drive motor, the output terminal of the signal input submodule 11 is connected to the input terminal of the amplification submodule 12, and the output terminal of the amplification submodule 12 is connected to the main control chip 20.
[0083] The signal input submodule 11 is used to read the current signal of the drive motor and send the current signal to the amplification submodule 12;
[0084] The amplification submodule 12 is used to amplify the current signal when it is received, and send the amplified current signal to the main control chip 20.
[0085] It should be noted that the signal input submodule is a detection module used to read the magnitude of the current flowing through the drive motor during operation. The amplification submodule is a module used to amplify the detected drive motor operating current.
[0086] In the specific implementation, the signal input submodule reads the current signal of the drive motor in real time and sends the current signal to the amplification submodule. When the amplification submodule receives the current signal, it amplifies the current signal to a certain extent and sends the amplified current signal to the main control chip. The main control chip introduces a compensation signal based on the amplified current signal and dynamically compensates the angle of the drive motor during the flip-cover control process, thereby improving the precise control of the drive motor position.
[0087] Furthermore, considering the stability of the amplified current signal output, in this embodiment, as... Figure 3 As shown, the amplification submodule 12 includes: a differential amplification unit 121 and a filtering unit 122;
[0088] The input terminal of the differential amplifier unit 121 is connected to the output terminal of the signal input submodule 11, the output terminal of the differential amplifier unit 121 is connected to one end of the filter unit 122, and the other end of the filter unit 122 is connected to the main control chip 20.
[0089] The differential amplifier unit 121 is used to amplify the current signal when it receives the current signal, and send the amplified current signal to the filter unit 122.
[0090] The filtering unit 122 is used to filter the amplified current signal and send the filtered current signal to the main control chip 20.
[0091] It should be noted that the differential amplifier unit is used to amplify the detected operating current of the drive motor. The filter unit is a module used to improve the signal's anti-interference ability and signal-to-noise ratio by filtering out unwanted frequency components, thereby improving the accuracy of the output signal.
[0092] In the specific implementation, the differential amplifier unit amplifies the current signal when it receives it, and sends the amplified current signal to the filter unit; the filter unit filters the amplified current signal to improve the signal's anti-interference ability and signal-to-noise ratio, and sends the filtered current signal to the main control chip.
[0093] Furthermore, referring to Figure 4 , Figure 4This is a circuit diagram of the current information reading module in the second embodiment of the intelligent toilet lid control circuit of the present invention. In this embodiment, the differential amplifier unit 121 includes: an operational amplifier U1, a first resistor R1, and a second resistor R2;
[0094] The non-inverting input terminal of the operational amplifier U1 is connected to the non-inverting output terminal of the signal input submodule 11, and the inverting input terminal of the operational amplifier U1 is connected to the inverting output terminal of the signal input submodule 11. One end of the first resistor R1 is connected to the power supply (Vref), and the other end of the first resistor R1 is connected to the non-inverting input terminal of the operational amplifier U1. One end of the second resistor R2 is connected to the inverting input terminal of the operational amplifier U1, and the other end of the second resistor R2 is connected to the output terminal of the operational amplifier U1. The output terminal of the operational amplifier U1 is connected to the filter unit 122.
[0095] The filter unit 122 includes: a third resistor R3 and a first capacitor C1;
[0096] The first end of the third resistor R3 is connected to the output terminal of the operational amplifier U1, the second end of the third resistor R3 is connected to the main control chip 20, one end of the first capacitor C1 is connected to the second end of the third resistor R3, and the other end of the first capacitor C1 is grounded.
[0097] It should be understood that the specification of the first capacitor can be 100pF / 50V, and can be adjusted according to the actual situation. This embodiment does not limit this.
[0098] It should be noted that the power supply terminal of the operational amplifier can be connected to an external power supply VCC, such as 3.3V, and this embodiment does not impose any restrictions on this.
[0099] Furthermore, in this embodiment, as Figure 4 As shown, the signal input submodule 11 includes: fourth to eighth resistors (R4-R8) and a second capacitor C2;
[0100] The first end of the fourth resistor R4 is connected to the drive motor. The second end of the fourth resistor R4 is connected to the first end of the fifth resistor R5. The second end of the fifth resistor R5 is connected to the non-inverting input of the operational amplifier U1. The first end of the second capacitor C2 is connected to the second end of the fourth resistor R4. The second end of the second capacitor C2 is connected to the first end of the sixth resistor R6. The second end of the sixth resistor R6 is grounded. The first end of the seventh resistor R7 is connected to the second end of the second capacitor C2. The second end of the seventh resistor R7 is connected to the inverting input of the operational amplifier U1. One end of the eighth resistor R8 is connected to the drive motor. The other end of the eighth resistor R8 is grounded.
[0101] It should be noted that the eighth resistor is grounded, which can be used to divide the current signal of the drive motor, thereby improving the safety of the smart toilet.
[0102] For ease of understanding, the amplification current of the amplification submodule and the signal input submodule will be used as an example, but this does not limit the scope of this solution. Figure 4 The circuit schematic shown shows that the current operating current of the drive motor is obtained through real-time detection by the signal input submodule and signal amplification by the amplification submodule. The output current can be obtained as Iseat * 0.02 * Amp + Vref, where Amp is the amplification factor of the operational amplifier. A compensation signal is introduced based on the amplified current signal to perform dynamic angle compensation on the drive motor during the flip control process, so as to improve the precise control of the flip position and speed.
[0103] Furthermore, considering the reference position of the smart toilet lid, in this embodiment, as... Figure 3 As shown, the intelligent toilet lid control circuit also includes: a position information reading module 40;
[0104] The first end of the position information reading module 40 is connected to the position reference end of the motor drive module 30, and the second end of the position information reading module 40 is connected to the position input end of the main control chip 20;
[0105] The position information reading module 40 is used to read the preset virtual position signal of the drive motor and send the preset virtual position signal to the main control chip 20.
[0106] It should be noted that the position information reading module is responsible for reading and parsing the position information of the drive motor of the lid-opening mechanism. When the smart toilet seat is powered on for the first time, a complete opening and closing control cycle is performed to read the rotor position information of the drive motor and store it as the current preset virtual position signal for use in the feedforward loop control. Then, through a compensation signal introduced by the onboard current information reading module, dynamic angle compensation is performed on the drive motor during the lid-opening control process to improve the precision control of the lid's position and speed.
[0107] Further, refer to Figure 5 , Figure 5 This is a circuit diagram of the position information reading module in the second embodiment of the intelligent toilet lid control circuit of the present invention. In this embodiment, the position information reading module 40 includes: third to fifth capacitors (C3-C5), ninth resistor R9, and tenth resistor R10;
[0108] The first end of the ninth resistor R9 is connected to the position reference terminal of the motor drive module 30. The second end of the ninth resistor R9 is connected to the first end of the tenth resistor R10. The second end of the tenth resistor R10 is connected to the position input terminal of the main control chip 20. The first end of the third capacitor C3 is connected to the second end of the ninth resistor R9. The second end of the third capacitor C3 is connected to the second end of the fourth capacitor C4. The first end of the fourth capacitor C4 is connected to the second end of the tenth resistor R10. The second end of the fourth capacitor C4 is connected to the second end of the fifth capacitor C5. The first end of the fifth capacitor C5 is connected to the position input terminal of the main control chip 20. The second end of the fifth capacitor C5 is grounded.
[0109] It should be noted that the principle behind this system is to detect the rotor position of the drive motor by utilizing changes in capacitance and resistance. In a capacitive sensor, as the rotor position of the drive motor continuously changes, moving closer to or further away from the capacitor, the object alters the capacitance value, thereby changing the voltage and current in the circuit. By measuring the changes in voltage and current in the circuit, a preset false position signal of the drive motor can be detected in real time.
[0110] In this embodiment, the signal input submodule reads the current signal of the drive motor in real time and sends it to the amplification submodule. Upon receiving the current signal, the amplification submodule amplifies it to a certain extent and sends the amplified signal to the main control chip. The main control chip introduces a compensation signal based on the amplified current signal to dynamically compensate the angle of the drive motor during the lid-opening control process, thereby improving the precise control of the drive motor's position. Furthermore, the differential amplification unit amplifies the current signal upon receiving it and sends the amplified signal to the filtering unit. The filtering unit filters the amplified current signal to improve its anti-interference capability and signal-to-noise ratio, and then sends the filtered current signal to the main control chip. Further, when the smart toilet seat is powered on for the first time, a complete toilet seat opening and closing control is performed. The position information reading module reads the rotor position information of the drive motor and stores it as the current preset virtual position signal for feedforward loop control. Then, through the compensation signal introduced by the current information reading module, the angle of the drive motor is dynamically compensated during the lid-opening control process to improve the precise control of the lid's position and speed.
[0111] To achieve the above objectives, the present invention also proposes a smart toilet lid control method, referring to... Figure 6 , Figure 6 This is a flowchart illustrating the first embodiment of the intelligent toilet lid control method of the present invention. Figure 6 As shown, the smart toilet lid control method is applied to a smart toilet, and the smart toilet lid control method includes:
[0112] Step S10: Read the current signal of the drive motor of the smart toilet and determine whether the current signal reaches the preset current threshold.
[0113] It should be noted that the execution subject of the method in this embodiment can be a device with current reading and drive motor control, such as a smart toilet. Here, the smart toilet lid control method of this embodiment will be specifically described using a smart toilet as an example.
[0114] Understandably, traditional smart toilet seat motor control typically uses encoders or Hall effect sensors to obtain the seat position information. However, the motor and toilet seat are connected by a shaft. Due to long-term use and tolerances in the installation of the toilet seat and ceramic body, the toilet seat needs to rotate a certain angle for the electronic rotor position to be detected and fed back to the control system. This can easily lead to the toilet seat not fully opening, and significant motor speed fluctuations near the mechanical limit, affecting user experience. Therefore, current signals can be introduced for angle compensation to solve the problem of inaccurate speed and position control of the smart toilet seat under the influence of installation errors, size, and weight factors.
[0115] Step S20: When the current signal reaches the preset current threshold, a compensation signal is generated.
[0116] It should be noted that the preset current threshold is a current threshold pre-set in the smart toilet to determine whether the toilet seat and seat ring have reached a designated position. Generally, the drive motor of a smart toilet is connected to the toilet seat and seat ring via a rotating shaft, where the toilet seat and seat ring are reciprocating structures with mechanical limits. Due to the structural limits, when the smart toilet seat is almost at its maximum opening position, the motor resistance increases for a period of time, restricting the motor's movement, resulting in significant fluctuations in motor movement. Therefore, compensation can be provided by real-time detection of the current signal to improve the speed and position control of the smart toilet seat opening and closing, thereby enhancing the user experience. The preset current threshold can be determined based on a percentage of the opening position signal. For example, the current signal corresponding to 80% of the maximum limit opening is set as the threshold. Depending on the structural limits, the preset current threshold will also vary, and this embodiment does not impose any limitations on this.
[0117] Understandably, by detecting the operating current of the drive motor in real time, when the motor's position information does not change, it is possible to indirectly determine whether the flip motor has reached the designated position by judging whether the current operating current exceeds the preset current threshold.
[0118] Step S30: Control the start and stop of the drive motor according to the compensation signal and the preset virtual position signal to control the opening and closing of the smart toilet lid.
[0119] It should be noted that the compensation signal is a compensation signal generated based on the current signal to stabilize the control of the drive motor. The compensation signal can be used to compensate for the angle of the drive motor, thus solving the problem of inaccurate control of the speed and position of the smart toilet lid under the influence of installation errors, size and weight factors.
[0120] Understandably, the preset virtual position signal is a stored reference signal used to control the drive motor to the limit position.
[0121] In its implementation, when the smart toilet seat is powered on for the first time, a complete opening and closing control of the toilet seat is performed to read the rotor position information of the drive motor and store it as the current preset virtual position signal for use in the feedforward loop control. Then, through the compensation signal introduced by the onboard current information reading module, the angle of the drive motor is dynamically compensated during the lid-opening control process.
[0122] Furthermore, if the position information output of the flip cover remains unchanged, there may be a variety of factors. In order to determine whether the drive motor is in position, if the flip angle of the motor is less than the minimum angle designed for the cover, the position judgment may not be performed.
[0123] For ease of understanding, the explanation uses the flip-top control process as an example, but does not limit the scope of this solution. (Reference) Figure 7 , Figure 7 This is a control logic diagram for the smart toilet lid control method in the first embodiment of the present invention. When controlling the smart toilet lid, the position information of the lid-opening motor is read in real time, and the current information Ia of the lid-opening motor is also read in real time. During this process, the lid-opening motor is continuously controlled to move towards the set position and a timer is started. At this point, it is determined whether the current Ia is greater than a preset current threshold. If so, the lid-opening motor control is stopped, and the current lid-opening angle information is stored. If not, that is, when the current Ia is less than the preset current threshold, it is determined whether the duration of the lid-opening movement exceeds Tmax. If the duration exceeds Tmax, the lid-opening motor control is stopped, and the current lid-opening angle information is stored. If the duration does not exceed Tmax, the lid-opening motor continues to move towards the set position and the timer continues, and the current Ia is again determined to be greater than the preset current threshold to stop the lid-opening motor control.
[0124] This embodiment reads the current signal of the smart toilet's drive motor and determines whether the current signal reaches a preset current threshold. When the current signal reaches the preset current threshold, a compensation signal is generated. Finally, the drive motor is started and stopped according to the compensation signal and a preset dummy position signal to control the opening and closing of the smart toilet lid. Specifically, when the smart toilet lid is powered on for the first time, a complete opening and closing control of the toilet lid can be performed to read the rotor position information of the drive motor and store it as the current preset dummy position signal for feedforward loop control. Then, through the compensation signal introduced by the onboard current information reading module, the angle of the drive motor is dynamically compensated during the lid opening control process. This embodiment, through the compensation signal introduced by the current information reading module, compensates for the angular deviation between the smart toilet lid hinge and the drive motor in real time, realizing precise control of the lid position through the drive motor and improving the user experience.
[0125] To achieve the above objectives, the present invention also proposes a smart toilet, which includes the smart toilet lid control circuit described above. The specific structure of this smart toilet lid control circuit is as described in the above embodiments. Since this smart toilet adopts all the technical solutions of all the above embodiments, it possesses at least all the beneficial effects brought about by the technical solutions of the above embodiments, which will not be elaborated upon here.
[0126] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0127] The above are merely preferred embodiments of the present invention and do not limit the patent scope of the present invention. Any equivalent structural or procedural transformations made based on the content of the present invention's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. An intelligent toilet lid control circuit, characterized by, The intelligent toilet lid control circuit includes: a current information reading module, a main control chip, and a motor drive module; The input terminal of the current information reading module is connected to the drive motor of the smart toilet, the output terminal of the current information reading module is connected to the input terminal of the main control chip, the input terminal of the motor drive module is connected to the output terminal of the main control chip, the output terminal of the motor drive module is connected to the drive motor, and the drive motor is connected to the smart toilet lid. The current information reading module is used to read the current signal of the drive motor and send the current signal to the main control chip; The main control chip is used to output a compensation signal to the motor drive module when the current signal reaches a preset current threshold. The motor drive module is used to start and stop the drive motor based on the compensation signal and the preset virtual position signal, so as to control the opening and closing of the smart toilet lid; The motor drive module is also used to read the rotor position information of the drive motor when it reaches the limit position by controlling the opening and closing of the smart toilet seat when it is first powered on, and to store the rotor position information as the preset virtual position signal. The motor drive module is also used to control the start and stop of the drive motor through a feedforward loop based on the compensation signal and the preset dummy signal, so as to dynamically compensate the angle of the drive motor during the opening and closing of the smart toilet lid.
2. The intelligent toilet lid control circuit of claim 1, wherein, The current information reading module includes: a first current reading module and a second current reading module; The input terminal of the first current reading module is connected to the flip-top drive motor of the smart toilet, the output terminal of the first current reading module is connected to the first input terminal of the main control chip, the input terminal of the second current reading module is connected to the seat drive motor of the smart toilet, and the output terminal of the second current reading module is connected to the second input terminal of the main control chip. The first current reading module is used to read the first current signal of the flip-cover drive motor and send the first current signal to the main control chip; The second current reading module is used to read the second current signal of the seat ring drive motor and send the second current signal to the main control chip; The main control chip is also used to output a first compensation signal to the motor drive module to control the start and stop of the flip-cover drive motor when the first current signal reaches a preset current threshold. The main control chip is also used to output a second compensation signal to the motor drive module to control the start and stop of the seat ring drive motor when the second current signal reaches a preset current threshold.
3. The intelligent toilet lid control circuit of claim 2, wherein, Both the first current reading module and the second current reading module include: an amplification submodule and a signal input submodule; The input terminal of the signal input submodule is connected to the drive motor, the output terminal of the signal input submodule is connected to the input terminal of the amplification submodule, and the output terminal of the amplification submodule is connected to the main control chip. The signal input submodule is used to read the current signal of the drive motor and send the current signal to the amplification submodule; The amplification submodule is used to amplify the current signal when it is received, and send the amplified current signal to the main control chip.
4. The intelligent toilet lid control circuit of claim 3, wherein, The amplification submodule includes: a differential amplification unit and a filtering unit; The input terminal of the differential amplifier unit is connected to the output terminal of the signal input submodule, the output terminal of the differential amplifier unit is connected to one end of the filter unit, and the other end of the filter unit is connected to the main control chip. The differential amplifier unit is used to amplify the current signal when it receives the current signal, and send the amplified current signal to the filter unit. The filtering unit is used to filter the amplified current signal and send the filtered current signal to the main control chip.
5. The intelligent toilet lid control circuit of claim 4, wherein, The differential amplifier unit includes: an operational amplifier, a first resistor, and a second resistor; The non-inverting input terminal of the operational amplifier is connected to the non-inverting output terminal of the signal input submodule, and the inverting input terminal of the operational amplifier is connected to the inverting output terminal of the signal input submodule. One end of the first resistor is connected to the power supply, and the other end of the first resistor is connected to the non-inverting input terminal of the operational amplifier. One end of the second resistor is connected to the inverting input terminal of the operational amplifier, and the other end of the second resistor is connected to the output terminal of the operational amplifier. The output terminal of the operational amplifier is connected to the filtering unit. The filtering unit includes: a third resistor and a first capacitor; The first end of the third resistor is connected to the output of the operational amplifier, the second end of the third resistor is connected to the main control chip, one end of the first capacitor is connected to the second end of the third resistor, and the other end of the first capacitor is grounded.
6. The intelligent toilet lid control circuit of claim 5, wherein, The signal input submodule includes: fourth to eighth resistors and a second capacitor; The first end of the fourth resistor is connected to the drive motor; the second end of the fourth resistor is connected to the first end of the fifth resistor; the second end of the fifth resistor is connected to the non-inverting input of the operational amplifier; the first end of the second capacitor is connected to the second end of the fourth resistor; the second end of the second capacitor is connected to the first end of the sixth resistor; the second end of the sixth resistor is grounded; the first end of the seventh resistor is connected to the second end of the second capacitor; the second end of the seventh resistor is connected to the inverting input of the operational amplifier; one end of the eighth resistor is connected to the drive motor; and the other end of the eighth resistor is grounded.
7. The intelligent toilet lid control circuit of claim 6, wherein, The intelligent toilet lid control circuit also includes: a location information reading module; The first end of the position information reading module is connected to the position reference end of the motor drive module, and the second end of the position information reading module is connected to the position input end of the main control chip. The position information reading module is used to read the preset virtual position signal of the drive motor and send the preset virtual position signal to the main control chip.
8. The intelligent toilet lid control circuit of claim 7, wherein, The location information reading module includes: third to fifth capacitors, a ninth resistor, and a tenth resistor; The first end of the ninth resistor is connected to the position reference terminal of the motor drive module, the second end of the ninth resistor is connected to the first end of the tenth resistor, the second end of the tenth resistor is connected to the position input terminal of the main control chip, the first end of the third capacitor is connected to the second end of the ninth resistor, the second end of the third capacitor is connected to the second end of the fourth capacitor, the first end of the fourth capacitor is connected to the second end of the tenth resistor, the second end of the fourth capacitor is connected to the second end of the fifth capacitor, the first end of the fifth capacitor is connected to the position input terminal of the main control chip, and the second end of the fifth capacitor is grounded.
9. A method for controlling the flip-top of an intelligent toilet seat, characterized in that, The intelligent toilet lid control method is applied to an intelligent toilet, and the intelligent toilet lid control method includes: Read the current signal of the drive motor of the smart toilet and determine whether the current signal reaches a preset current threshold. When the current signal reaches the preset current threshold, a compensation signal is generated; The drive motor is started and stopped according to the compensation signal and the preset virtual position signal, so as to control the opening and closing of the smart toilet lid; The step of controlling the start and stop of the drive motor according to the compensation signal and the preset dummy signal to control the opening and closing of the smart toilet lid includes: When the smart toilet seat is powered on for the first time, the opening and closing of the smart toilet seat is controlled to read the rotor position information when the drive motor reaches the limit position, and the rotor position information is stored as a preset virtual position signal; Based on the compensation signal and the preset dummy position signal, the start and stop of the drive motor are controlled through a feedforward loop to dynamically compensate the angle of the drive motor during the opening and closing of the smart toilet lid.
10. A smart toilet, characterized in that, The smart toilet includes the smart toilet lid control circuit as described in any one of claims 1 to 8.