Protection circuit, electronic device and method based on high voltage detection

CN122968883APending Publication Date: 2026-10-23CHONGQING HAIER ROLLER WASHING MASCH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510514549.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-22
Publication Date
2026-10-23

AI Technical Summary

Technical Problem

[0004]然而,电网电压不稳定会直接影响负载,因此,亟需一种保护电路,以直接保护负载

Benefits of technology

[0033]本申请实施例提供的基于高压检测的保护电路、电子设备以及方法,该保护电路中的检测单元将交流电转换成检测电压,并发送到微处理单元,微处理单元基于该检测电压,生成对应的第一控制信号,并将该第一控制信号发送到保护电路中的执行单元,以控制设备中的至少一个负载通电/断电。避免了因电网电压不稳定导致电器中的负载故障、缩短负载的使用寿命甚至导致电器烧毁的问题,直接保护了设备的负载,延长了设备的使用寿命。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122968883A_ABST
    Figure CN122968883A_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a protection circuit based on high-voltage detection, an electronic device and a method. The protection circuit comprises a voltage conversion unit, a detection unit and an execution unit; the voltage conversion unit is connected with the detection unit and the execution unit, is used for converting alternating current into direct current, and is used for supplying power to the detection unit and the execution unit; the detection unit is used for being connected with a micro-processing unit, is simultaneously connected with the alternating current, is used for converting the alternating current into a detection voltage, and is used for sending the detection voltage to the micro-processing unit; the execution unit is used for being connected with the micro-processing unit and at least one load, and the execution unit is used for controlling the at least one load to be powered on or powered off based on a first control signal output by the micro-processing unit, and the first control signal is determined based on the detection voltage or a running state of the electronic device. The protection circuit directly protects the load of the device, so that the service life of the device is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of household appliances, and more particularly to a protection circuit, electronic device, and method based on high voltage detection. Background Technology

[0002] Home appliances have brought many conveniences to people's lives. For example, air conditioners can provide a comfortable room temperature; washing machines, dishwashers and other cleaning appliances reduce the burden of housework; televisions can provide entertainment; refrigerators can keep food fresh... With the acceleration of globalization, more and more home appliances are exported overseas.

[0003] Currently, some regions experience unstable power grid voltage, which can lead to load failures in electrical appliances, shorten their lifespan, or even cause them to burn out. Existing technology typically protects the load indirectly through a protection driver board.

[0004] However, unstable grid voltage can directly affect the load, so there is an urgent need for a protection circuit to directly protect the load. Summary of the Invention

[0005] This application provides a protection circuit, electronic device, and method based on high voltage detection to directly protect the load of the equipment and extend its service life.

[0006] In a first aspect, embodiments of this application provide a protection circuit based on high voltage detection, comprising: a voltage conversion unit, a detection unit, and an execution unit;

[0007] The voltage conversion unit is connected to both the detection unit and the execution unit, and is used to convert AC power into DC power and supply power to the detection unit and the execution unit;

[0008] The detection unit is used to connect to the microprocessor unit and simultaneously receive the AC power, and is used to convert the AC power into a detection voltage and send the detection voltage to the microprocessor unit;

[0009] The execution unit is configured to connect to the microprocessor unit and at least one load. The execution unit is configured to control the at least one load to be powered on / off based on a first control signal output by the microprocessor unit. The first control signal is determined based on the detected voltage or the operating state of the electronic device.

[0010] In one possible implementation, the detection unit includes a conversion module and a control module. One end of the conversion module is used to connect to the live wire, and the other end is used to connect to the microprocessor unit. The conversion module is used to convert the alternating current into a detection voltage and output the detection voltage to the microprocessor unit.

[0011] The control module has a first end connected to the neutral wire, a second end connected to the conversion module, and a third end connected to the microprocessor unit. It is used to control the conversion module to power on / off based on a second control signal sent by the microprocessor unit. The second control signal is determined by the microprocessor unit based on a power-on command / standby command.

[0012] In one possible implementation, the conversion module includes a first resistor, a voltage transformer, a second resistor, a capacitor, and a voltage divider circuit.

[0013] The first end of the primary winding of the voltage transformer is used to connect to the live wire through the first resistor to receive the alternating current.

[0014] The second end of the primary winding of the voltage transformer is used to connect to the neutral line through the control module;

[0015] The secondary winding of the voltage transformer is connected in parallel with the second resistor, and then connected in series with the capacitor and the voltage divider circuit. The intermediate node of the voltage divider circuit is used to connect to the microprocessor unit to output the detected voltage to the microprocessor unit.

[0016] In one possible implementation, the control module includes an optocoupler thyristor and a first switching transistor;

[0017] The first pin of the optocoupler thyristor is connected to the conversion module, and the second pin of the optocoupler thyristor is connected to the neutral line;

[0018] The third pin of the optocoupler thyristor is connected to the voltage conversion unit, and the fourth pin of the optocoupler thyristor is connected to the collector of the first switching transistor through a third resistor.

[0019] The base of the first switching transistor is connected to the microprocessor unit through a fourth resistor, and the emitter of the first switching transistor is grounded and connected to the base of the first switching transistor through a fifth resistor.

[0020] The first switching transistor is used to control the light-emitting state of the light-emitting diode in the optocoupler thyristor based on the second control signal sent by the microprocessor unit.

[0021] In one possible implementation, the execution unit includes a second switching transistor and a relay;

[0022] The base of the second switching transistor is connected to the microprocessor unit via a sixth resistor to receive the first control signal;

[0023] The emitter of the second switch is grounded and connected to the base of the second switch through a seventh resistor;

[0024] The collector of the second switching transistor is connected to the relay. The second switching transistor is used to drive the relay contacts to switch, thereby controlling the energization / de-energization of the at least one load.

[0025] In one possible implementation, the first pin of the relay is connected to the collector of the second switching transistor, and the second pin of the relay is connected to the voltage conversion unit to provide power to the relay coil; the first contact pin of the relay is connected to the neutral wire; and the second contact pin of the relay is used to connect to the at least one load.

[0026] In a second aspect, embodiments of this application provide an electronic device, including: a microprocessor unit, at least one load, and a protection circuit according to the first aspect and / or various possible implementations of the first aspect.

[0027] Thirdly, embodiments of this application provide a protection circuit method based on high voltage detection, applied to the electronic device described in the second aspect above, the method comprising:

[0028] When the electronic device is powered on, the microprocessor unit receives the detection voltage sent by the detection unit and determines whether the detection voltage meets a preset condition, the preset condition being used to indicate that the detection voltage is stable;

[0029] If so, the microprocessor unit sends the first control signal to the execution unit, so that the execution unit controls the at least one load to be turned on based on the first control signal;

[0030] If not, the microprocessor unit sends the first control signal to the execution unit, so that the execution unit controls the at least one load to power off based on the first control signal.

[0031] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the third aspect and / or various possible implementations of the third aspect.

[0032] Fifthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or various possible implementations of the first aspect.

[0033] The protection circuit, electronic device, and method based on high-voltage detection provided in this application embodiment convert AC power into a detection voltage and sends it to a microprocessor unit. The microprocessor unit generates a corresponding first control signal based on the detection voltage and sends the first control signal to an execution unit in the protection circuit to control the power supply / de-energization of at least one load in the device. This avoids problems such as load failure, shortened load lifespan, or even appliance burnout caused by unstable mains voltage, directly protecting the load of the device and extending its service life. Attached Figure Description

[0034] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0035] Figure 1 A schematic diagram of a protection circuit based on high voltage detection provided in this application embodiment. Figure 1 ;

[0036] Figure 2 A schematic diagram of a protection circuit based on high voltage detection provided in this application embodiment. Figure 2 ;

[0037] Figure 3 A schematic diagram of a protection circuit based on high voltage detection provided in this application embodiment. Figure 3 ;

[0038] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0039] Figure 5 This is a flowchart illustrating a protection circuit method based on high voltage detection, provided as an embodiment of this application.

[0040] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation

[0041] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0042] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, products, or apparatus.

[0043] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0044] Home appliances have brought many conveniences to people's lives. For example, air conditioners can provide a comfortable room temperature; washing machines, dishwashers and other cleaning appliances reduce the burden of housework; televisions can provide entertainment; refrigerators can keep food fresh... With the acceleration of globalization, more and more home appliances are exported overseas.

[0045] Currently, some regions experience unstable power grid voltage, which can lead to load failures in electrical appliances, shorten their lifespan, or even cause them to burn out. Existing technology typically protects the load indirectly through a protection driver board.

[0046] However, unstable grid voltage can directly affect the load, so there is an urgent need for a protection circuit to directly protect the load.

[0047] The protection circuit based on high-voltage detection provided in this application converts AC power into a detection voltage using a detection unit and sends it to a microprocessor unit. The microprocessor unit generates a corresponding first control signal based on this detection voltage and sends the first control signal to an execution unit in the protection circuit to control the power supply / de-energization of at least one load in the device. This solves the problem in the prior art where unstable mains voltage leads to load failure, shortened load lifespan, or even appliance burnout.

[0048] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.

[0049] Figure 1 A schematic diagram of a protection circuit based on high voltage detection provided in this application embodiment. Figure 1 ,like Figure 1 As shown, the protection circuit 10 includes: a voltage conversion unit 101, a detection unit 102, and an execution unit 103;

[0050] The voltage conversion unit 101 is connected to both the detection unit 102 and the execution unit 103, and is used to convert AC power into DC power and supply power to the detection unit 102 and the execution unit 103.

[0051] Alternating current (AC) is used to indicate the mains voltage; direct current (DC) is used to power the protection circuit.

[0052] The detection unit and the execution unit are respectively connected to the voltage conversion unit, which converts AC power into DC power and supplies power to the detection unit and the execution unit so that the detection unit and the execution unit can work.

[0053] The detection unit 102 is used to connect to the microprocessor unit 11 and is connected to AC power to convert the AC power into a detection voltage and send the detection voltage to the microprocessor unit 11.

[0054] The detected voltage is used to provide feedback on the real-time grid voltage.

[0055] Because the grid voltage is unstable in some areas, it is necessary to detect the real-time grid voltage before supplying power to the load to avoid damage to the load when the grid voltage is unstable.

[0056] The detection unit is used to connect to the microprocessor unit, and simultaneously connects to AC power. It converts the AC power into a detection voltage that provides feedback on the real-time grid voltage, and then sends the detection voltage to the microprocessor unit.

[0057] Figure 2 A schematic diagram of a protection circuit based on high voltage detection provided in this application embodiment. Figure 2 In one possible implementation, the detection unit is described in detail, such as... Figure 2 As shown, the detection unit 102 includes a conversion module 1021 and a control module 1022;

[0058] One end of the conversion module 1021 is used to connect to the live wire, and the other end is used to connect to the microprocessor unit. The conversion module 1021 is used to convert AC power into detection voltage and output the detection voltage to the microprocessor unit.

[0059] Alternating current enters the conversion module through the live wire. The conversion module converts the alternating current into a detection voltage and then outputs the detection voltage to the microprocessor unit.

[0060] The control module 1022 has a first end for connecting to the neutral wire, a second end for connecting to the conversion module 1021, and a third end for connecting to the microprocessor unit. It is used to control the conversion module 1021 to power on / off based on the second control signal sent by the microprocessor unit.

[0061] The second control signal is determined by the microprocessor unit based on the power-on command / standby command.

[0062] The microprocessor unit determines a second control signal based on a power-on command / standby command. This second control signal includes a power-on signal and a power-off signal. When the microprocessor unit receives a power-on command, the load in the device needs to operate based on the mains voltage; therefore, the mains voltage needs to be detected. Based on this power-on command, the microprocessor unit 11 outputs a power-on signal to the control module 1022. This power-on signal can be, for example, a high-level signal. The control module 1022 controls the conversion module 1021 to power on based on this power-on signal, so that the conversion module 1021 converts AC power into the detected voltage. When the microprocessor unit receives a standby command, the load is not operating; therefore, it controls the conversion module to power off to reduce the device's power consumption. Based on this standby command, the microprocessor unit 11 outputs a power-off signal to the control module 1022, and the control module 1022 controls the conversion module 1021 to power off based on this power-off signal.

[0063] In one possible implementation, the microprocessor unit may also stop outputting a power-on signal to the control module based on the standby instruction, thereby turning off the power to the conversion module and reducing the power consumption of the device.

[0064] Figure 3 A schematic diagram of a protection circuit based on high voltage detection provided in this application embodiment. Figure 3 In one possible implementation, the conversion module is described in detail, such as... Figure 3 As shown, the conversion module 1021 includes a first resistor R1, a voltage transformer L1, a second resistor R2, a capacitor C1, and a voltage divider circuit 31.

[0065] The first end of the primary winding of voltage transformer L1 is used to connect to the live wire through the first resistor R1 to receive AC power; the second end of the primary winding of voltage transformer is used to connect to the neutral wire through the control module.

[0066] Current flows out from the live wire, passes through the first resistor, enters the primary winding (P terminal) of the voltage transformer, and then flows out from the primary winding (P terminal) of the voltage transformer back to the neutral wire, forming a loop. The first resistor R1 acts as a current-limiting resistor to protect the circuit.

[0067] The secondary winding of voltage transformer L1 is connected in parallel with the second resistor R2, and then connected in series with capacitor C1 and voltage divider circuit 31. The intermediate node of voltage divider circuit 31 is used to connect to microprocessor unit 11 to output the detected voltage to microprocessor unit 11.

[0068] The voltage transformer proportionally converts high voltage to low voltage on the secondary winding. Current flows through the secondary winding (S terminal) of the voltage transformer, the second resistor R2, and into capacitor C1. Capacitor C1 allows alternating current to pass through while blocking direct current. The voltage divider circuit 31 includes an eighth resistor R8 and a ninth resistor R9, where the resistance values ​​of the eighth resistor R8 and the ninth resistor R9 are the same. The eighth resistor R8 and the ninth resistor R9 act as voltage divider resistors, dividing the voltage output from the secondary winding of the voltage transformer into a suitable range to obtain the detection voltage. The intermediate node of the voltage divider circuit 31 is used to connect to the microprocessor unit 11. The microprocessor unit 11 acquires the detection voltage at this intermediate node to protect the load based on this detection voltage.

[0069] Continue to refer to Figure 3 In one possible implementation, the control module is described in detail. The control module 1022 includes an optocoupler thyristor IC1 and a first switching transistor Q1.

[0070] The first pin of the optocoupler thyristor IC1 is connected to the conversion module 1021; the second pin of the optocoupler thyristor IC1 is connected to the neutral line; the third pin of the optocoupler thyristor IC1 is connected to the voltage conversion unit 101; and the fourth pin of the optocoupler thyristor IC1 is connected to the collector of the first switching transistor Q1 through the third resistor R3.

[0071] The first pin of the optocoupler-controlled thyristor IC1 is connected to the conversion module 1021, and the second pin of the optocoupler-controlled thyristor IC1 is connected to the neutral wire to control the power-on / power-off of the conversion module. When the optocoupler-controlled thyristor is turned on, the conversion module is powered on, converting AC power into a detection voltage; when the optocoupler-controlled thyristor is not turned on, the conversion module is powered off, reducing power consumption. The third pin of the optocoupler-controlled thyristor IC1 is connected to the voltage conversion unit 101 to supply power to the light-emitting diode through the third pin.

[0072] The base of the first switching transistor Q1 is connected to the microprocessor unit 11 through the fourth resistor R4. The emitter of the first switching transistor Q1 is grounded and connected to the base of the first switching transistor Q1 through the fifth resistor R5. The first switching transistor Q1 is used to control the light-emitting state of the light-emitting diode in the optocoupler thyristor IC1 based on the second control signal sent by the microprocessor unit 11.

[0073] The microprocessor unit 11 is connected to the base of the first switching transistor Q1 via a fourth resistor R4 to send a second control signal to the first switching transistor Q1. The fourth resistor R4 acts as a base current limiting resistor, protecting the first switching transistor and ensuring sufficient base current to turn on the first switching transistor Q1. The emitter of the first switching transistor Q1 is grounded and connected to its base via a fifth resistor R5, which stabilizes the quiescent operating point of the first switching transistor Q1.

[0074] When the microprocessor unit sends a second control signal to the first switching transistor Q1 based on a power-on command, such as a high-level signal, the first switching transistor Q1 is turned on. At this time, the current in the branch containing the light-emitting diode (LED) is turned on, the LED emits light, and the thyristor (SCR) is turned on, thus powering on the conversion module 1021. Conversely, when the microprocessor unit does not send a signal or sends a low-level signal, the first switching transistor Q1 is turned off, the LED does not emit light, and the branch containing the SCR is not turned on. Therefore, the conversion module 1021 is powered off to reduce the standby power consumption of the device.

[0075] An execution unit 103 is used to connect to a microprocessor unit 11 and at least one load. The execution unit 103 is used to control at least one load to be powered on / off based on a first control signal output by the microprocessor unit 11.

[0076] The first control signal is determined based on the detected voltage or the operating status of the electronic equipment. The load can be, for example, a motor, a valve, etc.

[0077] An execution unit 103 is connected to a microprocessor unit 11 and at least one load. Based on a first control signal output by the microprocessor unit 11, the execution unit 103 controls at least one load to be powered on when the detected voltage meets a preset condition, such as the detected voltage not exceeding a threshold voltage. Conversely, if the detected voltage does not meet the preset condition, the execution unit 103 controls at least one load to be powered off. When the detected voltage exceeds the threshold voltage, the load operates at the corresponding mains voltage, which may cause load failure or even equipment burnout. Therefore, to protect the load, it is necessary to control the load to be powered off. When the microprocessor unit 11 receives a standby command, it controls at least one load to be powered off via the first control signal. When the microprocessor unit 11 receives a power-on command and the current detected voltage meets the preset condition, it controls at least one load to be powered on.

[0078] Understandably, the microprocessor unit can filter multiple detected voltages within a preset time period to reduce errors and protect the load.

[0079] Continue to refer to Figure 3 In one possible implementation, the execution unit includes a second switch Q2 and a relay K1;

[0080] The base of the second switching transistor Q2 is connected to the microprocessor unit 11 through the sixth resistor R6 to receive the first control signal; the emitter of the second switching transistor Q2 is grounded and connected to the base of the second switching transistor Q2 through the seventh resistor R7; the collector of the second switching transistor Q2 is connected to the relay K1, and the second switching transistor Q2 is used to drive the contacts of the relay K1 to switch to control the power on / off of at least one load.

[0081] The microprocessor unit 11 is connected to the base of the second switching transistor Q2 via a sixth resistor R6 to send a first control signal to the first switching transistor Q1. The sixth resistor R6 acts as a base current limiting resistor, protecting the second switching transistor and ensuring sufficient base current to turn on Q2. The emitter of the second switching transistor Q2 is grounded and connected to its base via a seventh resistor R7, which stabilizes the quiescent operating point of the first switching transistor. The collector of the second switching transistor Q2 is connected to a relay K1, driving the contacts of relay K1 to switch, thereby controlling the energization / de-energization of at least one load.

[0082] Continue to refer to Figure 3 In one possible implementation, the first pin of relay K1 is connected to the collector of the second switching transistor Q2, and the second pin of relay K1 is connected to the voltage conversion unit 101 to provide power to the coil of relay K1; the first contact pin of relay K1 is connected to the neutral wire; and the second contact pin of relay K1 is used to connect to at least one load.

[0083] The collector of the second switching transistor Q2 is connected to the relay K1 to drive the relay K1 contacts to switch and control the power on / off of at least one load; the voltage conversion unit 101 is connected to the second pin of the relay K1 to provide power to the relay K1 coil; the first contact pin of the relay K1 is connected to the neutral wire; the second contact pin of the relay K1 is used to connect to at least one load.

[0084] When the detected voltage meets the preset conditions, the microprocessor unit outputs a first control signal, such as a high-level signal, to control the second switch Q2 to turn on, thereby driving the relay to select the second contact pin, so that the load is energized and can operate normally. When the detected voltage does not meet the preset conditions or when a standby command is received, the microprocessor unit outputs a first control signal, such as a low-level signal, to control the second switch Q2 to turn off, thereby driving the relay to select the first contact pin, so that at least one load is de-energized and the load is protected.

[0085] In one possible implementation, when the detected voltage does not meet the preset conditions, the drive relay selects the first contact pin, so that even after at least one load is de-energized, the microprocessor unit can continue to collect the detected voltage. If the detected voltage meets the preset conditions within a preset time period, it indicates that the grid voltage is in a stable state, and the microprocessor unit outputs a high-level signal to drive the relay to select the second contact pin, so that the load is re-energized.

[0086] In one possible implementation, the protection circuit also includes a communication module for connecting to the microprocessor unit 11 to transmit the detected voltage back to the data center for assessment of local voltage conditions.

[0087] The high-voltage detection-based protection circuit provided in this application embodiment converts AC power into a detection voltage and sends it to a microprocessor unit. The microprocessor unit generates a corresponding first control signal based on this detection voltage and sends it to the execution unit in the protection circuit to control the power supply / de-energization of at least one load in the device. This avoids problems such as load failure, shortened load lifespan, or even appliance burnout caused by unstable mains voltage, directly protecting the load of the device and extending its service life.

[0088] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 4 As shown, the electronic device provided in this embodiment includes a microprocessor unit 401, at least one load 402, and a protection circuit 403 as provided in the protection circuit embodiment described above.

[0089] Electronic devices can include, for example, washing machines and dryers.

[0090] The specific implementation process of the microprocessor unit 401 can be found in the above-described protection circuit embodiment, and its implementation principle and technical effect are similar. Therefore, it will not be described again in this embodiment.

[0091] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0092] Figure 5 A flowchart illustrating a protection circuit method based on high-voltage detection provided in this application embodiment is shown below. Figure 5 As shown, the method includes:

[0093] S501. When the electronic device is powered on, the microprocessor unit receives the detection voltage sent by the detection unit and determines whether the detection voltage meets the preset conditions; if yes, then step S502 is executed; if no, then step S503 is executed.

[0094] Among them, the preset conditions are used to indicate that the detection voltage is stable;

[0095] S502, the microprocessor unit sends a first control signal to the execution unit, so that the execution unit controls at least one load to be turned on based on the first control signal;

[0096] S503, the microprocessor unit sends a first control signal to the execution unit, so that the execution unit controls at least one load to be de-energized based on the first control signal.

[0097] In one possible implementation, before the microprocessor unit receives the detection voltage sent by the detection unit and determines whether the detection voltage meets the preset conditions, the method further includes: the detection unit converting AC power into a detection voltage and sending the detection voltage to the microprocessor unit.

[0098] The protection circuit method based on high voltage detection provided in this embodiment is applied to the electronic device provided in the above-mentioned electronic device embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.

[0099] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.

[0100] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.

[0101] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.

[0102] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.

[0103] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.

[0104] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0105] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0106] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention.

[0107] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.

[0108] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.

Claims

1. A protection circuit based on high voltage detection, characterized in that, include: Voltage conversion unit, detection unit, and execution unit; The voltage conversion unit is connected to both the detection unit and the execution unit, and is used to convert AC power into DC power and supply power to the detection unit and the execution unit; The detection unit is used to connect to the microprocessor unit and simultaneously receive the AC power, and is used to convert the AC power into a detection voltage and send the detection voltage to the microprocessor unit. The execution unit is configured to connect to the microprocessor unit and at least one load. The execution unit is configured to control the at least one load to be powered on / off based on a first control signal output by the microprocessor unit. The first control signal is determined based on the detected voltage or the operating state of the electronic device.

2. The protection circuit according to claim 1, characterized in that, The detection unit includes a conversion module and a control module; One end of the conversion module is used to connect to the live wire, and the other end is used to connect to the microprocessor unit. The conversion module is used to convert the AC power into a detection voltage and output the detection voltage to the microprocessor unit. The control module has a first end connected to the neutral wire, a second end connected to the conversion module, and a third end connected to the microprocessor unit. It is used to control the conversion module to power on / off based on a second control signal sent by the microprocessor unit. The second control signal is determined by the microprocessor unit based on a power-on command / standby command.

3. The protection circuit according to claim 2, characterized in that, The conversion module includes a first resistor, a voltage transformer, a second resistor, a capacitor, and a voltage divider circuit; The first end of the primary winding of the voltage transformer is used to connect to the live wire through the first resistor to receive the alternating current. The second end of the primary winding of the voltage transformer is used to connect to the neutral line through the control module; The secondary winding of the voltage transformer is connected in parallel with the second resistor, and then connected in series with the capacitor and the voltage divider circuit. The intermediate node of the voltage divider circuit is used to connect to the microprocessor unit to output the detected voltage to the microprocessor unit.

4. The protection circuit according to claim 2, characterized in that, The control module includes an optocoupler thyristor and a first switching transistor; The first pin of the optocoupler thyristor is connected to the conversion module, and the second pin of the optocoupler thyristor is connected to the neutral line; The third pin of the optocoupler thyristor is connected to the voltage conversion unit, and the fourth pin of the optocoupler thyristor is connected to the collector of the first switching transistor through a third resistor. The base of the first switching transistor is connected to the microprocessor unit through a fourth resistor, and the emitter of the first switching transistor is grounded and connected to the base of the first switching transistor through a fifth resistor. The first switching transistor is used to control the light-emitting state of the light-emitting diode in the optocoupler thyristor based on the second control signal sent by the microprocessor unit.

5. The protection circuit according to claim 1, characterized in that, The execution unit includes a second switching transistor and a relay; The base of the second switching transistor is connected to the microprocessor unit via a sixth resistor to receive the first control signal; The emitter of the second switch is grounded and connected to the base of the second switch through a seventh resistor; The collector of the second switching transistor is connected to the relay. The second switching transistor is used to drive the relay contacts to switch, thereby controlling the energization / de-energization of the at least one load.

6. The protection circuit according to claim 5, characterized in that, The first pin of the relay is connected to the collector of the second switching transistor, and the second pin of the relay is connected to the voltage conversion unit to provide power to the relay coil; the first contact pin of the relay is connected to the neutral wire; the second contact pin of the relay is used to connect to the at least one load.

7. An electronic device comprising a microprocessor unit, at least one load, and a protection circuit as described in any one of claims 1-6.

8. A protection circuit method based on high voltage detection, characterized in that, Applied to the electronic device of claim 7, the method includes: When the electronic device is powered on, the microprocessor unit receives the detection voltage sent by the detection unit and determines whether the detection voltage meets a preset condition, the preset condition being used to indicate that the detection voltage is stable; If so, the microprocessor unit sends the first control signal to the execution unit, so that the execution unit controls the at least one load to be turned on based on the first control signal; If not, the microprocessor unit sends the first control signal to the execution unit, so that the execution unit controls the at least one load to power off based on the first control signal.

9. The method according to claim 8, characterized in that, Before the microprocessor unit receives the detection voltage sent by the detection unit and determines whether the detection voltage meets the preset conditions, the method further includes: the detection unit converting the alternating current into a detection voltage and sending the detection voltage to the microprocessor unit.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 8-9.