Switching power supply circuit, intelligent toilet seat circuit system and intelligent bathroom equipment
Through the modularly designed switching power supply circuit, the KP3114SG chip is used to realize the highly integrated power conversion of intelligent toilet seat circuit system and intelligent bathroom equipment, solving the problems of complex circuit structure, large size, heat dissipation and poor safety in the existing technology, and providing multi-mode topology support and low power consumption characteristics.
Patent Information
- Application Number
- CN202510632290.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-15
- Publication Date
- 2025-08-15
AI Technical Summary
The existing smart toilet seat circuit system and smart bathroom equipment have complex structures, large size, serious heat dissipation problems, high maintenance costs, and traditional solutions are difficult to meet the compact structure and safety requirements.
The switch power circuit with a modular design is adopted, including an input protection module, an input rectification and filter module, a control module, a feedback adjustment module and an output module. It uses the KP3114SG chip to achieve high voltage integration, supports multi-mode control and intelligent protection, and combines glass fiber substrate heat dissipation to simplify peripheral devices and reduce the number of components by 65%.
It realizes high integration of power conversion, solves the problems of large size, low efficiency and poor safety, has multi-mode topology support, adapts to complex voltage scenarios, reduces bill of materials costs, and provides ultra-low voltage input and no-load low power consumption characteristics.
Smart Images

Figure CN120498250A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of application of power electronics technology in intelligent bathroom equipment, and in particular to a switching power supply circuit and an intelligent toilet seat circuit system. Background Art
[0002] Existing smart toilet seat circuit systems and other smart bathroom fixtures have complex switching power supply circuit structures. Traditional solutions require a combination of multiple discrete components (such as transformers, rectifier bridges, and filter capacitors), leading to various problems. For example, the need for multiple discrete components (such as transformers, rectifier bridges, and filter capacitors) makes PCB layout difficult; the discrete design is too large to meet the compact installation requirements of smart toilets; there are heat dissipation issues, as high-power transformers generate high temperatures during operation, posing a safety hazard; and high maintenance costs, as damage to a single component requires the entire power system to be replaced.
[0003] Some specific switching power supply circuits of existing smart bathroom equipment, such as the flyback topology, rely on a high-frequency transformer and feedback loop, resulting in high circuit complexity; another example is the resistor-capacitor step-down solution, which is usually only suitable for low-power scenarios and poses the risk of electric shock and low efficiency. Summary of the Invention
[0004] Based on the deficiencies of existing related methods, the present invention proposes a switching power supply circuit, comprising: an input protection module, which is used to electrically connect a power input line and includes a current protection element and a voltage protection element; an input rectification and filtering module, which is electrically connected to the input protection module and includes an input rectification unit and an input filtering unit; a control module, which is electrically connected to the input rectification and filtering module and includes a control chip and a freewheeling unit, and the freewheeling unit includes a freewheeling diode, a freewheeling inductor and a freewheeling filter capacitor; a feedback regulation module, which is electrically connected to the control module and includes a sampling unit and a feedback filtering unit; and an output module, which is electrically connected to the control module and includes a load regulation unit.
[0005] Furthermore, the sampling unit of the feedback regulation module includes a first sampling resistor and a second sampling resistor connected in series.
[0006] Furthermore, the switching power supply circuit also includes an input feedback module, which includes an input detection resistor and a comparator. The input detection resistor is electrically connected between the input rectification and filtering module and the voltage input pin of the control chip. The front end of the input detection resistor is electrically connected to the front end of the first sampling resistor, the rear end of the second sampling resistor is electrically connected to the non-inverting input end of the comparator, the rear end of the input detection resistor is electrically connected to the inverting input end of the comparator, the output end of the comparator is electrically connected to the feedback pin of the control chip, and the comparator is electrically connected to the reference voltage.
[0007] Furthermore, the control chip is a KP3114SG chip.
[0008] Furthermore, the input filtering unit of the input rectification and filtering module adopts a π-type filtering circuit unit, and the π-type filtering circuit unit includes a first electrolytic capacitor, a second electrolytic capacitor and an input filtering inductor.
[0009] Furthermore, the input rectification unit of the input rectification and filtering module includes two protection diodes and a safety capacitor connected in series.
[0010] Furthermore, the output module includes an output filter inductor and an output differential mode inductor.
[0011] The present invention also provides an intelligent toilet seat circuit system, comprising the switching power supply circuit described above.
[0012] Furthermore, the intelligent toilet seat circuit system also includes at least one of the following modules: a control processing module, a burning interface module, a sensor signal acquisition and control module, a button control module and a seat control circuit module.
[0013] The present invention also provides an intelligent bathroom device, comprising the switching power supply circuit described above.
[0014] The switching power supply circuit provided by the present invention adopts a modular design with a high degree of integration, realizing a power conversion device (power conversion circuit) for converting strong electricity (220V AC) to weak electricity (DC low voltage). It is particularly suitable for scenarios with high requirements on space utilization and power safety, such as smart toilet seat (heating) circuit systems and smart bathroom equipment.
[0015] In the switching power supply circuit provided by the present invention, the control chip U2 adopts the KP3114SG chip, which integrates seven major functional modules on a single chip, has a built-in 700V withstand voltage MOSFET and a high-voltage startup circuit, simplifies peripheral devices, and can reduce the number of components by 65%. It achieves high-voltage integration, multi-mode control (supporting flyback / buck / boost-boost topologies, and switching frequency adaptive load changes, for example, supporting a maximum frequency of 30kHz), intelligent protection (integrated overload protection (OLP), cycle-by-cycle current limiting (OCP), overvoltage protection (OVP), overtemperature protection (OTP), and self-recovery function), and energy efficiency optimization (dynamic frequency regulation: automatically reduces the switching frequency under light load, with no-load power consumption less than 100mW; peak current adaptation: dynamically adjusts the current detection threshold according to the load to improve light-load efficiency). In addition, the chip structure has other advantages (compact packaging: adopts an SOP-8 package with a size of 5mm×6mm×1.75mm, compatible with PCB patch processing; heat dissipation optimization: the chip's internal overtemperature protection point is set to 150°C, combined with a glass fiber substrate for heat dissipation). Therefore, the entire circuit solution can further solve the problems of large size, low efficiency, and poor safety of traditional solutions, provide multi-mode topology support, and have ultra-low voltage input (>20V, that is, as long as the voltage is greater than 20V, the chip can work normally, meeting normal use in various countries without the need for a voltage converter) and low no-load power consumption (<100mW).
[0016] In another switching power supply circuit provided by the present invention, the input feedback module reuses part of the circuit structure of the original feedback module of the switching power supply circuit, ensuring that the signal output by comparator CM effectively affects the voltage of feedback pin FB while not affecting the feedback mechanism during normal operation of the chip. This structural design enables multiple overcurrent protection functions to be implemented using feedback pin FB without relying on the dedicated overcurrent protection pin of control chip U2, providing additional protection measures for the circuit and achieving multiple safeguards. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 1 is a schematic diagram of a switching power supply circuit provided by an embodiment of the present invention; Figure 2 is a schematic diagram of a switching power supply circuit provided by another embodiment of the present invention; Figure 3 is a schematic diagram of a switching power supply circuit provided by another embodiment of the present invention; Figure 4 1 is a circuit diagram of a control processing module provided by an embodiment of the present invention; Figure 5 This is a circuit diagram of a programming interface module provided by an embodiment of the present invention; Figure 6 This is a circuit diagram of a sensor signal acquisition and control module provided by an embodiment of the present invention; Figure 7 This is a circuit diagram of a key control module provided by an embodiment of the present invention; Figure 8 1 is a circuit diagram of a seat control circuit module provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0019] The embodiment of the present invention provides a switching power supply circuit, please refer to Figure 1 .
[0020] The switching power supply circuit of this embodiment includes an input protection module (not labeled), an input rectification and filtering module (not labeled), a control module (not labeled), a feedback regulation module (not labeled) and an output module (not labeled).
[0021] The input protection module is used to electrically connect the power input line to access the AC power supply and provide power input for the entire circuit.
[0022] like Figure 1 As shown, the power input line includes a live line L and a neutral line N. The power input line generally transmits AC mains power with a voltage of 220V and a frequency of 50Hz.
[0023] The input protection module contains current protection components and voltage protection components.
[0024] In this embodiment, Figure 1 As shown, the current protection element uses fuse FR1 for overcurrent protection. When the current in the circuit exceeds the rated value, fuse FR1 melts, shutting off the circuit and preventing damage to other components due to overcurrent. Fuse FR1 can be 22R / 2W (resistance 22Ω, power 2W) to quickly blow when the current increases abnormally.
[0025] In this embodiment, Figure 1 As shown, the voltage protection element uses varistor MOV1 for overvoltage protection. When the voltage exceeds its nominal value, the resistance of varistor MOV1 rapidly decreases, dissipating the current and protecting subsequent circuits from surge voltages. The varistor MOV1 can be model 10D471K (10mm diameter, nominal voltage 470VAC), which is sensitive to transient overvoltages. The current protection element and voltage protection element work together to ensure circuit safety under abnormal input conditions.
[0026] The input rectification and filtering module is electrically connected to the input protection module and includes an input rectification unit (not labeled) and an input filtering unit (not labeled).
[0027] In this embodiment, Figure 1 As shown, the input rectifier unit uses a protection diode D1 (which can be a 1N4007 with a reverse withstand voltage of 1000V and a constant current of 1A). Protection diode D1 rectifies AC power into DC power. The diode's unidirectional conductivity allows current to flow in only one direction, providing preliminary processing of the input power.
[0028] In this embodiment, Figure 1 As shown, the input filter unit uses a first electrolytic capacitor EC1, a second electrolytic capacitor EC2, and an input filter inductor L1. The first and second electrolytic capacitors EC1 and EC2 can be 4.7μF / 400V. Their large capacity, polarity, and 400V withstand voltage effectively filter out low-frequency ripple. The input filter inductor L1 can be 1mH0510, with an inductance of 1mH, which suppresses high-frequency clutter, filtering and suppressing electromagnetic interference (EMI). It blocks high-frequency currents and, in conjunction with the capacitors, forms an LC filter circuit to stabilize the DC voltage.
[0029] In this embodiment, the first electrolytic capacitor EC1, the second electrolytic capacitor EC2, and the input filter inductor L1 form a π-type filter circuit. Specifically, in this embodiment, the input filter unit of the input rectifier and filter module utilizes a π-type filter circuit unit. This π-type filter circuit unit, composed of these capacitors and inductors, removes ripple and high-frequency noise from the rectified DC power, ensuring smoother and more stable DC power input to the subsequent stage.
[0030] The control module is electrically connected to the input rectification and filtering module, and the control module includes a control chip U2 and a freewheeling unit (not marked).
[0031] In this embodiment, Figure 1 As shown, the freewheeling unit includes a freewheeling diode D2 (which can be ES1J type), a freewheeling inductor L2 (which can be 1mH8*10 specification) and a freewheeling filter capacitor C1 (the capacity can be 1μF).
[0032] In this embodiment, Figure 1As shown, control chip U2 is a KP3114SG chip. Control chip U2 (which controls the buck-boost voltage) includes a power pin VDD, a ground pin GND, a feedback pin FB (used to feed back the output voltage signal, regulating the chip's internal circuitry through the feedback mechanism to stabilize the output voltage), and a voltage input pin D (Drain, also known as the switch pin SW). Based on the feedback signal from feedback pin FB, the KP3114SG chip controls the charging and discharging of freewheeling inductor L2 through voltage input pin D, as well as the energy storage and release of freewheeling inductor L2 in the switching power supply. This, in conjunction with the switching action of control chip U2, achieves buck-boost conversion.
[0033] The freewheeling diode D2 works in conjunction with the freewheeling inductor L2. During the energy release phase of the freewheeling inductor L2, the freewheeling diode D2 provides a path for the current in the freewheeling inductor L2, preventing the back electromotive force generated by the freewheeling inductor L2 from damaging the chip and other components. The freewheeling filter capacitor C1 cooperates with the freewheeling filter to reduce output voltage ripple and stabilize the output voltage. The freewheeling filter capacitor C1 can be a small-capacity, non-polarized model, which effectively suppresses high-frequency ripple, thereby achieving voltage conversion and initial stable output.
[0034] The feedback regulation module is electrically connected to the control module, and includes a sampling unit (not labeled) and a feedback filtering unit (not labeled).
[0035] In this embodiment, Figure 1 As shown, the sampling unit of the feedback regulation module includes a first sampling resistor R1 (resistance can be 24kΩ) and a second sampling resistor R2 (resistance can be 10kΩ) connected in series, as well as a first feedback filter capacitor C2 (specification can be 4.7μF / 50V) and a second feedback filter capacitor C3 (capacitance can be 0.001μF). The first sampling resistor R1 and the second sampling resistor R2 form a voltage divider circuit to sample the output voltage and feed the sampled voltage back to the feedback pin FB of the control chip U2, implementing closed-loop control and stabilizing the output voltage. The first and second feedback filter capacitors C2 and C3 are used for high-frequency filtering, suppressing high-frequency noise, stabilizing the feedback signal, and filtering the feedback signal to further smooth the chip supply voltage, ensuring a stable and accurate feedback signal. This allows the control chip U2 to effectively regulate the output voltage based on the feedback signal and maintain a stable output voltage.
[0036] The output module is electrically connected to the control module and includes a load regulation unit (not marked).
[0037] In this embodiment, Figure 1As shown, the load adjustment unit can be a corresponding load resistor R3 (with a resistance of 10kΩ). The output module can also include an output protection diode D3 and an output electrolytic capacitor EO4 (with a specification of 220μF / 16V). Output protection diode D3 prevents reverse voltage from flowing, protecting downstream circuits from damage caused by reverse voltage. Output electrolytic capacitor EO4 performs secondary filtering on the output voltage, smoothing it and storing energy to provide a stable DC voltage for the load, making the output DC smoother. Load resistor R3 can be used for load matching or fine-tuning the output, ensuring that the circuit ultimately outputs a stable DC voltage for the load.
[0038] The switching power supply circuit provided in this embodiment is a highly integrated modular power supply architecture with a high degree of integration of voltage stabilization and filtering, intelligent voltage regulation and protection functions. Through the control of the control chip U2, voltage conversion and stable output are achieved, and the input AC power can be converted into a stable DC output (for example Figure 1 , which can output 5V / 0.2A to achieve AC-DC conversion) and power the back-end load.
[0039] The control chip U2 of this embodiment adopts the KP3114SG chip, which integrates seven major functional modules on a single chip, including a built-in 700V withstand voltage MOSFET (Metal-Oxide-Semiconductor Field Effect Transistor) and a high-voltage startup circuit. This simplifies peripheral devices and reduces the number of components by 65%. It achieves high-voltage integration, multi-mode control (supporting flyback / buck / boost-boost topologies, and adaptive switching frequency to load changes, for example, supporting a maximum frequency of 30kHz), intelligent protection, integrated overload protection (OLP), cycle-by-cycle current limiting (OCP), overvoltage protection (OVP), overtemperature protection (OTP), and self-recovery function), energy efficiency optimization (dynamic frequency regulation: automatically reducing the switching frequency under light load, with no-load power consumption less than 100mW; peak current adaptation: dynamically adjusting the current detection threshold according to the load to improve light-load efficiency). In addition, the chip structure has other advantages (compact packaging: using SOP-8 package, measuring 5mm×6mm×1.75mm, compatible with PCB (Printed Circuit Board) The chip utilizes a 150°C internal over-temperature protection point, combined with a fiberglass substrate for heat dissipation. This circuit solution further addresses the issues of bulk, low efficiency, and poor safety inherent in traditional solutions, offering multi-mode topology support, ultra-low voltage input (>20V), and low no-load power consumption (<100mW).
[0040] The switching power supply circuit provided in this embodiment can be used in a smart toilet seat circuit system. In this case, the 220V AC input is connected to the voltage input pin D of the KP3114SG after being filtered by electromagnetic interference (EMI). The output is regulated by connecting an external resistor network to the feedback pin FB. Figure 1 The output is set to 5V / 200mA, the protection mechanism can set the OVP threshold to 8V, and the OTP trigger temperature to 150℃.
[0041] The switching power supply circuit provided in this embodiment has a highly flexible topology. It switches operating modes through pin configuration and adapts to complex voltage scenarios. It also has cost advantages. For example, the KP3114SG chip uses an SOP-8 (Small Outline Package 8-pin) packaging solution, which can reduce the bill of material (BOM) cost by 60%.
[0042] Another embodiment of the present invention provides another switching power supply circuit, please refer to Figure 2 .
[0043] The switching power supply circuit also includes: an input protection module (not marked), an input rectification and filtering module (not marked), a control module (not marked), a feedback regulation module (not marked) and an output module (not marked), and the specific circuits of these modules are similar to Figure 1 The embodiments are the same, and reference may be made to the corresponding contents of the aforementioned embodiments.
[0044] Different from the above-mentioned embodiment, this embodiment further includes an input feedback module (not labeled).
[0045] like Figure 2 The input feedback module includes an input sense resistor R4 and a comparator CM. The input sense resistor R4 is electrically connected between the input rectifier and filter module (the input filter inductor L1) and the voltage input pin D of the control chip U2. The front end of the input sense resistor R4 is electrically connected to the front end of the first sampling resistor R1 (in this embodiment, the front end refers to the end that is relatively forward in terms of circuit power delivery). The rear end of the second sampling resistor R2 is electrically connected to the non-inverting input of the comparator CM. The rear end of the input sense resistor (in this embodiment, the front end refers to the end that is relatively backward in terms of circuit power delivery) is electrically connected to the inverting input of the comparator CM. The output of the comparator CM is electrically connected to the feedback pin FB of the control chip U2 (it should be noted that a resistor may be connected between the output of the comparator CM and the feedback pin FB of the control chip, which is not shown). The comparator CM is electrically connected to a reference voltage Vref (the reference voltage Vref can be provided by the output module and can be connected to a Zener diode or other voltage-stabilizing output component). The comparator CM is also grounded to ensure normal circuit operation and signal stability.
[0046] In this embodiment, the input detection resistor R4 may be a current detection resistor with a small resistance (eg, 0.1Ω / 2W).
[0047] An input sense resistor R4 is connected in series between the voltage input pin D (switch pin SW) of the control chip U2 and the input filter inductor L1 (power inductor). Before the current flows through the input filter inductor L1, it first flows through the input sense resistor R4, generating a voltage drop proportional to the current across the resistor. The output of the comparator CM is connected to the feedback pin FB of the control chip U2 to implement overcurrent protection. The principle is as follows: During normal operation, the voltage drop across the input detection resistor R4 is small, and the comparator CM outputs a low-level signal or a low-level signal close to the reference voltage, which has little effect on the voltage of the feedback pin FB of the control chip U2. The chip works according to the normal feedback mechanism; When overcurrent occurs, the voltage drop of the input detection resistor R4 increases, making the voltage at the non-inverting input of the comparator CM higher than the reference voltage at the inverting input. The comparator CM outputs a high-level signal, which affects the voltage at the feedback pin FB of the control chip U2, causing the chip to detect abnormal feedback voltage, determine that the circuit has overcurrent, and trigger the overcurrent protection mechanism inside the chip. The chip automatically shuts down the power switch tube to achieve overcurrent protection function.
[0048] Figure 2 The input feedback module shown reuses some of the switching power supply circuit's existing feedback module, ensuring that the signal output by comparator CM effectively affects the voltage on feedback pin FB while maintaining the chip's normal feedback mechanism. This structural design enables multiple overcurrent protection functions to be implemented using feedback pin FB without relying on the dedicated overcurrent protection pin on control chip U2, providing additional protection and multiple safeguards for the circuit.
[0049] Another embodiment of the present invention provides another switching power supply circuit, please refer to Figure 3 .
[0050] The switching power supply circuit also includes: input protection module (not marked), input rectification and filtering module (not marked), control module (not marked), feedback regulation module (not marked) and output module (not marked), and the specific circuits of these modules are similar to Figure 1 The embodiments are the same, and reference may be made to the corresponding contents of the aforementioned embodiments.
[0051] like Figure 3 , different from the previous embodiment, in this embodiment, the current protection element adopts a fuse F1, and the voltage protection element adopts a varistor RV1; the input filter module adopts a safety capacitor CX1 (specification can be 0.22μF / 275V) to replace the first electrolytic capacitor therein. The safety capacitor CX1 has a stronger ability to suppress common-mode and differential-mode interference, can better meet the electromagnetic compatibility (EMC) requirements, filter out common-mode and differential-mode interference in the AC input, and improve the purity of the input power supply; the input rectifier unit additionally adopts a current limiting resistor CR1 and includes two protection diodes connected in series, namely, protection diode D1 and protection diode D2, to enhance the rectification and protection effects; the resistor connection method of the feedback regulation module is different, the first sampling resistor R12 and the second sampling resistor R14 are connected in parallel (also in series), and Figure 1The other capacitors, inductors, and diodes are also adjusted accordingly, as shown in the corresponding capacitor C8, inductor L1, diode D3, and diode D4. The output module has an output filter electrolytic capacitor EC3 and an output filter capacitor C9, and a load resistor R15, and an output filter inductor L3 and an output differential mode inductor L4 are added to further suppress output high-frequency noise and ripple, improve output voltage stability and purity, further stabilize the output, and suppress high-frequency interference.
[0052] After receiving AC220V mains power, the switching power supply circuit of this embodiment first passes through the overvoltage and electromagnetic interference suppression protection of the input protection module fuse F1 and varistor RV1. It is then rectified by safety capacitor CX1, protection diodes D1 and D2, and initially filtered by input filter inductor L2 and input filter electrolytic capacitor EC2. The circuit then enters the control module centered around control chip U2. Control chip U2 controls components such as freewheeling inductor L1 and freewheeling diode D3 to achieve voltage conversion. Finally, output filtering and voltage stabilization are performed by electrolytic capacitor EC3, capacitor C9, output filter inductor L3, and output differential mode inductor L4, resulting in a stable Vcc output. The feedback module plays a corresponding feedback protection role.
[0053] The switching power supply circuit provided in this embodiment is suitable for ultra-low voltage input scenarios. For example, when the input voltage is 220VAC, it can be configured in the corresponding buck-boost mode (the chip can be configured in flyback, buck, or buck-boost topologies). The frequency is dynamically adjustable, and the output is stable at 5V / 200mA. The KP3114SG chip integrates a 700V MOSFET and is a multi-mode PWM (Pulse Width Modulation) control unit. It is available in an SOP-8 package with a self-resettable protection circuit and supports flyback, buck, and buck-boost topologies. The switching frequency is dynamically adjusted with the load. The switching power supply circuit provided in this embodiment is designed to achieve no-load power consumption of less than 100mW, an overtemperature protection threshold of 150°C ±5%, and continuously adjustable output voltage (output voltage range 3V-24V) via an external resistor network connected to the feedback pin FB. Furthermore, the switching power supply circuit provided in this embodiment also utilizes a π-type filter circuit and synchronous rectification technology, resulting in a ripple voltage of less than 100mV.
[0054] An embodiment of the present invention also provides a smart toilet seat circuit system.
[0055] In the intelligent toilet seat circuit system, Figures 1 to 3 The switching power supply circuits shown can all be used as part of the intelligent toilet seat circuit system. Figure 3 The switching power supply circuit shown is part of the intelligent toilet seat circuit system. On this basis, the intelligent toilet seat circuit system of this embodiment also includes Figure 4The control processing module shown, Figure 5 The burning interface module shown in the figure is Figure 6 The sensor signal acquisition and control module shown, Figure 7 The key control module shown and Figure 8 The seat control circuit module shown.
[0056] Figure 4 The control processing module shown includes a microcontroller chip U1, which can be a microprocessor (Microprogrammed Control Unit, MCU), whose model can be HC32F003, and has multiple functional pins, such as: Seat control pin: Pin 1 (AIN4 / VCIN4 / P34), used to control seat related functions (such as heating, insulation, rotation, etc.); Button pin: Pin 16 (P26 / AIN1), used to detect external button status and implement button interaction with the user; LED control pins: Pin 13 (button light red), Pin 14 (button light blue), Pin 15 (button light white), respectively used to output signals to drive the corresponding color LED lights; Night light control pin: Pin 19, used to control the switch of the night light; Zero-crossing detection pin: Pin 20, used to detect the zero-crossing point of the AC power supply, often used to accurately detect whether there is mains power; Signal pins: Pin 17 (SWDIO) and Pin 18 (SWIM / SWCLK) are used for program downloading and debugging to enable programming and monitoring of the chip.
[0057] In addition, there are other analog input pins (AINx), reset pin (RESETB), clock pins (XTHO, XTLI), power pins (AVCC / DVCC), etc.
[0058] The microcontroller chip U1 is responsible for the control and data processing of the entire circuit system. It collects external analog signals such as voltage, current and other information through analog input pins; uses the internal oscillator to provide a working clock; and uses the corresponding pins to output control signals based on the collected data and preset programs to coordinate the work of each module.
[0059] Figure 5 The burning interface module shown is used to burn the program to the control chip U1. Figure 5 and Figure 4 , where pin 3 and pin 2 of interface J1 are electrically connected to pin 17 (SWDIO) and pin 18 (SWIM / SWCLK) of control chip U1 respectively.
[0060] Figure 6The sensor signal acquisition and control module shown in the figure samples the power supply voltage (Vcc) and feeds the sampled voltage signal back to the analog input pin of microcontroller U1. Microcontroller U1 monitors this voltage to determine whether the power supply is normal. If the voltage is abnormal, it can take appropriate protective measures, such as alarming or shutting down the device.
[0061] Combined with reference Figure 6 and Figure 4 The light signal changes detected by the photosensor (not shown) are input via pin 1 of interface J3 and transmitted through resistor R2 to pin 2 of control chip U1, the photosensitive ADC pin. A voltage divider circuit formed by resistors R6 and R7 provides a suitable DC bias (or voltage bias), and capacitor C5 filters the signal, allowing the photosensitive ADC pin to accurately capture a stable light signal voltage value.
[0062] Combined with reference Figure 6 and Figure 4 The temperature signal detected by the seat temperature sensor is input through pin 3 of interface J3 and transmitted through resistor R3 to pin 3 of control chip U1, which is the seat temperature ADC pin. Similarly, resistors R6 and R7 provide bias, and capacitor C6 filters the signal, allowing the seat temperature ADC pin to accurately capture the corresponding temperature signal (i.e., the corresponding temperature).
[0063] Combined with reference Figure 6 and Figure 4 The night light control signal is input through pin 5 of interface J3 and transmitted to pin 19 of control chip U1 through resistor R4. This signal can control the on and off status of the night light according to the design logic.
[0064] Figure 7 The key control module shown is used for user input instructions, for example, Figure 7 and Figure 4 When a button is pressed, the level states of the corresponding pins 13, 14, and 15 of the microcontroller U1 are changed. After detecting the level change, the microcontroller U1 executes the corresponding program. Resistor R17 acts as a current limiter to prevent excessive current from flowing into the circuit when the button is pressed, thereby protecting subsequent circuit components and interfaces. Resistor R5 is a pull-up resistor. When the button is not pressed, it pulls up the level of the button pin to ensure that the pin is in a stable high-level state. Capacitor C4 acts as a de-bouncing capacitor. Mechanical jitter is generated when the button is pressed or released. Capacitor C4 absorbs the noise signal generated by the jitter, making the button signal more stable. The buttons and indicator lights provide users with a way to operate and view the status, making the system more interactive and convenient for users to use and maintain.
[0065] Figure 8The seat ring control circuit module shown here can be used to control the seat ring and achieve electrical isolation to prevent interference between the high-voltage circuit and the low-voltage control circuit. The power supply connects to the 220V AC live wire (AC220L) and neutral wire (AC220N) via interface J2, forming a 220V AC power circuit. Capacitor C18 and resistor R69 form an RC circuit to filter the input power, suppress surges, and stabilize the voltage. When receiving a suitable trigger signal, the bidirectional thyristor Q1 turns on, establishing an AC power path and allowing current to flow, providing operating power to subsequent circuits. If not triggered or the trigger signal disappears, the bidirectional thyristor Q1 remains off, cutting off the AC power path. The control signal, after being limited by resistor R8, is amplified by transistor Q6 before driving power switch Q5. When the control signal turns on transistor Q6 and power switch Q5, the AC220V power circuit is connected to power supply Vcc, and the seat ring is powered to operate (such as heating or rotation). When the signal is cut off, the seat ring is de-energized and stops operating, thus achieving on-off control of the seat ring. For the safety of the corresponding circuit module, when there is a voltage or current change in the AC 220V circuit, the signal can be transmitted to the other side in the form of light through an optocoupler, so that the two circuits are not directly connected electrically, enhancing system stability and safety.
[0066] An embodiment of the present invention also provides an intelligent bathroom device.
[0067] In this embodiment, the intelligent bathroom equipment is an intelligent toilet. In other embodiments, the intelligent bathroom equipment may also be other intelligent bathroom equipment such as an intelligent bathtub or an intelligent shower system.
[0068] The smart toilet integrates multiple circuits, including a seat heating circuit and an automatic flushing circuit. Among these circuits, the switching power supply circuit plays a role in powering the entire device circuit system. The switching power supply circuit of this embodiment specifically includes: An input protection module is electrically connected to the power input line of the smart toilet, wherein the current protection element (such as a fuse) and the voltage protection element (such as a varistor) are arranged at the front end position of the power input; The input rectification and filtering module is electrically connected to the input protection module and can convert the input AC power into relatively smooth DC power and suppress electromagnetic interference; Control module: electrically connected to the input rectifier and filter module, the control chip of which uses KP3114SG chip; Feedback regulation module: electrically connected to the control module, the sampling unit includes a first sampling resistor and a second sampling resistor connected in series, for sampling the output voltage; Output module: electrically connected to the control module to provide stable and pure power to each functional module of the smart toilet.
[0069] For more information on the structure and function of switching power supply circuits, please refer to Figures 1 to 3 The content of the corresponding embodiment.
[0070] The switching power supply circuit used in the smart bathroom equipment of this embodiment effectively improves the stability and reliability of the power supply through the coordinated work of multiple modules such as the input protection module, input rectification and filtering module, control module, feedback regulation module and output module, ensuring that smart bathroom equipment such as smart toilets can operate stably even in complex usage environments and simplifying the circuit.
[0071] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A switching power supply circuit, characterized in that: include: An input protection module, used for electrically connecting to a power input line, comprising a current protection element and a voltage protection element; An input rectification and filtering module, electrically connected to the input protection module, comprising an input rectification unit and an input filtering unit; A control module, electrically connected to the input rectification and filtering module, comprising a control chip and a freewheeling unit, wherein the freewheeling unit comprises a freewheeling diode, a freewheeling inductor and a freewheeling filter capacitor; A feedback regulation module, electrically connected to the control module, comprising a sampling unit and a feedback filtering unit; The output module is electrically connected to the control module and includes a load regulating unit.
2. The switching power supply circuit according to claim 1, wherein: The sampling unit of the feedback regulation module includes a first sampling resistor and a second sampling resistor connected in series.
3. The switching power supply circuit according to claim 2, wherein: It also includes an input feedback module, which includes an input detection resistor and a comparator. The input detection resistor is electrically connected between the input rectification and filtering module and the voltage input pin of the control chip. The front end of the input detection resistor is electrically connected to the front end of the first sampling resistor, the rear end of the second sampling resistor is electrically connected to the non-inverting input end of the comparator, the rear end of the input detection resistor is electrically connected to the inverting input end of the comparator, the output end of the comparator is electrically connected to the feedback pin of the control chip, and the comparator is electrically connected to a reference voltage.
4. The switching power supply circuit according to claim 1, wherein: The control chip is a KP3114SG chip.
5. The switching power supply circuit according to claim 1, wherein: The input filter unit of the input rectification and filtering module adopts a π-type filter circuit unit, and the π-type filter circuit unit includes a first electrolytic capacitor, a second electrolytic capacitor and an input filter inductor.
6. The switching power supply circuit according to claim 1, wherein: The input rectification unit of the input rectification and filtering module includes two protection diodes and a safety capacitor connected in series.
7. The switching power supply circuit according to claim 1, wherein: The output module includes an output filter inductor and an output differential mode inductor.
8. An intelligent toilet seat circuit system, characterized in that: The method comprises the switching power supply circuit according to any one of claims 1 to 7.
9. The intelligent toilet seat circuit system according to claim 8, wherein: It also includes at least one of the following modules: a control processing module, a burning interface module, a sensor signal acquisition and control module, a button control module and a seat control circuit module.
10. An intelligent bathroom device, characterized in that: The method comprises the switching power supply circuit according to any one of claims 1 to 7.