Single live wire new WIFI DC power supply

By designing a new single-live-wire WIFI DC power supply and utilizing a single-chip control circuit and fast-charging and slow-charging strategies, the problem that the WIFI smart switch cannot automatically reset when the farad capacitor is out of power is solved, thus achieving power supply stability and effective use of electricity, ensuring normal startup.

CN120433407BActive Publication Date: 2025-09-09ZHEJIANG EAST VOCATIONAL TECH COLLEGE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510886541.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-09-09
Estimated Expiration
2045-06-30

AI Technical Summary

Technical Problem

The existing Wi-Fi smart switch cannot automatically reset when the farad capacitor is out of power, resulting in abnormal startup operation.

Method used

A new single-live-wire WIFI DC power supply is designed, which includes a DC power supply input circuit, a farad capacitor charging circuit, a WIFI module circuit and a single-chip microcomputer control circuit. The single-chip microcomputer control circuit detects the voltage at the DC power input end and generates a positive pulse to control the switching state of the magnetic latching relay, realizing AC-to-DC isolation conversion. Feedback voltage regulation is used to ensure power supply stability, and charging is carried out by combining fast charging and slow charging strategies.

Benefits of technology

It avoids the startup problem caused by abnormal state switching of the magnetic latching relay, achieves the stability of the voltage at the power input end, fully utilizes the electric energy, and ensures the normal operation of the WiFi smart switch.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120433407B_ABST
    Figure CN120433407B_ABST
Patent Text Reader

Abstract

The present application relates to the field of intelligent switch power supply technology, and provides a single-live-wire novel WIFI DC power supply. The single-live-wire novel WIFI DC power supply comprises: a DC power supply input circuit, the DC power supply input circuit including a magnetic latching relay KA, the magnetic latching relay KA having an open state and a closed state; a farad capacitor charging circuit; a WIFI module circuit; and a single-chip microcomputer control circuit, the single-chip microcomputer control circuit being used to detect the voltage of the DC power supply input terminal Vin and the relay input circuit and control the WIFI module circuit to switch the state of the magnetic latching relay KA. The single-live-wire novel WIFI DC power supply provided by the present application can improve the problem in the related art that the wifi smart switch only has a software reset function, cannot automatically reset when the farad capacitor is out of power, and may cause abnormal startup operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent switch power supply technology, and in particular to a new single-live-wire WIFI DC power supply. Background Art

[0002] With the rapid development of science and technology, smart homes are gradually becoming ubiquitous in thousands of households. Wi-Fi smart switches have become widely recognized, especially their ability to be remotely controlled via mobile phones. This has brought great convenience to users and has become popular among a large number of users, especially young people. However, the power supplies for Wi-Fi smart switches currently have the following drawbacks, which have hindered their large-scale promotion and application.

[0003] In the related art, the Wi-Fi smart switch only has a software reset function, and cannot automatically reset when the farad capacitor is out of power, resulting in abnormal startup operation. Summary of the Invention

[0004] The embodiment of the present application provides a new single-live-wire WIFI DC power supply, which can improve the technical problem that the WIFI smart switch in the related art has only a software reset function and cannot automatically reset when the farad capacitor is out of power, which may cause abnormal startup operation.

[0005] The present application provides a single-live-wire novel WIFI DC power supply, comprising:

[0006] a DC power supply input circuit, the DC power supply input circuit including a magnetic latching relay KA, the magnetic latching relay KA having two states: an open state and a closed state. When the magnetic latching relay KA is in the open state, the DC power supply input circuit has a relay open input circuit; when the magnetic latching relay KA is in the closed state, the DC power supply input circuit has a relay close input circuit, and both the relay open input circuit and the relay close input circuit are connected to the AC load output terminal L1, the live wire L, and the DC power supply input terminal Vin;

[0007] a farad capacitor charging circuit, wherein an input terminal of the farad capacitor charging circuit is connected to the DC power supply input terminal Vin;

[0008] A WIFI module circuit, wherein the input end of the WIFI module circuit is connected to the output end Vcc1 of the farad capacitor charging circuit, and the output end of the WIFI module circuit is connected to the relay connection input circuit, and is used to stabilize the voltage output by the farad capacitor charging circuit, receive and respond to user interaction operations, and control the state switching of the magnetic latching relay KA; and

[0009] A single-chip microcomputer control circuit is respectively connected to the DC power input terminal Vin, the output terminal of the relay disconnect input circuit, the relay connect input circuit, the farad capacitor charging circuit and the WiFi module circuit, and is used to detect the voltage of the DC power input terminal Vin and the relay connect input circuit and control the on and off of the relay connect input circuit.

[0010] The above technical solutions in the embodiments of the present application have at least the following technical effects:

[0011] The single-live-wire novel WIFI DC power supply provided in an embodiment of the present application obtains the voltage at the DC power input terminal Vin through a single-chip microcomputer control circuit. When the voltage at the DC power input terminal Vin is greater than 5V, a positive pulse is generated to control the WIFI module circuit to switch the magnetic latching relay KA to the off state (off). This avoids the problem of abnormal startup operation caused by the magnetic latching relay KA failing to automatically switch to the off state when the farad capacitor is depleted and the magnetic latching relay KA switches from the off state to the closed state due to power outages or turbulence during transportation, and then power is restored. The input circuit is disconnected or connected by the relay to achieve AC-to-DC isolation conversion, and the stability of the DC power input terminal Vin is ensured through feedback voltage regulation. The farad capacitor charging circuit implements power-off protection and flexibly switches the charging strategy (fast charging, slow charging) according to the voltage of the DC power input terminal Vin, thereby fully utilizing electrical energy. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0013] Figure 1 A schematic diagram of the structure of a new single-live-wire WIFI DC power supply provided in an embodiment of the present application;

[0014] Figure 2 A schematic diagram of the structure of a relay disconnect input circuit provided in an embodiment of the present application;

[0015] Figure 3 A schematic diagram of the structure of the relay-connected input circuit provided in an embodiment of the present application;

[0016] Figure 4 A schematic diagram of the structure of a farad capacitor charging circuit provided in an embodiment of the present application;

[0017] Figure 5 A schematic diagram of the structure of the WIFI module circuit provided in an embodiment of the present application;

[0018] Figure 6 This is a schematic diagram of the structure of the single-chip microcomputer control circuit provided in an embodiment of the present application.

[0019] Among them, the reference numerals in the figures are:

[0020] 100. Single-live-wire new WiFi DC power supply; 10. DC power supply input circuit; 11. Latching relay KA; 12. Relay disconnect input circuit; 121. Single-ended flyback switching power supply; 122. Precision voltage regulator circuit; 13. Relay connect input circuit; 131. Relay drive circuit; 132. Half-wave controlled rectifier circuit; 20. Farad capacitor charging circuit; 21. Farad capacitor C3; 22. Fast charging circuit; 23. Slow charging circuit; 30. WiFi module circuit; 31. Controllable voltage regulator circuit; 32. WiFi module circuit; 40. Microcontroller control circuit. DETAILED DESCRIPTION

[0021] In order to make the technical problems, technical solutions and beneficial effects to be solved by this application more clearly understood, this application is 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 this application and are not intended to limit this application.

[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs; the terms used herein are for the purpose of describing specific embodiments only and are not intended to limit this application. The terms "including" and "having" and any variations thereof in the specification and claims of this application and the accompanying drawings are intended to cover non-exclusive inclusions.

[0023] It should be noted that when an element is referred to as being “fixed on” or “disposed on” another element, it may be directly on the other element or indirectly on the other element. When an element is referred to as being “connected to” another element, it may be directly connected to the other element or indirectly connected to the other element.

[0024] It should be understood that the terms "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application.

[0025] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of the technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. Throughout the description of this application, "plurality" means two or more, unless otherwise specifically defined.

[0026] In this application, "and / or" is simply a way to describe the relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. Additionally, the character " / " in this document generally indicates that the related objects are in an "or" relationship.

[0027] It should be noted that, in this application, words such as "in some embodiments", "exemplarily", "for example", etc. are used to indicate examples, illustrations or explanations. Any embodiment or design described in this application as "in some embodiments", "exemplarily", "for example" should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "in some embodiments", "exemplarily", "for example" is intended to present related concepts in a concrete way, meaning that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The appearance of the above words in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0028] With the rapid development of science and technology, smart homes are gradually becoming ubiquitous in thousands of households. Wi-Fi smart switches have become widely recognized, especially their ability to be remotely controlled via mobile phones. This has brought great convenience to users and has become popular among a large number of users, especially young people. However, the power supplies for Wi-Fi smart switches currently have the following drawbacks, which have hindered their large-scale promotion and application.

[0029] In the related art, the Wi-Fi smart switch only has a software reset function, and cannot automatically reset when the farad capacitor is out of power, resulting in abnormal startup operation.

[0030] Based on this, in order to improve the problem that the WiFi smart switch in the related art only has a software reset function and cannot be automatically reset when the farad capacitor is out of power, which may cause abnormal startup operation, the embodiment of the present application provides the following solution.

[0031] Please also refer to Figure 1The embodiment of the present application provides a single-live-wire novel WIFI DC power supply 100, which includes a DC power supply input circuit 10, a farad capacitor charging circuit 20, a WIFI module circuit 30, and a single-chip microcomputer control circuit 40, wherein:

[0032] The DC power supply input circuit 10 includes a magnetic latching relay KA11, which has two states: an open state and a closed state. When the magnetic latching relay KA11 is in the open state, the DC power supply input circuit 10 has a relay open input circuit 12. When the magnetic latching relay KA11 is in the closed state, the DC power supply input circuit 10 has a relay close input circuit 13. The relay open input circuit 12 and the relay close input circuit 13 are both connected to the AC load output terminal L1, the live wire L and the DC power input terminal Vin.

[0033] An input terminal of the farad capacitor charging circuit 20 is connected to a DC power input terminal Vin.

[0034] The input end of the WIFI module circuit 30 is connected to the output end Vcc1 of the farad capacitor charging circuit 20, and the output end of the WIFI module circuit 30 is connected to the relay connection input circuit 13, which is used to stabilize the voltage output by the farad capacitor charging circuit 20, receive and respond to user interaction operations, and control the state switching of the magnetic latching relay KA11.

[0035] The single-chip microcomputer control circuit 40 is respectively connected to the DC power input terminal Vin, the output terminal of the relay disconnect input circuit 12, the relay connect input circuit 13, the farad capacitor charging circuit 20 and the WiFi module circuit 30. It is used to detect the voltage of the DC power input terminal Vin and the relay connect input circuit 13 and control the WiFi module circuit 30 to switch the state of the magnetic latching relay KA11.

[0036] It can be understood that the DC power supply input circuit 10 is a circuit structure that can change the power supply circuit according to the state of the magnetic latching relay KA11, achieving rectification and filtering, and powering the farad capacitor charging circuit 20 and the single-chip microcomputer control circuit 40. When the magnetic latching relay KA11 is in the disconnected state (the contacts of the magnetic latching relay KA11 are not in contact, "off"), the AC live wire is rectified and filtered through the relay disconnect input circuit 12, and then powers the farad capacitor charging circuit 20 and the single-chip microcomputer control circuit 40. When the magnetic latching relay KA11 is in the closed state (the contacts of the magnetic latching relay KA11 are in contact, "on"), the AC live wire is rectified and filtered through the relay connect input circuit 13, and then powers the farad capacitor charging circuit 20 and the single-chip microcomputer control circuit 40. The magnetic latching relay KA11 is in the disconnected state by default.

[0037] The farad capacitor charging circuit 20 is a circuit structure that can receive the voltage output by the relay disconnect input circuit 12 or the relay connect input circuit 13, change the charging strategy (fast charging or slow charging) according to the voltage at the DC power input terminal Vin, provide a stable voltage for the WiFi module circuit 30, and implement power-off protection.

[0038] The WIFI module circuit 30 is a circuit structure that can receive and stabilize the voltage output by the farad capacitor charging circuit 20, realize WiFi networking and Bluetooth communication functions, respond to user interaction operations, and control the state switching of the magnetic latching relay KA11.

[0039] The single-chip control circuit 40 controls the farad capacitor charging circuit 20 to change the charging strategy by real-time detecting the voltage at the DC power input terminal Vin, thereby switching between slow charging and fast charging states. It also controls the WiFi module circuit 30 based on the voltage generated when the DC power input terminal Vin is turned on or off, so that the magnetic latching relay KA11 switches from the closed state to the open state, thereby achieving instantaneous hardware reset.

[0040] As can be seen from the above, the single-live-wire novel WIFI DC power supply 100 provided in the embodiment of the present application obtains the voltage at the DC power input terminal Vin through the single-chip control circuit 40. When the voltage at the DC power input terminal Vin is greater than 5V, a positive pulse is generated to control the WIFI module circuit 30 to switch the magnetic latching relay KA11 to the off state (off), thereby avoiding the problem of abnormal startup operation caused by the magnetic latching relay KA11 being unable to automatically switch to the off state when the farad capacitor is short of power due to power outage when the magnetic latching relay KA11 is in the closed state (on) or the magnetic latching relay KA11 being switched from the off state to the closed state due to bumps during transportation. The input circuit 12 is disconnected by the relay or the input circuit 13 is connected by the relay to achieve AC to DC isolation conversion, and the voltage stability of the DC power input terminal Vin is ensured by feedback voltage regulation. The farad capacitor charging circuit 20 is used to implement power-off protection and flexibly switch the charging strategy (fast charging, slow charging) according to the voltage of the DC power input terminal Vin to fully utilize the electrical energy.

[0041] In some embodiments, see Figure 2 The relay disconnect input circuit 12 includes a single-ended flyback switching power supply 121 and a precision voltage regulator circuit 122, wherein:

[0042] The input end of the single-ended flyback switching power supply 121 is connected to the AC load output end L1 and the live wire L, and the output end of the single-ended flyback switching power supply 121 is connected to the DC power input end Vin.

[0043] The input end of the precision voltage stabilizing circuit 122 is connected to the DC power input end Vin and the output end of the single-ended flyback switching power supply 121 , and the output end Vcc2 of the precision voltage stabilizing circuit 122 is connected to the single-chip microcomputer control circuit 40 .

[0044] Among them, the single-ended flyback switching power supply 121 is used to convert the AC input into a DC voltage to power the precision voltage stabilization circuit 122. The precision voltage stabilization circuit 122 is used to ensure the voltage stability of the output terminal Vcc2 through feedback stabilization. The output terminal of the relay connection input circuit 13 is connected to the input terminal of the precision voltage stabilization circuit 122.

[0045] It can be understood that the single-ended flyback switching power supply 121 is a DC conversion device that achieves electrical isolation of input and output circuits through a high-frequency transformer.

[0046] The precision voltage stabilizing circuit 122 is a device that can stabilize the voltage inputted by the DC power supply input terminal Vin and output a stable 3.3V voltage (Vcc2). For example, the precision voltage stabilizing circuit 122 can be a 7533 type low voltage dropout linear regulator, etc., but is not limited thereto.

[0047] With this arrangement, the AC input is converted into a DC voltage by the single-ended flyback switching power supply 121 and then output to the DC power input terminal Vin to power the farad capacitor charging circuit 20. The voltage input to the DC power input terminal Vin is stabilized by the precision voltage stabilizing circuit 122 and then output as a 3.3V voltage (Vcc2) to power the single-chip microcomputer control circuit 40.

[0048] In some embodiments, see Figure 2 The single-ended flyback switching power supply 121 includes a power MOS tube V1, an optocoupler U1, a reference voltage regulator integrated U2, a Schottky diode VD1, a high-frequency transformer, a resistor R15, a resistor R16, a resistor R17 and a capacitor C1, wherein:

[0049] One end of the primary winding of the high-frequency transformer is connected to the AC load output terminal L1 and the live wire L, and the other end of the primary winding is grounded through the power MOS tube V1.

[0050] One end of the secondary winding of the high-frequency transformer is connected to the anode of the Schottky diode VD1 , and the cathode of the Schottky diode VD1 is connected to the positive electrode of the capacitor C1 , one end of the resistor R15 , one end of the resistor R16 and the DC power input terminal Vin.

[0051] The other end of the secondary winding is connected to the cathode of the capacitor C1 and the ground.

[0052] The other end of resistor R15 is connected to one end of optocoupler U1, the other end of optocoupler U1 is connected to one end of reference voltage regulator integrated U2, the other end of reference voltage regulator integrated U2 is connected to the other end of resistor R16, one end of resistor R17 and ground, and the other end of resistor R17 is grounded.

[0053] Among them, the high-frequency transformer is used to convert the input voltage into a suitable output voltage and then output it to the DC power input terminal Vin. The feedback loop is formed by the optocoupler U1 and the reference voltage regulator integrated U2 to adjust the duty cycle of the power MOS tube V1 in real time and stabilize the voltage of the DC power input terminal Vin.

[0054] In some embodiments, see Figure 2 , the precision voltage stabilizing circuit 122 includes a voltage stabilizing integrated circuit U3, wherein:

[0055] The input end of the voltage stabilizing integrated circuit U3 is connected to the DC power input end Vin, the output end of the voltage stabilizing integrated circuit U3 is connected to the output end Vcc2, and the other end of the voltage stabilizing integrated circuit U3 is grounded.

[0056] The output end of the relay-connected input circuit 13 is connected to the input end of the voltage stabilizing integrated circuit U3.

[0057] It can be understood that the voltage regulator integrated circuit U3 is a low-voltage-dropout micro-power voltage regulator integrated circuit. For example, the voltage regulator integrated circuit U3 can be a 7533 low-voltage-dropout voltage regulator, an AP7375 low-voltage-dropout voltage regulator, etc., but is not limited thereto.

[0058] With this configuration, the voltage regulator integrated circuit U3 outputs a stable Vcc2 voltage to power the microcontroller U7.

[0059] In some embodiments, see Figure 3 The relay-on input circuit 13 includes a relay drive circuit 131 and a half-wave controlled rectifier circuit 132, wherein:

[0060] A first end of the relay drive circuit 131 is connected to the output terminal Vcc1 of the farad capacitor charging circuit 20, a second end of the relay drive circuit 131 is connected to the DC power supply input terminal Vin, the first end and the second end together form a DC drive circuit Vcc5, the DC drive circuit Vcc5 is connected to the coil of the magnetic latching relay KA11, a third end of the relay drive circuit 131 is connected to the output terminal ACT of the WIFI module circuit 30, a fourth end of the relay drive circuit 131 is connected to the output terminal RST of the WIFI module circuit 30, and a fifth end of the relay drive circuit 131 is connected to the output terminal Ā of the single-chip microcomputer control circuit 40.

[0061] The half-wave controlled rectifier circuit 132 is connected to the DC power supply input terminal Vin, the live wire L, the output terminal VG4 of the single-chip control circuit 40, and the output terminal K of the magnetic holding relay KA11. The other end of the magnetic holding relay KA11 is connected to the load output terminal L1. The half-wave controlled rectifier circuit 132 is connected to the input terminal Vi2 of the single-chip control circuit 40 through the output terminal Vcc3.

[0062] Among them, the relay drive circuit 131 is used to receive the signals output by the output terminal ACT and the output terminal RST to control the conduction or shutdown of the magnetic holding relay KA11, the half-wave controlled rectifier circuit 132 is used to receive the signal output by the output terminal VG4 to control the on and off of the power supply of the output terminal Vcc3 and provide overvoltage protection, the single-chip computer control circuit 40 is used to detect the voltage at the output terminal Vcc3, and the output end of the half-wave controlled rectifier circuit 132 is connected to the input end of the precision voltage stabilization circuit 122 through the DC power supply input terminal Vin.

[0063] It can be understood that the relay drive circuit 131 is a circuit structure that can control the conduction or shutdown of the magnetic holding relay KA11 according to the signal output by the output terminal ACT or the output terminal RST. When the output terminal ACT outputs a high level, the magnetic holding relay KA11 is turned on, and when the output terminal RST outputs a high level, the magnetic holding relay KA11 is turned off.

[0064] The half-wave controlled rectifier circuit 132 is a circuit structure that can achieve half-wave rectification and controllable switching of alternating current, and provide overvoltage protection function.

[0065] With this configuration, when the voltage at the DC power supply input terminal Vin exceeds 5V, the microcontroller control circuit 40 outputs a 3.3V voltage to the relay driver circuit 131 via the output terminal Ā, hard-offing the latching relay KA11. When the voltage at the output terminal Vcc3 exceeds 10V, the microcontroller control circuit 40 outputs a 3.3V voltage (VG4) to the half-wave controlled rectifier circuit 132 via the output terminal VG4, shutting off power to the half-wave controlled rectifier circuit 132 and ensuring its safety.

[0066] In some embodiments, see Figure 3 The relay drive circuit 131 includes MOS transistors V2 and V3, diodes VD7, VD8, and VD5, resistors R11 and R18, and capacitor C5, wherein:

[0067] The anode of the diode VD7 is connected to the DC power supply input terminal Vin, the anode of the diode VD8 is connected to the output terminal Vcc1, the cathode of the diode VD7 and the cathode of the diode VD8 are connected and together form a DC drive circuit Vcc5 and a connection node between at least two series-connected coils of the magnetic holding relay KA11.

[0068] The gate of the MOS transistor V2 is connected to the output terminal ACT, the drain of the MOS transistor V2 is connected to one of the at least two series-connected coils of the magnetic latching relay KA11, and the source of the MOS transistor V2 is grounded.

[0069] The gate of the MOS transistor V3 is connected to the output terminal Ā and the output terminal RST, the drain of the MOS transistor V2 is connected to the other coil of the at least two series-connected coils of the magnetic latching relay KA11, and the source of the MOS transistor V3 is grounded.

[0070] The anode of the diode VD5 is connected to the output terminal RST, and the cathode of the diode VD5 is connected to the gate of the MOS tube V3, the resistor R18 and the resistor R11.

[0071] One end of the capacitor C5 is connected to the output terminal Ā, the other end of the capacitor C5 is connected to one end of the resistor R18, and the other end of the resistor R18 is connected to the gate of the MOS tube V3 and the resistor R11.

[0072] One end of the resistor R11 is connected to the gate of the MOS transistor V3, the cathode of the diode VD5 and the resistor R18, and the other end of the resistor R11 is connected to the source of the MOS transistor V3 and the ground.

[0073] It can be understood that the MOS transistor V2 and the MOS transistor V3 are N-channel MOS transistors, which are used to conduct the source and the drain when a high level is input to the gate.

[0074] The diode VD8 may be a Schottky diode.

[0075] Resistor R18 and capacitor C5 form a filter circuit to filter out high-frequency interference of the Ā signal.

[0076] Diode VD5 is used for unidirectional conduction to control the flow direction of the RST signal and isolate the Ā signal and the RST signal to prevent the signals from interfering with each other.

[0077] The magnetic latching relay KA11 may be a double-coil magnetic latching relay, but is not limited thereto.

[0078] With this arrangement, when the gate of the MOS transistor V2 receives a high-level signal output from the output terminal ACT, the source and drain of the MOS transistor V2 are connected, the upper coil of the magnetic latching relay KA11 is energized, and the magnetic latching relay KA11 switches to the closed state; when the gate of the MOS transistor V3 receives a high-level signal output from the output terminal RST, the source and drain of the MOS transistor V3 are connected, the lower coil of the magnetic latching relay KA11 is energized, and the magnetic latching relay KA11 switches to the open state; when the gate of the MOS transistor V3 receives a 3.3V high-level signal output from the output terminal Ā, the lower coil of the magnetic latching relay KA11 is instantaneously energized, and the magnetic latching relay KA11 switches to the open state.

[0079] By combining the relay power supply Vcc5 with Vin and Vcc1, the system prevents a situation where, when the relay power supply Vcc5 is powered solely by Vin, the magnetic latching relay KA11 generates a current greater than 100mA when it is turned on or off, causing a rapid drop in the voltage at Vin. The AC power supply automatically replenishes the supply in the disconnected state, causing the status indicator light (if any) connected to the relay drive circuit 131 to flash. Alternatively, the system prevents the magnetic latching relay KA11 from switching from a closed state to an open state when Vcc1 = 0 at power-up, when the relay power supply Vcc5 is powered solely by Vcc1. Since the relay power supply Vcc5 is powered solely by Vin and Vcc1, the Vin voltage rises during power-up. When Vin > 5V, the microcontroller control circuit 40 energizes the lower coil of the shutoff relay through the output terminal Ā, causing the magnetic latching relay KA11 to switch to the open state.

[0080] In some embodiments, see Figure 3 The half-wave controlled rectifier circuit 132 includes a power MOS tube V4, a diode VD2, a resistor R1, a capacitor C2 and a transient suppression diode TVS, wherein:

[0081] The resistor R1 is connected in series between the DC power input terminal Vin and the output terminal Vcc3.

[0082] The positive electrode of the capacitor C2 is connected to the output terminal Vcc3, and the negative electrode of the capacitor C2 is grounded.

[0083] The transient suppression diode TVS is connected in parallel between the output terminal K and the ground, and the cathode of the transient suppression diode TVS is connected to the output terminal K and the anode of the diode VD2, and the anode of the transient suppression diode TVS is connected to the ground and the negative electrode of the capacitor C2.

[0084] The cathode of the diode VD2 is connected to the output terminal Vcc3.

[0085] The gate of the power MOS tube V4 is connected to the output terminal VG4, the source of the power MOS tube V4 is connected to the negative electrode of the capacitor C2, and the drain of the power MOS tube V4 is connected to the output terminal K, the cathode of the transient suppression diode TVS and the anode of the diode VD2.

[0086] It can be understood that the power MOS transistor V4 can be an N-channel MOS transistor, and the power MOS transistor V4 is used to conduct the source and the drain when the gate receives a high-level signal output by the output terminal VG4.

[0087] Resistor R1 is used to limit the current to provide 5~7mA current to avoid energy waste.

[0088] The power MOS tube V4 (100N02) is a low-voltage drive power MOS. Under a load of 1kW, the power consumption of the power MOS tube V4 is Pe=4.5²*4mΩ=81mW, which is less than 0.1W. The power MOS tube V4 does not generate heat.

[0089] With this configuration, the voltage at Vcc3 is limited to 10V by various electronic components, ensuring the safety of power MOS transistor V4. When the voltage at output terminal Vcc3 exceeds 10V, the microcontroller control circuit 40 outputs a 3.3V voltage (VG4) to the gate of the power-guaranteed MOS transistor V4 through output terminal VG4, causing the half-wave controlled rectifier circuit 132 to stop supplying power, thereby ensuring the safety of power MOS transistor V4.

[0090] Optionally, the single-ended flyback switching power supply 121 and the half-wave controlled rectifier circuit 132 share a voltage stabilizing circuit composed of TL431. The anode A of the voltage stabilizing integrated circuit U2 (TL431) is grounded, and the cathode is connected to the positive electrode of the DC output power supply Vin via the input end of the optocoupler U1 and the voltage stabilizing resistor R18. The control electrode R of U2 is connected to the midpoint of the voltage divider resistors R16 and R17 of the power supply Vin.

[0091] In some embodiments, see Figure 4 The farad capacitor charging circuit 20 includes a farad capacitor C321, a fast charging circuit 22 and a slow charging circuit 23, wherein:

[0092] The positive electrode of the farad capacitor C321 is connected to the output terminal Vcc1.

[0093] The first input terminal of the fast charging circuit 22 is connected to the DC power supply input terminal Vin, the second input terminal of the fast charging circuit 22 is connected to the output terminal A of the single-chip microcomputer control circuit 40, the output terminal of the fast charging circuit 22 is connected to the positive electrode of the farad capacitor C321 and the output terminal Vcc1, and the fast charging circuit 22 is connected to the WiFi module circuit 30 through the output terminal D.

[0094] The input end of the slow charging circuit 23 is connected to the DC power supply input terminal Vin, the output end of the slow charging circuit 23 is connected to the positive electrode of the farad capacitor C321 and the output terminal Vcc1, and the other end of the slow charging circuit 23 is connected to the control terminal C of the fast charging circuit 22.

[0095] The fast charging circuit 22 is used to receive and control the on / off of the slow charging circuit 23 through the control terminal C according to the signal output by the output terminal A.

[0096] It is understood that when output terminal A outputs a high level, the current of fast charging circuit 22 is zero; when output terminal D is a low level, the Wi-Fi module circuit 30 is powered off; and when control terminal C outputs a high level, the slow charging circuit 23 is disconnected. The resistance value of resistor R2 can be 20Ω, 100Ω, etc., but is not limited thereto.

[0097] When R2=20Ω, the maximum charging current of the slow charging circuit 23 = When R2=100Ω, the maximum charging current of the slow charging circuit 23 = However, when R2=100Ω, the supplementary current is 10mA when switching from fast charging to slow charging, which may not be enough, so the resistance value of resistor R2 is 20Ω as the preferred value.

[0098] The minimum charging current of the slow charging circuit 23 corresponds to the Vcc1 voltage: 5.2V-1mA*100Ω=5.1V or 5.2V-1mA*20Ω=5.18V (much greater than 4.2V). When the control terminal C outputs a high level, the slow charging circuit 23 does not charge; when the control terminal C outputs a low level, the slow charging circuit 23 charges.

[0099] With this configuration, when the power is turned on, Itotal charge = Ifast charge circuit 22 + Islow charge circuit 23 = 0, causing the Vin voltage to rise rapidly, thereby reducing the charging time of the farad capacitor C321 to less than 30 seconds. When the Vin voltage is greater than 4.2V, the fast charge circuit 22 switches to the slow charge circuit 23, and the fast charge circuit 22 stops working (the fast charge circuit 22 only works when the power is turned on). When the fast charge circuit 22 switches to the slow charge circuit 23, the current is continuous, the voltage Vcc1 on the farad capacitor C321 remains almost unchanged, and the voltage on the farad capacitor C321 can rise to approximately 5.1V, allowing full energy utilization. After stabilization, the load current on the farad capacitor C321 varies significantly. However, due to the large capacity of the farad capacitor C321 (0.47F = 470,000μF), the corresponding Vcc1 voltage remains almost unchanged.

[0100] In some embodiments, see Figure 4 , the fast charging circuit 22 includes a lithium battery dedicated collector U4 and a resistor R10, wherein:

[0101] Pin 1 of the lithium battery dedicated current collector U4 is connected to the WIFI module circuit 30 through the output terminal D, pin 2 of the lithium battery dedicated current collector U4 is grounded, pin 3 of the lithium battery dedicated current collector U4 is connected to the positive electrode of the farad capacitor C321 and the output terminal Vcc1, pin 4 of the lithium battery dedicated current collector U4 is connected to the DC power supply input terminal Vin, and the control terminal C of the lithium battery dedicated current collector U4 is connected to the slow charging circuit 23.

[0102] One end of the resistor R10 is connected to pin 6 of the lithium battery dedicated current collector U4, and the other end of the resistor R10 is connected to the output terminal A.

[0103] The lithium battery dedicated current collector U4 is used to receive and control the on and off of the slow charging circuit 23 through the control terminal C according to the signal output by the output terminal A.

[0104] It can be understood that the lithium battery dedicated collector U4 can use TP4057 (lithium battery charging management IC) or equivalent models to reduce costs (0.15 yuan).

[0105] With this configuration, when output terminal A is high, the current output from pin 3 of the lithium battery collector U4 is zero. By changing the charging strategy (fast or slow) through the lithium battery collector U4, efficient charging control of the farad capacitor C321 is achieved, thereby fully utilizing the electrical energy. When Vcc1>>4.2V, the fast charging circuit 22 draws no current and consumes no power. After power-on charging is complete, the lithium battery collector U4 remains operational (unless powered off).

[0106] When Vcc1 is less than 2.9V, I fast-charging circuit 22 = 50mA; when Vcc1 is greater than 2.9V, I fast-charging circuit 22 = 500mA. This provides fast charging speed and automatically reduces the charging current in the event of overheating during charging, ensuring circuit safety. Furthermore, fast-charging circuit 22 consists solely of a dedicated lithium battery current collector U4 and resistor R10, resulting in a low cost (total cost less than 0.15 yuan).

[0107] In some embodiments, see Figure 4 , the slow charging circuit 23 includes a MOS tube V5 and a resistor R2, wherein:

[0108] The gate of the MOS transistor V5 is connected to the control terminal C, the drain of the MOS transistor V5 is connected to one end of the resistor R2, and the source of the MOS transistor V5 is connected to the DC power supply input terminal Vin. The MOS transistor V5 is used to receive and control the connection and disconnection between the drain and the source according to the signal output by the control terminal C.

[0109] The other end of the resistor R2 is connected to the positive electrode of the farad capacitor C321 and the output terminal Vcc1.

[0110] It is understood that the MOS transistor V5 can be a P-type MOS transistor. When the gate of the MOS transistor V5 is input with a low level, the source and drain of the MOS transistor V5 are connected. The resistor R2 is used to limit the current.

[0111] In this configuration, the slow charging circuit 23 is composed of only the MOS transistor V5 and the resistor R2, resulting in a simple structure and low cost. When the control terminal C outputs a low level, the drain and source of the MOS transistor V5 are connected, and the slow charging circuit 23 begins charging. When the control terminal C outputs a high level, the drain and source of the MOS transistor V5 are disconnected, and the slow charging circuit 23 stops charging.

[0112] Because when Vcc1 is less than 4.2V, the MOS tube V5 is cut off, so the resistance value of the resistor R2 can be 20Ω. In this state, the supplementary current I= , and the resistor power loss , ensuring circuit safety while ensuring the power supply of components.

[0113] In some embodiments, see Figure 5 , the WIFI module circuit 30 includes a controllable voltage stabilizing circuit 31 and a WIFI module circuit 32, wherein:

[0114] An input terminal of the controllable voltage stabilizing circuit 31 is connected to the output terminal Vcc1 and the output terminal D of the farad capacitor charging circuit 20 .

[0115] The input end of the WIFI module circuit 32 is connected to the output end Vcc4 of the controllable voltage stabilizing circuit 31 , the output end PSW of the WIFI module circuit 32 is connected to the controllable voltage stabilizing circuit 31 , and the output end ACT and the output end RST of the WIFI module circuit 32 are connected to the relay connection input circuit 13 .

[0116] Among them, the controllable voltage stabilizing circuit 31 is used to stabilize the voltage output by the farad capacitor charging circuit 20 and supply power to the WIFI module circuit 32. The WIFI module circuit 32 is used to receive and respond to user interaction operations and control the state switching of the magnetic latching relay KA11 through the output terminal ACT and the output terminal RST.

[0117] It can be understood that the controllable voltage stabilizing circuit 31 is a device that can output a 3.3V (Vcc4) voltage to the WIFI module circuit 32 and control on and off according to the signal of the output terminal PSW.

[0118] The Wi-Fi module circuit 32 is a device that can respond to user interactions and control the state switching of the magnetic latching relay KA11. The output terminal ACT of the Wi-Fi module circuit 32 is connected to the gate of the MOS transistor V2, and the output terminal RST of the Wi-Fi module circuit 32 is connected to the gate of the MOS transistor V3.

[0119] With this setup, the controllable voltage regulator circuit 31 outputs a stable 3.3V (Vcc4) voltage to the Wi-Fi module circuit 32, ensuring stable wireless communication. The Wi-Fi module circuit 32 enables Wi-Fi networking and Bluetooth communication, and responds to user interactions (such as network configuration and reset).

[0120] In some embodiments, see Figure 5 The controllable voltage stabilizing circuit 31 includes a controllable voltage stabilizing integrated circuit U5, a resistor R12, a resistor R3, and a diode VD3, wherein:

[0121] Pin 1 of the controllable voltage stabilizing integrated circuit U5 is connected to the output terminal Vcc1, pin 2 of the controllable voltage stabilizing integrated circuit U5 is grounded, and pin 5 of the controllable voltage stabilizing integrated circuit U5 is connected to the output terminal Vcc4.

[0122] The diode VD3 is connected in series between the output terminal PSW and the 3rd pin of the controllable voltage stabilizing integrated circuit U5, and the anode of the diode VD3 is connected to the output terminal PSW, and the cathode of the diode VD3 is connected to the 3rd pin of the controllable voltage stabilizing integrated circuit U5.

[0123] One end of the resistor R3 is connected to the output terminal Vcc1, the other end of the resistor R3 is connected to one end of the resistor R12 and the output terminal D, and the other end of the resistor R12 is connected to pin 3 of the controllable voltage regulator integrated circuit U5.

[0124] The controllable voltage regulator integrated circuit U5 is used to convert the voltage of the output terminal Vcc1 into a stable 3.3V and then supply power to the WIFI module circuit 32 through the output terminal Vcc4.

[0125] It is understood that the controllable voltage regulator integrated circuit U5 can be a 700F33 type linear regulator with low voltage difference, micro power consumption and shutdown function, but is not limited thereto.

[0126] Diode VD3 is used to prevent reverse voltage, and resistor R3 is a voltage divider resistor. Resistor R12 and diode VD3 work together to achieve current limiting protection.

[0127] With this configuration, when pin 3 of the controllable voltage regulator integrated circuit U5 is high, it converts the input voltage (Vcc1) to a stable 3.3V (Vcc4) to power the Wi-Fi module circuit 32. When pin 3 of the controllable voltage regulator integrated circuit U5 is low, Vcc4 = 0V. When Vcc1 exceeds 4.2V, the corresponding MOS transistor inside pin 1 (D) of the lithium battery collector U4 opens, causing pin 3 of the controllable voltage regulator integrated circuit U5 to go high and output 3.3V (Vcc4) to power the Wi-Fi module circuit 32. This voltage is then self-locked through the output terminal PSW of the Wi-Fi module circuit 32, maintaining a constant on state. When Vcc1 is less than 4.2V, the controllable voltage regulator integrated circuit U5 does not operate and consumes no power, allowing the entire Vin input to charge the farad capacitor C321, thereby increasing charging speed.

[0128] In some embodiments, see Figure 5 The WIFI module circuit 32 includes a module U6, a resistor R4, a resistor R5, a light-emitting diode VD4 and a switch S1, wherein:

[0129] Pin 14 of module U6 is connected to the output terminal Vcc4, pin 13 of module U6 is grounded, pin 20 of module U6 is connected to the output terminal PSW, pin 19 of module U6 is connected to the output terminal ACT, and pin 18 of module U6 is connected to the output terminal RST.

[0130] One end of the resistor R5 is connected to pin 4 of the module U6 , and the other end of the resistor R5 is connected to the cathode of the light emitting diode VD4 .

[0131] The anode of the light emitting diode VD4 and one end of the resistor R4 are connected to the output terminal Vcc4.

[0132] Pin 2 of the module U6 is connected to the other end of the resistor R4 and one end of the switch S1 , and the other end of the switch S1 is grounded.

[0133] The module U6 is used to receive and respond to user interaction operations through the switch S1 and peripheral electronic components and to control the state switching of the magnetic latching relay KA11 through the output terminal ACT and the output terminal RST.

[0134] As you can understand, module U6 is a WiFi BLE CBU (wireless module), and the steady-state average current of module U6 is less than 1mA. LED VD4 can be used to indicate the working status.

[0135] Resistor R4 limits the current and protects the LED VD4 and the pins of module U6.

[0136] Resistor R5 is used to cooperate with switch S1 to achieve key debounce (stabilize the trigger signal when pressing switch S1 to prevent misoperation) and respond to user interaction operations.

[0137] With this configuration, when module U6 is powered on, output terminal RST maintains a 3.3V voltage for 10ms, and output terminal ACT reaches 0, causing magnetic latching relay KA11 to switch to the off state. After module U6 is powered on, output terminal PSW maintains a 3.3V voltage, maintaining the conduction of controllable voltage regulator integrated circuit U5. Each time switch S1 is connected, the voltage level of pin 2 (KEY) of module U6 changes (assuming pin 2 of module U6 is originally high. Pressing switch S1 connects pin 2 of module U6 to ground, changing it to a low level. When switch S1 is released, pin 2 of module U6 returns to a high level).

[0138] Because module U6's steady-state average current is less than 1mA, the high-voltage, high-capacity capacitor on the AC side can be omitted. Furthermore, module U6 draws tens of mA of current during network distribution or during transient operation, but because capacitor C321 has a sufficiently large capacity (0.47F), the voltage on Vcc1 remains approximately constant.

[0139] In some embodiments, see Figure 6 The single-chip microcomputer control circuit 40 includes a single-chip microcomputer U7 and resistors R6, R7, R8, and R9, wherein:

[0140] The input terminal Vi1 of the single chip microcomputer U7 is connected to the resistor R6 and one end of the resistor R7, the other end of the resistor R6 is connected to the DC power supply input terminal Vin, and the other end of the resistor R7 is grounded.

[0141] The input terminal Vi12 of the single chip microcomputer U7 is connected to the resistor R8 and one end of the resistor R9, the other end of the resistor R8 is connected to the output terminal Vcc3, and the other end of the resistor R9 is grounded.

[0142] One end of the single-chip microcomputer U7 is connected to the output end Vcc2, and the other end of the single-chip microcomputer U7 is grounded.

[0143] The output terminal Vo1 of the single-chip microcomputer U7 is connected to the output terminal A, the output terminal Vo2 of the single-chip microcomputer U7 is connected to the output terminal VG4, and the output terminal Vo3 of the single-chip microcomputer U7 is connected to the output terminal Ā.

[0144] The single chip microcomputer U7 is used to detect the voltage of the DC power input terminal Vin and the relay-connected input circuit 13 and control the WIFI module circuit 30 to switch the state of the magnetic latching relay KA11.

[0145] It can be understood that the single-chip microcomputer U7 is a microcontroller unit (MCU). For example, the single-chip microcomputer U7 can be an ESP8266 type MCU, a BCM43142 type MCU, etc., but is not limited thereto.

[0146] With this configuration, when the voltage at the input terminal Vi1 is less than 5V, the output terminal Vo1 (A) outputs a high level of 3.3V, turning off the lithium battery dedicated current collector U4 so that the fast charging circuit 22 does not charge. Moreover, since pin 5 (C) of the lithium battery dedicated current collector U4 is at a high level, the MOS tube V5 is disconnected and the slow charging circuit 23 does not charge either. Itotal charge = Ifast charging circuit 22 + Islow charging circuit 23 = 0.

[0147] When Vin≥5V, the voltage at A is 0V, and the resistance of resistor R10 is 2KΩ, when Vcc1<2.9V, it outputs 50mA eddy current; when Vcc1>2.9V, it outputs 500mA constant current; when Vcc1>4.2V, I fast charge = 0; I slow charge = When the Vcc1 voltage rises to 5.1V, the circuit enters a steady state. At this time, the slow charge current is stabilized at 1mA. Islow charge = I the average operating current of the WIFI module circuit 30.

[0148] When Vin>4.2V, the slow charging mode remains unchanged (the mode will not be switched due to small voltage fluctuations); the hysteresis voltage is 0.8V (measured △V≤0.3V).

[0149] When Vcc3>10V, VG4=3.3V, the power MOS tube V4 is turned on, and the half-wave controlled rectifier circuit 132 stops supplying power; when Vcc3<9.5V, the power MOS tube V4 is turned off, and the half-wave controlled rectifier circuit 132 starts supplying power; IṘ1= , IR1´= , are all less than the maximum allowable current of subsequent components.

[0150] When Vin is less than 5V, the voltage at Ā, VĀ, is 0, and no reset signal is generated (maintaining time τ = C5*R11, R18 is very small and can be ignored, τ is usually 15ms); when Vin is greater than 5V, the voltage at Ā, VĀ, is 3.3V, and a transient reset signal is generated; when Vin drops but is still higher than 4.2V and VA remains at 3.3V, the reset signal does not change (maintains steady state and does not trigger repeatedly). The reset signal only appears when the switch is turned on (the power supply is switched from zero to on and the voltage rises from low to high).

[0151] For example, when the magnetic latching relay KA11 is in the off state, power is applied, A is connected to the power supply, and the Schottky diode VD1 charges the capacitor C1. Since the capacity of the capacitor C1 is relatively small, Vin rises rapidly. When Vin ≥ 5V, VĀ = 3.3V, and the magnetic latching relay KA11 switches to the off state. However, since the magnetic latching relay KA11 is originally in the off state, VĀ does not work.

[0152] When Vin is less than 5V, VA = 3.3V, and the lithium battery dedicated current collector U4 is not charged. Because the 5th pin of the lithium battery dedicated current collector U4 is at a high level, the MOS tube V5 is cut off, and the slow charging circuit 23 is not charged. Itotal charge = Ifast charging circuit 22 + Islow charging circuit 23 = 0, and the Schottky diode VD1 charges the capacitor C1 very quickly.

[0153] When Vin≥5V, VA=0V, Vcc1 starts to charge because the lithium battery dedicated collector U4 is turned on, and the voltage of Vcc1 rises rapidly; when Vcc1>2.9V, 500mA constant current fast charging is performed through the fast charging circuit 22, and the voltage of Vcc1 rises rapidly; when Vcc1=4.2V, the constant current fast charging ends, the 5th pin of the lithium battery dedicated collector U4 is at a low level, and charging is performed through the slow charging circuit 23. The current of the slow charging circuit 23 gradually decreases from the initial 10mA to 1mA and then maintains a small current of 1mA.

[0154] When switch S1 is turned on, the single-ended flyback circuit stops operating and diode VD2 provides power. When Vcc3 ≥ 10V, power MOS transistor V4 turns on, capacitor C2 discharges to maintain current, and the voltage of Vcc3 drops. When Vcc3 ≤ 9.5V, power MOS transistor V4 turns off, resuming the power supply of diode VD2 and causing the voltage of Vcc3 to rise. By repeatedly switching from "power MOS transistor V4 on" to "power MOS transistor V4 off", Vcc3 is maintained in the range of 9.5V to 10V in a continuous cycle. When the load is a small 3W lamp (low power, small current), Vcc3 = 5.2V + 750Ω * 3mA = 7.45V. Because Vcc3 = 7.45V < 9.5V, power MOS transistor V4 remains off, and diode VD2 continues to provide power (no need to enter the above cycle; diode VD2 directly stabilizes the voltage).

[0155] When Vcc1≥4.2V, pin 1 (point D) of the lithium battery dedicated collector U4 is at a high level, the controllable voltage regulator integrated circuit U5 starts working, Vcc4=3.3V, the module U6 is powered, and PSW outputs a high level, thereby keeping the controllable voltage regulator integrated circuit U5 at a 3.3V output.

[0156] When the magnetic latching relay KA11 is in the closed state, power is turned on and A is connected to the power supply. Since the fast charging circuit 22 and the slow charging circuit 23 are both cut off, the load current only charges the capacitor C1, and the Vin voltage rises rapidly. When Vin ≥ 5V, VĀ = 3.3V, the coil of the magnetic latching relay KA11 is energized, and the magnetic latching relay KA11 switches from the closed state to the open state, realizing hardware reset, Vcc1 is quickly charged, and the Vcc1 voltage rises.

[0157] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present application should be included in the scope of protection of the present application.

Claims

1. A new single-live-wire WIFI DC power supply, characterized in that: include: a DC power supply input circuit, the DC power supply input circuit including a magnetic latching relay KA, the magnetic latching relay KA having an open state and a closed state. When the magnetic latching relay KA is in the open state, the DC power supply input circuit has a relay open input circuit. When the magnetic latching relay KA is in the closed state, the DC power supply input circuit has a relay close input circuit. Both the relay open input circuit and the relay close input circuit are connected to the AC load output terminal L1, the live wire L, and the DC power supply input terminal Vin; a farad capacitor charging circuit, wherein an input terminal of the farad capacitor charging circuit is connected to the DC power supply input terminal Vin; A WIFI module circuit, wherein the input end of the WIFI module circuit is connected to the output end Vcc1 of the farad capacitor charging circuit, and the output end of the WIFI module circuit is connected to the relay connection input circuit, and is used to stabilize the voltage output by the farad capacitor charging circuit, receive and respond to user interaction operations, and control the state switching of the magnetic latching relay KA; as well as A single-chip microcomputer control circuit is respectively connected to the DC power input terminal Vin, the output terminal of the relay disconnect input circuit, the relay connect input circuit, the farad capacitor charging circuit and the WiFi module circuit, and is used to detect the voltage of the DC power input terminal Vin and the relay connect input circuit and control the WiFi module circuit to switch the state of the magnetic latching relay KA.

2. The single live wire novel WIFI DC power supply according to claim 1, characterized in that: The relay disconnect input circuit comprises: a single-ended flyback switching power supply, wherein the input end of the single-ended flyback switching power supply is connected to the AC load output end L1 and the live wire L, and the output end of the single-ended flyback switching power supply is connected to the DC power supply input end Vin; and A precision voltage stabilizing circuit, wherein the input end of the precision voltage stabilizing circuit is connected to the DC power supply input end Vin and the output end of the single-ended flyback switching power supply, and the output end Vcc2 of the precision voltage stabilizing circuit is connected to the single-chip microcomputer control circuit; Among them, the single-ended flyback switching power supply is used to convert the AC input into a DC voltage to power the precision voltage stabilizing circuit, and the precision voltage stabilizing circuit is used to ensure the voltage stability of the output end Vcc2 through feedback stabilization, and the output end of the relay input circuit is connected to the input end of the precision voltage stabilizing circuit.

3. The single live wire novel WIFI DC power supply according to claim 2, characterized in that: The relay-connected input circuit comprises: a relay drive circuit, wherein a first end of the relay drive circuit is connected to an output terminal Vcc1 of the farad capacitor charging circuit, a second end of the relay drive circuit is connected to the DC power supply input terminal Vin, the first end and the second end together form a DC drive circuit Vcc5, the DC drive circuit Vcc5 is connected to the coil of the magnetic latching relay KA, a third end of the relay drive circuit is connected to an output terminal ACT of the WiFi module circuit, a fourth end of the relay drive circuit is connected to an output terminal RST of the WiFi module circuit, and a fifth end of the relay drive circuit is connected to an output terminal Ā of the single-chip microcomputer control circuit; and a half-wave controlled rectifier circuit, the half-wave controlled rectifier circuit being connected to the DC power supply input terminal Vin, the live wire L, the output terminal VG4 of the single-chip microcomputer control circuit, and the output terminal K of the magnetic latching relay KA; the other end of the magnetic latching relay KA being connected to the load output terminal L1; and the half-wave controlled rectifier circuit being connected to the input terminal Vi2 of the single-chip microcomputer control circuit via the output terminal Vcc3; In which, the relay drive circuit is used to receive the signals output by the output terminal ACT and the output terminal RST to control the on or off of the magnetic holding relay KA, the half-wave controlled rectifier circuit is used to receive the signal output by the output terminal VG4 to control the on and off of the power supply of the output terminal Vcc3 and provide overvoltage protection, the single-chip microcomputer control circuit is used to detect the voltage at the output terminal Vcc3, and the output terminal of the half-wave controlled rectifier circuit is connected to the input terminal of the precision voltage stabilization circuit through the DC power supply input terminal Vin.

4. The single live wire novel WIFI DC power supply according to claim 3, characterized in that: The relay drive circuit includes MOS transistors V2 and V3, diodes VD7, VD8, and VD5, resistors R11 and R18, and capacitor C5, wherein: The anode of the diode VD7 is connected to the DC power supply input terminal Vin, the anode of the diode VD8 is connected to the output terminal Vcc1, and the cathode of the diode VD7 and the cathode of the diode VD8 are connected to form a connection node between the DC drive circuit Vcc5 and the at least two series-connected coils of the magnetic latching relay KA; The gate of the MOS transistor V2 is connected to the output terminal ACT, the drain of the MOS transistor V2 is connected to one of the at least two series-connected coils of the magnetic latching relay KA, and the source of the MOS transistor V2 is grounded; The gate of the MOS transistor V3 is connected to the output terminal Ā and the output terminal RST, the drain of the MOS transistor V2 is connected to the other coil of the at least two series-connected coils of the magnetic latching relay KA, and the source of the MOS transistor V3 is grounded; The anode of the diode VD5 is connected to the output terminal RST, and the cathode of the diode VD5 is connected to the gate of the MOS transistor V3, the resistor R18 and the resistor R11; One end of the capacitor C5 is connected to the output terminal Ā, the other end of the capacitor C5 is connected to one end of the resistor R18, and the other end of the resistor R18 is connected to the gate of the MOS transistor V3 and the resistor R11; One end of the resistor R11 is connected to the gate of the MOS transistor V3, the cathode of the diode VD5 and the resistor R18, and the other end of the resistor R11 is connected to the source of the MOS transistor V3 and the ground.

5. The single live wire novel WIFI DC power supply according to claim 3, characterized in that: The half-wave controlled rectifier circuit includes a power MOS tube V4, a diode VD2, a resistor R1, a capacitor C2 and a transient suppression diode TVS, wherein: The resistor R1 is connected in series between the DC power input terminal Vin and the output terminal Vcc3; The positive electrode of the capacitor C2 is connected to the output terminal Vcc3, and the negative electrode of the capacitor C2 is grounded; The transient suppression diode TVS is connected in parallel between the output terminal K and the ground, and the cathode of the transient suppression diode TVS is connected to the output terminal K and the anode of the diode VD2, and the anode of the transient suppression diode TVS is connected to the ground and the negative electrode of the capacitor C2; The cathode of the diode VD2 is connected to the output terminal Vcc3; The gate of the power MOS tube V4 is connected to the output terminal VG4, the source of the power MOS tube V4 is connected to the negative electrode of the capacitor C2, and the drain of the power MOS tube V4 is connected to the output terminal K, the cathode of the transient voltage suppressor diode TVS, and the anode of the diode VD2.

6. The single live wire novel WIFI DC power supply according to claim 1, characterized in that: The farad capacitor charging circuit includes: a farad capacitor C3, wherein a positive electrode of the farad capacitor C3 is connected to the output terminal Vcc1; a fast charging circuit, wherein a first input terminal of the fast charging circuit is connected to the DC power supply input terminal Vin, a second input terminal of the fast charging circuit is connected to the output terminal A of the single-chip microcomputer control circuit, an output terminal of the fast charging circuit is connected to the positive electrode of the farad capacitor C3 and the output terminal Vcc1, and the fast charging circuit is connected to the WiFi module circuit via the output terminal D; and a slow charging circuit, wherein an input end of the slow charging circuit is connected to the DC power supply input terminal Vin, an output end of the slow charging circuit is connected to the positive electrode of the farad capacitor C3 and the output terminal Vcc1, and the other end of the slow charging circuit is connected to the control terminal C of the fast charging circuit; The fast charging circuit is configured to receive and control the on / off of the slow charging circuit via the control terminal C according to the signal output by the output terminal A; The fast charging circuit includes a lithium battery dedicated current collector U4 and a resistor R10, wherein: Pin 1 of the lithium battery dedicated current collector U4 is connected to the WIFI module circuit via the output terminal D; Pin 2 of the lithium battery dedicated current collector U4 is grounded; Pin 3 of the lithium battery dedicated current collector U4 is connected to the positive electrode of the farad capacitor C3 and the output terminal Vcc1; Pin 4 of the lithium battery dedicated current collector U4 is connected to the DC power supply input terminal Vin; The control terminal C of the lithium battery dedicated current collector U4 is connected to the slow charging circuit; One end of the resistor R10 is connected to pin 6 of the lithium battery dedicated current collector U4, and the other end of the resistor R10 is connected to the output terminal A; The lithium battery dedicated current collector U4 is used to receive and control the on / off of the slow charging circuit through the control terminal C according to the signal output by the output terminal A; The slow charging circuit includes a MOS tube V5 and a resistor R2, wherein: The gate of the MOS transistor V5 is connected to the control terminal C, the drain of the MOS transistor V5 is connected to one end of the resistor R2, and the source of the MOS transistor V5 is connected to the DC power supply input terminal Vin. The MOS transistor V5 is used to receive and control the connection between the drain and the source according to the signal output by the control terminal C; The other end of the resistor R2 is connected to the positive electrode of the farad capacitor C3 and the output end Vcc1.

7. The single live wire novel WIFI DC power supply according to claim 1, characterized in that: The WIFI module circuit includes: a controllable voltage stabilizing circuit, wherein an input terminal of the controllable voltage stabilizing circuit is connected to the output terminal Vcc1 and the output terminal D of the farad capacitor charging circuit; and A WIFI module circuit, wherein the input end of the WIFI module circuit is connected to the output end Vcc4 of the controllable voltage stabilizing circuit, the output end PSW of the WIFI module circuit is connected to the controllable voltage stabilizing circuit, and the output end ACT and the output end RST of the WIFI module circuit are connected to the relay connection input circuit; The controllable voltage stabilizing circuit is used to stabilize the voltage output by the farad capacitor charging circuit and to supply power to the WIFI module circuit. The WIFI module circuit is used to receive and respond to user interaction operations and to control the state switching of the magnetic latching relay KA through the output terminal ACT and the output terminal RST.

8. The single live wire novel WIFI DC power supply according to claim 7, characterized in that: The controllable voltage stabilization circuit includes a controllable voltage stabilization integrated circuit U5, a resistor R12, a resistor R3, and a diode VD3, wherein: Pin 1 of the controllable voltage stabilizing integrated circuit U5 is connected to the output terminal Vcc1; Pin 2 of the controllable voltage stabilizing integrated circuit U5 is grounded; Pin 5 of the controllable voltage stabilizing integrated circuit U5 is connected to the output terminal Vcc4; The diode VD3 is connected in series between the output terminal PSW and the 3rd pin of the controllable voltage stabilizing integrated circuit U5, and the anode of the diode VD3 is connected to the output terminal PSW, and the cathode of the diode VD3 is connected to the 3rd pin of the controllable voltage stabilizing integrated circuit U5; One end of the resistor R3 is connected to the output terminal Vcc1, and the other end of the resistor R3 is connected to one end of the resistor R12 and the output terminal D; the other end of the resistor R12 is connected to pin 3 of the controllable voltage regulator integrated circuit U5; The controllable voltage regulator integrated circuit U5 is used to convert the voltage of the output terminal Vcc1 into a stable 3.3V and then supply power to the WIFI module circuit through the output terminal Vcc4.

9. The single live wire novel WIFI DC power supply according to claim 7, characterized in that: The WIFI module circuit includes a module U6, a resistor R4, a resistor R5, a light-emitting diode VD4 and a switch S1, wherein: Pin 14 of the module U6 is connected to the output terminal Vcc4; pin 13 of the module U6 is grounded; pin 20 of the module U6 is connected to the output terminal PSW; pin 19 of the module U6 is connected to the output terminal ACT; pin 18 of the module U6 is connected to the output terminal RST; One end of the resistor R5 is connected to pin 4 of the module U6, and the other end of the resistor R5 is connected to the cathode of the light-emitting diode VD4; The anode of the light emitting diode VD4 and one end of the resistor R4 are connected to the output terminal Vcc4; Pin 2 of the module U6 is connected to the other end of the resistor R4 and one end of the switch S1; the other end of the switch S1 is grounded; The module U6 is configured to receive and respond to user interaction operations through the switch S1 and peripheral electronic components and to control the state switching of the magnetic latching relay KA through the output terminal ACT and the output terminal RST.

10. The single live wire novel WIFI DC power supply according to claim 3, characterized in that: The single chip microcomputer control circuit includes a single chip microcomputer U7 and resistors R6, R7, R8 and R9, wherein: The input terminal Vi1 of the single chip microcomputer U7 is connected to the resistor R6 and one end of the resistor R7, the other end of the resistor R6 is connected to the DC power supply input terminal Vin, and the other end of the resistor R7 is grounded; The input terminal Vi12 of the single chip microcomputer U7 is connected to one end of the resistor R8 and the resistor R9, the other end of the resistor R8 is connected to the output terminal Vcc3, and the other end of the resistor R9 is grounded; One end of the single chip microcomputer U7 is connected to the output terminal Vcc2, and the other end of the single chip microcomputer U7 is grounded; The output terminal Vo1 of the single chip microcomputer U7 is connected to the output terminal A, the output terminal Vo2 of the single chip microcomputer U7 is connected to the output terminal VG4, and the output terminal Vo3 of the single chip microcomputer U7 is connected to the output terminal Ā; The single chip microcomputer U7 is used to detect the voltage of the DC power input terminal Vin and the relay input circuit and control the WIFI module circuit to switch the state of the magnetic latching relay KA.

Citation Information

Patent Citations

  • Capacitance-free single-live-wire WIFI wall intelligent switch circuit

    CN118102540A

  • DC power supply dynamic simulation system and DC power supply test system

    WO2013131392A1