Low-power consumption detection circuit, electronic device, and flash-off state detection method
Through the power consumption circuit in the low-power detection circuit and the optical coupling to detect the flash break of the AC power supply, the problems of high cost and high power consumption in smart home devices are solved, and low-power consumption and high-accuracy flash break detection is achieved, ensuring continuous online control of the electronic device.
Patent Information
- Application Number
- CN202210833743.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-15
- Publication Date
- 2025-08-05
- Estimated Expiration
- 2042-07-15
AI Technical Summary
The flash switch detection circuit in existing smart home devices has high cost and high power consumption, resulting in low detection accuracy and inability to achieve remote control.
A low-power detection circuit is adopted, including power consumption circuits, optocouplers and control circuits. By comparing the AC current with the preset working current, it detects whether the AC power supply flashes, and uses the power consumption circuit to expand the impedance when the AC waveform is negative half-axis to reduce power consumption.
Low-cost and low-power flash interrupt detection is realized, detection accuracy is improved, detection failure is reduced, and the continuous online control of electronic devices in the flash interruption is ensured.
Smart Images

Figure CN115015798B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and in particular to a low-power detection circuit, an electronic device, and a flash state detection method. Background Art
[0002] With the development of the smart home industry, the variety of smart appliances is increasing. When a traditional local power switch is closed, these appliances lose their connection to the internet, rendering them inaccessible to remote control. Consequently, flash switches are widely used in smart home devices. Under normal conditions, flash switches maintain connectivity between the power supply and the load. When pressed by an external force, they disconnect the power supply and the load. Once the force is removed, the flash switches quickly return to their normal state. Furthermore, existing flash detection circuits have complex circuit structures and high component costs.
[0003] How to improve the detection accuracy of flash in circuits, reduce detection power consumption, and save circuit costs has become an urgent problem to be solved.
[0004] In the related art, the problems of high cost and high power consumption of the detection circuit in the related art have been solved, but no effective solution has been proposed yet. Summary of the Invention
[0005] The embodiments of the present invention provide a low-power detection circuit, an electronic device, and a flash state detection method, so as to at least solve the problems of high cost and high power consumption of the detection circuit in the related art.
[0006] According to one embodiment of the present invention, a low-power detection circuit is provided, including: a power consumption circuit, an optocoupler, and a control circuit; the power consumption circuit is used to increase the impedance of the live branch or the neutral branch between the AC power supply and the optocoupler according to the change of the AC waveform; the optocoupler is connected in series with the power consumption circuit, and is used to compare the first current input at the input end of the optocoupler with the size of the preset operating current corresponding to the optocoupler, and output a level signal according to the comparison result; the control circuit is connected to the output end of the optocoupler, and is used to detect whether the AC power supply has a flash interruption based on the level signal.
[0007] Optionally, the above-mentioned low power consumption detection circuit also includes: a first reverse diode; wherein, the output end of the first reverse diode is connected to the output end of the flash switch, and the input end of the first reverse diode is connected to the input end of the power consumption circuit, and is used to determine whether to conduct based on the current AC power waveform corresponding to the AC power supply.
[0008] Optionally, the power consumption circuit includes: a second reverse diode and a target resistor; the second reverse diode is connected in series with the optocoupler, and is used to control the conduction of the live wire branch or the neutral wire branch corresponding to the AC power supply according to the AC waveform; the target resistor is connected in parallel with the second reverse diode, and is used to increase the impedance of the live wire branch or the neutral wire branch when the second reverse diode is not conductive.
[0009] Optionally, the above-mentioned low power consumption detection circuit also includes: a current limiting resistor, wherein the current limiting resistor is connected in series with the flash switch and the optocoupler respectively, and is used to reduce the current of the AC power supply input to the low power consumption detection circuit, wherein the reduction is used to indicate that the first current of the AC power supply input is limited to a second current.
[0010] Optionally, the above-mentioned current limiting resistor includes: a first current limiting resistor and a second current limiting resistor with the same resistance value as the first current limiting resistor; wherein, the first current limiting resistor and the second current limiting resistor are respectively arranged on the live wire branch and the neutral wire branch corresponding to the AC power supply.
[0011] Optionally, the above-mentioned optocoupler includes: a light-emitting diode; wherein the light-emitting diode is used to emit light after the second current input into the input end of the optocoupler is greater than or equal to a preset operating current, and the preset operating current is the minimum current for the light-emitting diode to enter the light-emitting state.
[0012] Optionally, the upper optocoupler also includes: a phototransistor; wherein the phototransistor is used to enter a conducting state when the base of the phototransistor receives light emitted by the light-emitting diode, and output a low level preset for the phototransistor in the conducting state; or enter a cut-off state after determining that the light-emitting diode has not entered a light-emitting state, and output a high level preset for the phototransistor in the cut-off state.
[0013] Optionally, the above-mentioned control circuit includes: a third resistor and a first capacitor; the third resistor is connected to the collector of the phototransistor, and is used to divide the preset voltage loaded on the collector to obtain a third voltage loaded on the collector of the phototransistor; the first capacitor is connected in parallel with the phototransistor, and is used to provide a fourth voltage for the phototransistor.
[0014] According to another embodiment of the present invention, an electronic device is also provided, including: a power consumption circuit, an optocoupler, and a control circuit; the power consumption circuit is used to increase the impedance of the live branch or the neutral branch between the AC power supply and the optocoupler according to the change of the AC waveform; the optocoupler is connected in series with the power consumption circuit, and is used to compare the first current input at the input end of the optocoupler with the size of the preset operating current corresponding to the optocoupler, and output a level signal according to the comparison result; the control circuit is connected to the output end of the optocoupler, and is used to detect whether the AC power supply is flashed according to the level signal.
[0015] Optionally, the electronic device further includes: a load unit and a load control unit, wherein the load control unit controls the load unit according to a signal corresponding to a detected flash state in the circuit.
[0016] According to another embodiment of the present invention, a control system for an electronic device is also provided, including: a power consumption circuit, an optocoupler, and a control circuit; the power consumption circuit is used to increase the impedance of the live branch or the neutral branch between the AC power supply and the optocoupler according to the change of the AC waveform; the optocoupler is connected in series with the power consumption circuit, and is used to compare the first current input at the input end of the optocoupler with the size of the preset working current corresponding to the optocoupler, and output a level signal according to the comparison result; the control circuit is connected to the output end of the optocoupler, and is used to detect whether the AC power supply has a flash interruption according to the level signal; the above-mentioned control system also includes: a load unit and a load control unit, wherein the load control unit controls the load unit according to the signal corresponding to the flash interruption state in the detected circuit.
[0017] Optionally, the above-mentioned control system also includes: a flash switch, wherein the input end of the flash switch is connected in series with the AC power supply, and the output end of the flash switch is connected in series with the electronic device, which is used to control the on and off of the AC power supply and the electronic device according to the state change of the flash switch.
[0018] According to another embodiment of the present invention, a method for detecting a flash-off state is also provided, including: determining a digital signal corresponding to the AC power supply output by a low-power detection circuit, wherein the digital signal is an optocoupler in the low-power detection circuit by comparing a first current input at the input end of the optocoupler with a preset working current output level signal corresponding to the optocoupler; and determining whether a flash-off occurs in the AC power supply through the digital signal.
[0019] According to another embodiment of the present invention, a flash detection control device is also provided, including: a detection module, used to determine the digital signal corresponding to the AC power supply output by the low-power detection circuit, wherein the digital signal is an optocoupler in the low-power detection circuit by comparing the first current input at the input end of the optocoupler with the preset working current output level signal corresponding to the optocoupler; a control module, used to determine whether the AC power supply flashes through the digital signal.
[0020] According to another embodiment of the present invention, a control method for an electronic device is also provided, including: supporting the electronic device to be in a continuous online state based on a flash state detection method, wherein the continuous online state is to ensure the power supply of the control circuit of the electronic device when the AC power supply flashes through the flash state detection circuit; when it is determined that the electronic device is in a continuous online state, remote control of the electronic device is performed through the control circuit.
[0021] In an embodiment of the present invention, a power consumption circuit, an optocoupler, and a control circuit are provided. The power consumption circuit is configured to increase the impedance of the live branch or the neutral branch between the AC power supply and the optocoupler according to changes in the AC waveform. The optocoupler is connected in series with the power consumption circuit and is configured to compare a first current input at the input end of the optocoupler with a preset operating current corresponding to the optocoupler and output a level signal based on the comparison result. The control circuit is connected to the output end of the optocoupler and is configured to detect whether the AC power supply has experienced a flash interruption based on the level signal. In other words, the low-power consumption detection circuit performs real-time detection of flash interruptions in the AC power supply. The low-power consumption detection circuit has a simple circuit structure, low component cost, and high flash interruption detection accuracy. Furthermore, by incorporating the power consumption circuit, the low-power consumption detection circuit operates normally when the AC waveform is in the negative half axis. When the AC waveform is in the negative half axis, the power consumption circuit is used to increase the impedance of the low-power consumption detection circuit to control the power consumption in the negative half axis. The above technical solution solves the problems of high cost and low power consumption of the detection circuit in the related technology. Through the embodiment of the present invention, the accuracy of the flash detection of the circuit can be achieved, the occurrence of flash detection failure can be reduced, and the total power consumption of the overall detection can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0023] Figure 1 is a structural block diagram of a low power consumption detection circuit according to an embodiment of the present invention;
[0024] Figure 2 is a structural block diagram of another low-power detection circuit according to an embodiment of the present invention;
[0025] Figure 3 This is a working diagram of a flash detection circuit in related art;
[0026] Figure 4 It is a structural diagram of an isolated flash detection circuit of related technology;
[0027] Figure 5 1 is a circuit diagram of a low-power flash state detection circuit according to an optional embodiment of the present invention;
[0028] Figure 6 1 is a waveform diagram of a low-power flash state detection circuit according to an optional embodiment of the present invention when no flash occurs;
[0029] Figure 7 1 is a schematic diagram of waveforms of a flash state detection circuit with low power consumption according to an optional embodiment of the present invention;
[0030] Figure 8 is a structural diagram of an electronic device according to an embodiment of the present invention;
[0031] Figure 9 is a structural diagram of a control system of an electronic device according to an embodiment of the present invention;
[0032] Figure 10 is a flow chart of a method for detecting a flash state according to an embodiment of the present invention;
[0033] Figure 11 A flash detection control device according to an embodiment of the present invention;
[0034] Figure 12 is a flowchart of a control method of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0035] To facilitate understanding of the present invention, the present invention will be described more fully below with reference to the accompanying drawings. The accompanying drawings illustrate preferred embodiments of the present invention. However, the present invention may be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and comprehensive understanding of the present disclosure.
[0036] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0037] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0038] The low power consumption detection circuit provided in the embodiment of the present application. Figure 1 1 is a block diagram of a low power consumption detection circuit according to an embodiment of the present invention. The circuit includes: a power consumption circuit 12, an optical coupler 14, and a control circuit 16;
[0039] The power consumption circuit 12 is used to increase the impedance of the live branch or the neutral branch between the AC power supply and the optocoupler according to the change of the AC waveform;
[0040] It should be noted that the above-mentioned power consumption circuit can be added to the neutral branch of the AC power supply or to the live branch of the AC power supply. When the power consumption circuit is added to the neutral branch, the second reverse diode in the power consumption circuit has the same direction as the light-emitting diode in the optocoupler, and the first reverse diode has the opposite direction to the light-emitting diode in the optocoupler, that is, the positive pole of the second reverse diode is connected to the negative pole of the light-emitting diode, and the negative poles of both are pointing to the neutral branch side of the AC power supply; at this time, the negative pole of the first reverse diode is pointing to the live branch side of the AC power supply. When the power consumption circuit is added to the live branch, the second reverse diode in the power consumption circuit has the same direction as the light-emitting diode in the optocoupler, and the first reverse diode has the opposite direction to the light-emitting diode in the optocoupler, that is, the positive pole of the second reverse diode is connected to the negative pole of the light-emitting diode, and the negative poles of both are pointing to the live branch side of the AC power supply. At this time, the negative pole of the first reverse diode is pointing to the neutral branch side of the AC power supply.
[0041] The optical coupler 14 is connected in series with the power consumption circuit, and is used to compare the first current inputted into the input terminal of the optical coupler with the preset working current corresponding to the optical coupler, and output a level signal according to the comparison result;
[0042] The control circuit 16 is connected to the output end of the optocoupler and is used to detect whether the AC power supply is interrupted according to the level signal.
[0043] The low-power detection circuit includes a power consumption circuit, an optocoupler, and a control circuit; the power consumption circuit is configured to increase the impedance of the live branch or the neutral branch between the AC power supply and the optocoupler according to changes in the AC waveform; the optocoupler is connected in series with the power consumption circuit and is configured to compare a first current input at the input end of the optocoupler with a preset operating current corresponding to the optocoupler and output a level signal based on the comparison result; and the control circuit is connected to the output end of the optocoupler and is configured to detect whether the AC power supply has experienced a flash interruption based on the level signal. In other words, the low-power detection circuit detects flash interruptions in the AC power supply in real time. Furthermore, the low-power detection circuit has a simple circuit structure, low component cost, and high flash interruption detection accuracy. Furthermore, by incorporating the power consumption circuit, the low-power detection circuit operates normally when the AC waveform is in the negative half axis. When the AC waveform is in the negative half axis, the power consumption circuit is used to increase the impedance of the low-power detection circuit to control the power consumption of the negative half axis. The above technical solution solves the problems of high cost and low power consumption of the detection circuit in the related technology. Through the embodiment of the present invention, the accuracy of the flash detection of the circuit can be achieved, the occurrence of flash detection failure can be reduced, and the total power consumption of the overall detection can be reduced.
[0044] Optionally, the above-mentioned AC power supply is any power supply that can provide AC power to electrical appliances, including mains power, uninterruptible power supply, AC regulated power supply and its accessories, and the accessories are switches, sockets, etc., and this application does not impose too many restrictions on this.
[0045] For example, the working process of the above-mentioned optocoupler is as follows: when the forward second current passing through the light-emitting diode in the optocoupler is greater than the preset working current, the output photosensitive transistor in the optocoupler is saturated and turned on, and its collector outputs a fourth voltage close to zero potential. When the second current passes through the reverse diode, no current passes through the light-emitting diode in the optocoupler, the output photosensitive transistor in the optocoupler is cut off, and its collector output voltage is the third voltage. The collector voltage of the photosensitive transistor jumps between high and low levels with one cycle of the alternating current (i.e., the mains power), and this jump signal indicates that the AC power supply has flashed off.
[0046] Figure 2 This is a structural block diagram of another low-power detection circuit according to an embodiment of the present invention.
[0047] Optionally, the low power consumption detection circuit further includes: a first reverse diode 24; wherein the first reverse diode is used to determine whether to conduct based on a current AC power waveform corresponding to the AC power supply.
[0048] It should be noted that the direction of the above-mentioned first reverse diode is opposite to the direction of the light-emitting diode in the optocoupler in a parallel relationship, that is, in actual applications, it is necessary to satisfy that the second reverse diode is in the same direction as the light-emitting diode, and the first reverse diode is in the opposite direction to the light-emitting diode. When the power consumption circuit is added to the neutral branch of the AC power supply, and the first current limiting resistor is added to the live branch, and the second current limiting resistor is added to the neutral branch, the output end (i.e., the negative pole) of the first reverse diode is connected to the output end of the first current limiting resistor, and the input end of the first reverse diode is connected to the input end of the power consumption circuit.
[0049] Optionally, the power consumption circuit 12 includes: a second reverse diode 1202 and a target resistor 1204; the second reverse diode is connected in series with the optocoupler, and is used to control the conduction of the live branch or the neutral branch corresponding to the AC power supply according to the AC waveform; the target resistor is connected in parallel with the second reverse diode, and is used to increase the impedance of the live branch or the neutral branch when the second reverse diode is not conductive.
[0050] As an optional embodiment, when the power consumption circuit exists in the neutral line branch of the AC power supply, and the first current limiting resistor is added on the live line branch, and the second current limiting resistor is added on the neutral line branch, the second reverse diode is connected in series with the optocoupler to control the conduction of the neutral line branch corresponding to the AC power supply according to the AC waveform; the target resistor is connected in parallel with the second reverse diode to increase the impedance of the neutral line branch when the AC waveform is in the negative half axis.
[0051] Simply put, the isolation optocoupler is protected by the above-mentioned second reverse diode. When the voltage loaded on the input end of the optocoupler is greater than the conduction voltage corresponding to the reverse diode, the second reverse diode between the neutral branch and the live branch is turned on. At this time, the live branch and the neutral branch of the AC power supply are directly connected, so that the light-emitting diode is prevented from being subjected to excessive reverse voltage.
[0052] For example, when the AC power supply's AC current is in the negative half axis, the AC current flows through the reverse protection diode D1, and the voltage drop of the reverse protection diode D1 is less than the conduction voltage U0; while the maximum reverse voltage U2 that the light-emitting diode in the isolation optocoupler can withstand is much greater than U0, thus playing a protective role.
[0053] Optionally, the above-mentioned low power consumption detection circuit also includes: a current limiting resistor 26, wherein the current limiting resistor is respectively connected in series with the flash switch and the optocoupler, and is used to reduce the current of the AC power supply input to the low power consumption detection circuit, wherein the reduction is used to indicate that the first current of the AC power supply input is limited to the second current.
[0054] Optionally, the above-mentioned current limiting resistor includes: a first current limiting resistor 2602, and a second current limiting resistor 2604 having the same resistance value as the first current limiting resistor; wherein, the first current limiting resistor and the second current limiting resistor are respectively arranged on the live wire branch and the neutral wire branch corresponding to the AC power supply. Optionally, the first current limiting resistor can be arranged on the live wire branch corresponding to the AC power supply; the second current limiting resistor is arranged on the neutral wire branch corresponding to the AC power supply, or the second current limiting resistor can be arranged on the live wire branch corresponding to the AC power supply; the first current limiting resistor is arranged on the neutral wire branch corresponding to the AC power supply.
[0055] Optionally, the above-mentioned optocoupler includes: a light-emitting diode; wherein the light-emitting diode is used to emit light after the second current input into the input end of the optocoupler is greater than or equal to a preset operating current, and the preset operating current is the minimum current for the light-emitting diode to enter the light-emitting state.
[0056] It should be noted that the positive and negative directions of the light-emitting diode in the optocoupler determine the directions of the second reverse diode and the first reverse diode in the circuit. After determining the positive and negative directions of the light-emitting diode in the optocoupler, the positive and negative directions of the first reverse diode in parallel with the optocoupler are opposite to the positive and negative directions of the light-emitting diode; the positive and negative directions of the second reverse diode in series with the optocoupler are the same as the positive and negative directions of the light-emitting diode.
[0057] Optionally, the above-mentioned optocoupler also includes: a phototransistor; wherein the phototransistor is used to enter a conducting state and output a low level preset for the phototransistor in the conducting state when the base of the phototransistor receives light emitted by the light-emitting diode; or enter a cut-off state after determining that the light-emitting diode has not entered a light-emitting state, and output a high level preset for the phototransistor in the cut-off state.
[0058] Optionally, the above-mentioned optocoupler also includes: a peripheral circuit; wherein the peripheral circuit includes: a third resistor and a first capacitor; the third resistor is connected to the collector of the phototransistor, and is used to divide the preset voltage loaded on the collector to obtain a third voltage loaded on the collector of the phototransistor; the first capacitor is connected in parallel with the phototransistor, and is used to provide a fourth voltage for the phototransistor.
[0059] Optionally, the above-mentioned control circuit includes: a processor and a drive circuit; wherein the processor is used to receive the level signal output by the optocoupler and detect whether the AC power supply has a flash interruption based on the level signal; the drive circuit is connected to the processor and is used to generate a control signal for controlling the load when the processor determines that the AC power supply has a flash interruption.
[0060] For example, when the processor determines that the level signal output by the optocoupler is a high or low level with the same frequency as the AC power, it indicates that the power supply is normal; when the processor determines that the voltage signal is a continuous high level and the duration exceeds a preset time, it indicates that the power supply has flashed. That is, when the switch in the circuit is in a normally closed state, before the switch is actuated, since the circuit is connected to the commonly used AC power voltage, the frequency of the level signal output by the low-power detection circuit under normal circuit conditions is the same as the AC power frequency. Then, when the AC power supply is abnormally disconnected, the low-power detection circuit will detect that the AC power is disconnected and the output level signal will be a stable high level. When the processor finds that the high level carried in the level signal exceeds the preset time, it indicates that the AC power has flashed. Furthermore, the microcontroller unit in the processor generates a control signal according to the occurrence of the flash to control the state of the load.
[0061] The processor can optionally perform various processing methods; for example, the processor may output a drive signal and transmit it to the drive circuit via a wireless communication unit, causing the load state to reverse. When the high or low level interval is less than TO, it is assumed that there is no AC power interruption; when the high or low level interval is greater than or equal to TO, it is assumed that the AC power has intermittently interrupted. If the AC power has intermittently interrupted, the corresponding load state is reversed via a control signal.
[0062] Optionally, the control circuit further includes: a communication circuit, which is connected in series with the processor and is used to establish a communication channel between the drive circuit and the processor according to a preset communication method, so as to send the drive signal in the processor to the drive circuit through the communication channel.
[0063] As an optional embodiment, the present invention further provides an electronic device comprising the aforementioned low-power detection circuit, a load, and a flash switch. The low-power detection circuit and the flash switch can be used to control the operating state of the load. Optionally, the load in the present invention can be a lamp or other device that consumes power. The present invention does not impose any further limitations on this.
[0064] Optionally, the electronic device further includes a load unit and a load control unit, wherein the load control unit controls the load unit based on a signal corresponding to a detected flash state in the circuit. It should be noted that the load unit includes but is not limited to a motor and an LED, and the electronic device includes but is not limited to a lamp, a fan, a bathroom heater, etc.
[0065] As an optional embodiment, the present invention also provides a control system for an electronic device, which, in addition to the above-mentioned electronic device, also includes: a flash switch, wherein the input end of the flash switch is connected in series with an AC power supply, and the output end of the flash switch is connected in series with the electronic device, for controlling the on and off of the AC power supply and the electronic device according to the state change of the flash switch.
[0066] That is, the input end of the flash switch is connected in series with the AC power supply, and the output end of the flash switch is connected in series with the electronic device, and then the AC power supply and the electronic device can be controlled to be on and off according to the state change of the flash switch.
[0067] Optionally, the flash switch can be a self-rebound switch; the switch controls the connection of the AC power supply in the circuit. The flash switch is normally closed. When the AC power supply malfunctions or the switch is actuated by external force, the target power supply disconnects the input to the low-power detection circuit, thereby causing the AC power to be disconnected (i.e., a flash).
[0068] It should be noted that the above-mentioned flash switch, current limiting resistor, and reverse diode are similar components of any model that can be used to achieve the functional requirements of the present invention. The models of the above-mentioned flash switch, current limiting resistor, and reverse diode are selected according to actual production needs and can be flexibly adjusted according to the actual application of the low-power detection circuit. The present invention does not impose too many restrictions on this.
[0069] In order to better understand the principle of the above low power detection circuit, the implementation of the above low power detection circuit is described below in combination with optional embodiments, but it is not intended to limit the technical solution of the embodiment of the present invention.
[0070] It should be noted that Figure 3 This is a working diagram of a related art flash detection circuit. The power failure detection circuit detects the flash signal emitted by the flash switch to control the operating state of the electrical equipment. When the flash switch 1 is pressed by an external force and disconnects from the external power source 4, causing the external power source 4 to lose connection with the electrical load 5, the power failure detection circuit 2 performs a flash failure detection on the current circuit and synchronizes the detection results to the controller 3, which then controls the operating state of the electrical equipment (i.e., the electrical load 5).
[0071] Figure 4 The isolated flash detection circuit includes: a zero-crossing comparison module, an output resistor R0, a discharge capacitor C i , isolation optocoupler OC and switch detection module, the circuit structure is relatively complex, and the cost of components is high, so the application is cost-restricted and the application scope is limited;
[0072] In order to reduce component costs and power consumption, the present invention proposes a low-power flash state detection circuit. Figure 5 1 is a circuit diagram of a low-power flash state detection circuit according to an optional embodiment of the present invention;
[0073] Specifically, in actual application scenarios, the above-mentioned low-power flash state detection circuit may include: a flash switch S1, a first current limiting resistor R1, a second current limiting resistor R2, a reverse protection diode D1 and an optocoupler U1, a reverse protection diode D2, and a large resistance resistor R4; the above is only an example and does not limit the circuit of this application.
[0074] Optionally, a flash switch S1, a first current-limiting resistor R1, an optocoupler, and a second current-limiting resistor R2 are connected in series between the live line L and the neutral line N of the AC power supply, and a reverse protection diode D1 is connected in reverse parallel between the two input ports of the optocoupler U1. A reverse diode D2 and a large-resistance resistor R4 in parallel with it are added to the negative half axis of the AC power supply. When the AC power is in the negative half axis, the AC power passes through L, S1, R1, D1, R4 (with very high impedance), and R2 to the N line. Because R4 has a large impedance, the power consumption is very low when the AC power is in the negative half axis. This ensures the normal operation of the positive half axis and reduced power consumption of the negative half axis.
[0075] Optional, Figure 6 1 is a waveform diagram of a low-power flash state detection circuit in an optional embodiment of the present invention when no flash occurs; waveform I is the AC waveform corresponding to the input end of the low-power flash state detection circuit; waveform II is the waveform output by the low-power flash state detection circuit when no flash occurs; it should be noted that Figure 6 The normal state of the flash switch is closed, so the low-power flash state detection circuit (ie, low-power detection circuit) can detect a rectangular wave signal with the same frequency as the alternating current.
[0076] Optional, Figure 7 : This is a waveform diagram of a flash-off state detection circuit of a low-power flash-off state in an optional embodiment of the present invention; when the flash-off switch in the low-power flash-off state detection circuit is pressed, the detection circuit will detect that the AC power is disconnected, and the output waveform is as follows: Figure 7 , where waveform I is: when a flash occurs, the AC waveform at the input end of the low-power flash state detection circuit corresponds to the AC waveform, and the horizontal line portion is the period during which the flash occurs. During this period, the AC power supply is disconnected from the low-power flash state detection circuit, and there is no input voltage; waveform II is: the waveform output by the low-power flash state detection circuit when a flash occurs; further, the controller can determine that the circuit is abnormal based on the rectangular wave signal output by the isolated flash detection circuit, and therefore can determine that a flash switch action has occurred.
[0077] Optionally, when the controller determines that it is a flash switch action, it will output a drive signal to the electrical load to reverse the state of the electrical load; for example: when the electrical load in the circuit is a lamp, the lamp is on before the switch action in the AC power supply, and the flash operation after the switch action is determined by the flash detection circuit, and the corresponding waveform is output. Then the controller outputs a drive signal to control the electrical load according to the obtained waveform, and the drive circuit controls the display of the lamp according to the drive signal. When the lamp is on before the flash operation, the lamp will turn from on to off after the flash operation occurs; vice versa, when the lamp is off before the switch action, the lamp will turn from off to on when a flash operation occurs after the switch action.
[0078] As an optional embodiment, Figure 5 The corresponding working principle is explained in detail. During the positive half-axis period of the alternating current, after passing through R1, the light-emitting diode of the U1 optocoupler, R2 and D2 (without passing through R4), when the current exceeds the working current of U1, U1 works, the light-emitting diode in the optocoupler works, and the transistor in the optocoupler is in the on state. At this time, the "smart detection output is low level; when the current flowing through the light-emitting diode in the optocoupler is less than the working current, the optocoupler is in the off state (that is, the photosensitive transistor in the optocoupler is in the cut-off state). At this time, the transistor in the optocoupler is in the off state, and the "smart detection output is high level";
[0079] It should be noted that when the AC current is in the negative half axis, the AC current passes through L, S1, R1, D1, R4 (with large impedance), and R2 to the N line; because the impedance of R4 is large, when the AC current is in the negative half axis, the power consumption is very low (P = U2 / (R1 + RD1 + R4)); this ensures the normal operation of the positive half axis and the reduction of power consumption of the negative half axis;
[0080] Optionally, a low-power flash state detection circuit continuously outputs a level signal to control the state of the load, including: when the high or low level time interval in the level signal is less than TO, it is considered that there is no flash switch action; and when the high or low level time interval is greater than or equal to TO, it is considered that there is a flash switch action; when there is a flash switch action, the state of the corresponding light will be reversed;
[0081] Optional, Figure 5 D1 in the circuit plays the role of protecting the isolation optocoupler; that is, when the AC power is in the negative half axis, the AC current flows through D1, and the tube voltage drop of D1 is less than U0; and the maximum reverse voltage U2 that the light-emitting diode of the optocoupler can withstand is much greater than U0, so it plays a protective role.
[0082] Through the above embodiment, the flash interruption of the AC power supply is detected in real time by the low-power detection circuit. The circuit structure of the low-power detection circuit is simple, the component cost is low, and the flash interruption detection accuracy is high. In addition, by referring to the power consumption circuit, the low-power detection circuit works normally when the AC waveform is in the negative half axis. When the AC waveform is in the negative half axis, the power consumption circuit is used to expand the impedance in the low-power detection circuit to control the power consumption of the negative half axis. The above technical solution solves the problems of high cost and high power consumption of the detection circuit in the related art. The embodiment of the present invention can achieve the accuracy of the flash interruption detection of the circuit, reduce the occurrence of flash interruption detection failure, and reduce the total power consumption of the overall detection.
[0083] Figure 8 is a structural diagram of an electronic device according to an embodiment of the present invention; Figure 8 As shown, it includes: a low power consumption detection circuit 72; and also includes: a load unit 76 and a load control unit 74, wherein the load control unit controls the flash switch of the load unit according to a signal corresponding to the flash state in the detected circuit.
[0084] Optionally, the above-mentioned low-power detection circuit 72 includes: a power consumption circuit, an optocoupler, and a control circuit; the power consumption circuit is used to increase the impedance of the live branch or the neutral branch between the AC power supply and the optocoupler according to the change of the AC waveform; the optocoupler is connected in series with the power consumption circuit, and is used to compare the first current input at the input end of the optocoupler with the size of the preset working current corresponding to the optocoupler, and output a level signal according to the comparison result; the control circuit is connected to the output end of the optocoupler, and is used to detect whether the AC power supply is flashed according to the level signal.
[0085] Figure 9 FIG. 1 is a structural diagram of a control system of an electronic device according to an embodiment of the present invention; Figure 9 As shown, it not only includes the above-mentioned electronic device, but also includes: a flash switch 80, wherein the input end of the flash switch is connected in series with the AC power supply, and the output end of the flash switch is connected in series with the electronic device, which is used to control the on and off of the AC power supply and the electronic device according to the state change of the flash switch.
[0086] Optionally, the above-mentioned control system also includes: a display module, connected to the output end of the electronic device, for performing corresponding visual display of the level signal output by the low-power detection circuit; wherein the visual display is used to indicate the output detection result corresponding to the level signal, for example, when the phototransistor is in the on state, the corresponding detection output is displayed as a low level; when the phototransistor is in the off state, the corresponding detection output is displayed as a high level.
[0087] In an embodiment of the present invention, the control system performs real-time detection of flash interruptions in the AC power supply through a low-power detection circuit. The low-power detection circuit has a simple circuit structure, low component cost, and high flash interruption detection accuracy. In addition, by referencing the power consumption circuit, the low-power detection circuit operates normally when the AC waveform is in the negative half-axis. When the AC waveform is in the negative half-axis, the power consumption circuit is used to expand the impedance in the low-power detection circuit to control the power consumption of the negative half-axis. The above technical solution solves the problems of high cost and high power consumption of the detection circuit in the related art. The embodiment of the present invention can achieve high accuracy in the flash interruption detection of the circuit, reduce the occurrence of flash interruption detection failure, and reduce the total power consumption of the overall detection.
[0088] Figure 10 FIG. 1 is a flow chart of a method for detecting a flash state according to an embodiment of the present invention; FIG. Figure 10 Shown, including:
[0089] Step S902: determining a digital signal corresponding to the AC power output by the low power detection circuit, wherein the digital signal is a level signal output by an optocoupler in the low power detection circuit by comparing a first current input to an input terminal of the optocoupler with a preset operating current corresponding to the optocoupler;
[0090] Step S904: Determine whether the AC power supply has a flash interruption based on the digital signal.
[0091] Through the above steps, a digital signal corresponding to the AC power supply output by the low-power detection circuit is determined, wherein the digital signal is a level signal output by an optocoupler in the low-power detection circuit by comparing a first current input to the optocoupler's input terminal with a preset operating current corresponding to the optocoupler. The digital signal is then used to determine whether the AC power supply has experienced a flash. In other words, the low-power detection circuit detects flashes in the AC power supply in real time. The low-power detection circuit has a simple circuit structure, low component cost, and high flash detection accuracy. Furthermore, by incorporating a power consumption circuit, the low-power detection circuit operates normally when the AC power waveform is in the negative half-axis. When the AC power waveform is in the negative half-axis, the power consumption circuit is used to increase the impedance of the low-power detection circuit to control the power consumption in the negative half-axis. The above technical solution solves the problems of high cost and low power consumption of detection circuits in related technologies. The embodiments of the present invention can improve the accuracy of circuit flash detection, reduce the occurrence of flash detection failures, and reduce the total power consumption of the overall detection.
[0092] Figure 11 is a flash detection control device according to an embodiment of the present invention; Figure 11 Shown, including:
[0093] A detection module 1002 is configured to determine a digital signal corresponding to the AC power supply output by a low-power detection circuit, wherein the digital signal is a level signal output by an optocoupler in the low-power detection circuit by comparing a first current input to an input terminal of the optocoupler with a preset operating current corresponding to the optocoupler;
[0094] The control module 1004 is configured to determine whether the AC power supply has experienced a flash interruption based on the digital signal.
[0095] The above-mentioned device determines a digital signal corresponding to the AC power supply output by a low-power detection circuit. The digital signal is a level signal output by an optocoupler in the low-power detection circuit by comparing a first current input to the optocoupler's input terminal with a preset operating current corresponding to the optocoupler. The digital signal is then used to determine whether the AC power supply has experienced a flash. In other words, the low-power detection circuit detects flashes in the AC power supply in real time. The low-power detection circuit has a simple circuit structure, low component cost, and high flash detection accuracy. Furthermore, by incorporating a power consumption circuit, the low-power detection circuit operates normally when the AC waveform is in the negative half-axis. When the AC waveform is in the negative half-axis, the power consumption circuit is used to increase the impedance of the low-power detection circuit to control the power consumption in the negative half-axis. The above-mentioned technical solution solves the problems of high cost and low power consumption of detection circuits in related technologies. The embodiments of the present invention can improve the accuracy of circuit flash detection, reduce the occurrence of flash detection failures, and reduce the total power consumption of the overall detection.
[0096] Figure 12 is a flow chart of a control method of an electronic device according to an embodiment of the present invention; Figure 12 Shown, including:
[0097] Step S1102: supporting the electronic device to be in a continuous online state based on the flash state detection method, wherein the continuous online state is to ensure power supply to the control circuit of the electronic device in the event of a flash interruption of the AC power supply by the flash state detection circuit;
[0098] Step S1104: When it is determined that the electronic device is in the continuously online state, remotely control the electronic device through the control circuit.
[0099] It should be noted that, through the above method, even if a flash failure occurs in the electronic device, causing the load to stop being powered, the control circuit used for remote control in the electronic device can still maintain normal operation, so that the electronic device can effectively respond to the remote control sent by the control end, which solves the problems in the related technology that the flash failure detection method is prone to failure and low accuracy. Through the above embodiment, while achieving the accuracy of flash failure detection of circuits under different states, the occurrence of flash failure detection failure can be reduced through the participation of remote control, thereby ensuring the safe and effective operation of the electronic device.
[0100] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0101] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, centralized on a single computing device, or distributed across a network of multiple computing devices. Alternatively, they can be implemented using program code executable by a computing device, which can then be stored in a storage device and executed by the computing device. In some cases, the steps shown or described can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0102] The foregoing description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Those skilled in the art will readily appreciate that various modifications and variations of the present invention are possible. Any modifications, equivalent substitutions, or improvements made within the principles of the present invention are intended to be within the scope of protection of the present invention.
Claims
1. A low-power detection circuit, used for detecting the flash state in the circuit, characterized in that: include: Power consumption circuit, optocoupler, control circuit; The power consumption circuit is used to increase the impedance of the live branch or the neutral branch between the AC power supply and the optocoupler according to the change of the AC waveform; The optocoupler is connected in series with the power consumption circuit, and is used to compare the first current inputted into the input terminal of the optocoupler with the preset working current corresponding to the optocoupler, and output a level signal according to the comparison result; The control circuit is connected to the output end of the optocoupler and is used to detect whether the AC power supply has a flash interruption according to the level signal; Wherein, the power consumption circuit further includes: a second reverse diode and a target resistor; The second reverse diode is connected in series with the optocoupler and is used to control the conduction of the live branch or the neutral branch corresponding to the AC power supply according to the AC waveform; The target resistor is connected in parallel with the second reverse diode, and is used to increase the impedance of the live branch or the neutral branch when the second reverse diode is not conducting.
2. The low power consumption detection circuit according to claim 1, wherein: The low power consumption detection circuit further includes: a first reverse diode; The first reverse diode is used to determine whether to conduct based on a current AC waveform corresponding to the AC power supply.
3. The low power consumption detection circuit according to claim 1, wherein: The low power consumption detection circuit further includes: a current limiting resistor, The current limiting resistor is connected in series with the flash switch and the optocoupler respectively, and is used to reduce the current input from the AC power supply to the low-power detection circuit, wherein the reduction is used to indicate that the first current input from the AC power supply is limited to a second current.
4. The low power consumption detection circuit according to claim 3, characterized in that: The current limiting resistor includes: a first current limiting resistor and a second current limiting resistor having the same resistance value as the first current limiting resistor; wherein the first current limiting resistor and the second current limiting resistor are respectively arranged on the live wire branch and the neutral wire branch corresponding to the AC power supply.
5. The low power consumption detection circuit according to claim 1, characterized in that: The optical coupler includes: a light emitting diode; The light emitting diode is configured to emit light after the second current inputted into the input terminal of the optocoupler is greater than or equal to a preset operating current, and the preset operating current is the minimum current for the light emitting diode to enter a light emitting state.
6. The low power consumption detection circuit according to claim 5, characterized in that: The optical coupler further includes: a phototransistor; Among them, the phototransistor is used to enter the on state and output the low level preset in the on state of the phototransistor when the base of the phototransistor receives the light emitted by the light-emitting diode; or enter the off state after determining that the light-emitting diode has not entered the light-emitting state, and output the high level preset in the off state of the phototransistor.
7. The low power consumption detection circuit according to claim 6, characterized in that: The optical coupler further includes: a peripheral circuit; wherein the peripheral circuit includes: a third resistor and a first capacitor; The third resistor is connected to the collector of the phototransistor and is used to divide the preset voltage applied to the collector to obtain a third voltage applied to the collector of the phototransistor; The first capacitor is connected in parallel with the phototransistor and is used to provide a fourth voltage for the phototransistor.
8. The low power consumption detection circuit according to claim 1, characterized in that: The control circuit includes: a processor and a driving circuit; wherein, The processor is configured to receive a level signal output by the optocoupler and detect whether a flashover occurs in the AC power supply according to the level signal; The driving circuit is connected to the processor and is used to generate a control signal for controlling the load when the processor determines that the AC power supply is interrupted.
9. An electronic device, characterized in that: The low power consumption detection circuit comprises the low power consumption detection circuit according to any one of claims 1 to 8.
10. The electronic device according to claim 9, wherein: The electronic device further includes a load unit and a load control unit, wherein the load control unit controls the load unit according to a signal corresponding to a detected flash state in the circuit.
11. A control system for an electronic device, characterized in that: The electronic device comprises the electronic device according to any one of claims 9 to 10.
12. The control system of the electronic device according to claim 11, characterized in that: The control system further includes a flash switch, wherein the input end of the flash switch is connected in series with the AC power supply, and the output end of the flash switch is connected in series with the electronic device, for controlling the on / off of the AC power supply and the electronic device according to the state change of the flash switch.
13. A flash state detection method, characterized in that: include: Determine a digital signal corresponding to the AC power output by the low power detection circuit, wherein the digital signal is an output level signal of an optocoupler in the low power detection circuit by comparing a first current input at an input terminal of the optocoupler with a preset operating current corresponding to the optocoupler; Determine whether the AC power supply has a flash interruption by using the digital signal; The low-power detection circuit includes: a power consumption circuit for increasing the impedance of the live branch or the neutral branch between the AC power supply and the optocoupler according to changes in the AC waveform; an optocoupler connected in series with the power consumption circuit and for comparing a first current input at the input end of the optocoupler with a preset operating current corresponding to the optocoupler and outputting a level signal based on the comparison result; and a control circuit connected to the output end of the optocoupler and for detecting whether the AC power supply has flashed based on the level signal. In which, the power consumption circuit also includes: a second reverse diode connected in series with the optocoupler, used to control the conduction of the live branch or the neutral branch corresponding to the AC power supply according to the AC waveform; and a target resistance connected in parallel with the second reverse diode, used to increase the impedance of the live branch or the neutral branch when the second reverse diode is not conductive.
14. A flash detection control device, characterized in that: include: a detection module, configured to determine a digital signal corresponding to the AC power supply output by the low-power detection circuit, wherein the digital signal is an output level signal of an optocoupler in the low-power detection circuit by comparing a first current input at an input terminal of the optocoupler with a preset operating current corresponding to the optocoupler; A control module, configured to determine whether a flash interruption occurs in the AC power supply based on the digital signal; The low-power detection circuit includes: a power consumption circuit for increasing the impedance of the live branch or the neutral branch between the AC power supply and the optocoupler according to changes in the AC waveform; an optocoupler connected in series with the power consumption circuit and for comparing a first current input at the input end of the optocoupler with a preset operating current corresponding to the optocoupler and outputting a level signal based on the comparison result; and a control circuit connected to the output end of the optocoupler and for detecting whether the AC power supply has flashed based on the level signal. In which, the power consumption circuit also includes: a second reverse diode connected in series with the optocoupler, used to control the conduction of the live branch or the neutral branch corresponding to the AC power supply according to the AC waveform; and a target resistance connected in parallel with the second reverse diode, used to increase the impedance of the live branch or the neutral branch when the second reverse diode is not conductive.
15. A control method for an electronic device using the flash state detection method according to claim 13, characterized in that: include: Supporting an electronic device to be in a continuous online state based on the flash state detection method, wherein the continuous online state is to ensure power supply to a control circuit of the electronic device in the event of a flash interruption of the AC power supply through the flash state detection circuit; When it is determined that the electronic device is in the continuously online state, remote control of the electronic device is performed through the control circuit.
Citation Information
Patent Citations
Zero-crossing detection method and circuit
CN102662104A
AC detection circuit
CN105572523A
Flash state detection circuit and electronic device
CN218003674U