Grounding protection circuit, grounding detection method, controller and air conditioning unit
By designing a grounding protection circuit, using the rectifier module and current loop module to characterize the grounding condition of the controller case, and controlling the on and off of the power supply ground wire through the grounding protection module, the problem of the controller case becoming electrified due to poor contact is solved, and the problem is improved. safety and reliability.
Patent Information
- Application Number
- CN202410829176.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-10-08
AI Technical Summary
The casing of the controller is not reliably grounded due to poor contact, causing the casing to become electrified, causing a safety hazard. Existing technology cannot effectively solve this problem.
A grounding protection circuit is designed, including a rectifier module, a current loop module and a grounding protection module. By converting the alternating current between the power ground wire and the live wire into direct current, it characterizes the grounding condition of the controller's chassis and controls it based on the grounding condition. The power supply ground wire is connected and disconnected to ensure that the power supply is cut off when the chassis is not grounded.
It effectively prevents the case from being electrified, eliminates potential safety hazards, and improves the reliability of the controller.
Smart Images

Figure CN118748385A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic circuits, and in particular to a grounding protection circuit, a grounding detection method, a controller and an air conditioning unit. Background Art
[0002] The controller is an important control component in the air-conditioning unit. Due to electromagnetic interference, the controller ground wire must be connected to the casing, and the power cord must be connected to the controller casing. However, in actual use, if the controller casing is not reliably grounded due to poor contact, the casing will be electrified, causing a safety hazard.
[0003] With regard to the problem in the prior art that the casing of the controller is not reliably grounded due to poor contact, resulting in the casing being charged and causing safety hazards, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a grounding protection circuit, a grounding detection method, a controller and an air conditioning unit to solve the problem in the prior art that the casing of the controller is not reliably grounded due to poor contact, resulting in the casing being charged and causing safety hazards.
[0005] In order to solve the above technical problems, the present invention provides a ground protection circuit, which is applied to a controller. The ground protection circuit includes:
[0006] A rectifier module, connected to a power ground wire and a power live wire, and used to convert the alternating current between the power ground wire and the power live wire into direct current;
[0007] A current loop module, connected to the rectifier module, used to characterize the grounding condition of the housing of the controller;
[0008] A grounding protection module is connected to the current loop module and is used to control the on and off of the switch on the power grounding line according to the grounding condition of the controller.
[0009] Furthermore, the rectifier module has a first terminal on its input side connected to the live power line, and a second terminal on its input side connected to the ground power line, for converting the alternating current between the ground power line and the live power line into direct current;
[0010] The current loop module, a first terminal of which is connected to a first terminal of an output side of the rectifier module, a second terminal of which is connected to a second terminal of an output side of the rectifier module, a third terminal of which is connected to a first terminal of a ground protection module, a fourth terminal of which is connected to a second terminal of the ground protection module, a fifth terminal of which is connected to a first voltage source, and a sixth terminal of which is input with a control signal, wherein the control signal is used to control a conduction state of the current loop module;
[0011] The grounding protection module has a third terminal connected to the second voltage source and a fourth terminal connected to the switch, and is used to control the switch to be turned on when the housing of the controller is grounded, and to be turned off when the housing of the controller is not grounded.
[0012] Furthermore, the rectifier module comprises:
[0013] a diode, an anode of which is connected to the live wire of the power supply;
[0014] A first resistor, a first end of which is connected to the cathode of the diode, and a second end of which is connected to a power supply ground line;
[0015] a first capacitor, a first end of which is connected to the first end of the first resistor, and a second end of which is connected to the second end of the first resistor, the first end of the first capacitor serving as a first terminal on the output side of the rectifier module, and the second end of the first capacitor serving as a second terminal on the output side of the rectifier module;
[0016] A voltage stabilizing diode has a first end connected between the first end of the first resistor and the cathode of the diode, and a second end connected between the second end of the first resistor and the power ground line.
[0017] Furthermore, the current loop module includes:
[0018] A first optocoupler, wherein a first terminal on an output side thereof serves as a first terminal of the current loop module and is connected to a first terminal on an output side of the rectifier module, a second terminal on an output side of the first optocoupler is connected to a first terminal on an input side of a second optocoupler, a first terminal on an input side of the first optocoupler is connected to a collector of a first switch tube, and a second terminal on an input side of the first optocoupler is grounded;
[0019] The second terminal of the second optocoupler at the input side serves as the second terminal of the current loop module and is connected to the second terminal of the output side of the rectifier module; the first terminal of the output side of the second optocoupler serves as the third terminal of the current loop module, and the second terminal of the output side of the second optocoupler serves as the fourth terminal of the current loop module;
[0020] The emitter of the first switch tube serves as the fifth terminal of the current loop module and is connected to the first voltage source, and the base of the first switch tube serves as the sixth terminal of the current loop module and is input with the control signal.
[0021] Furthermore, the ground protection module includes:
[0022] a second switch tube, whose base serves as the first terminal of the ground protection module and is connected to the third terminal of the current loop module; an emitter of the second switch tube serves as the second terminal of the ground protection module and is connected to the fourth terminal of the current loop module; a connection point between the collector and the base of the second switch tube serves as the third terminal of the ground protection module and is connected to a second voltage source;
[0023] a second resistor, a first end of which is connected to the collector of the second switch tube, and a second end of which is connected to the base of the third switch tube;
[0024] A third resistor, a first end of which is connected to the base of the third switch tube, and a second end of which is grounded;
[0025] The collector of the third switch tube is connected to the control end of the switch, and the emitter is grounded.
[0026] Furthermore, the switch is a normally closed relay, a first end of a coil of the normally closed relay is connected to a third voltage source, and a second end is connected to a collector of the third switch tube.
[0027] Furthermore, the ground protection circuit further includes:
[0028] The current detection module is connected to the current loop module and is used to detect the current value at the output side of the second optical coupler in the current loop module.
[0029] Furthermore, the current detection module includes:
[0030] A signal amplifier, whose in-phase input terminal is respectively connected to the third terminal of the current loop module and the third terminal of the ground protection module, whose inverting input terminal is grounded, whose output terminal is connected to its own inverting input terminal, and whose output terminal is also used to output the current value detection signal of the current loop module.
[0031] The present invention also provides a controller, characterized in that it comprises the above-mentioned ground protection circuit.
[0032] The present invention also provides an air conditioning unit, comprising the above controller.
[0033] The present invention also provides a grounding detection method, which is applied to the above-mentioned grounding protection circuit. The grounding detection method comprises:
[0034] Detecting the current value at the output side of the second optocoupler in the current loop module;
[0035] The power supply input voltage value and the grounding state of the controller housing are determined according to the current value of the output side of the second optical coupler in the current loop module.
[0036] Further, judging the power supply input voltage value and the grounding state of the controller housing according to the current value of the output side of the second optical coupler in the current loop module includes:
[0037] Determine whether the current value at the output side of the second optocoupler in the current loop module is greater than a first threshold;
[0038] If yes, it is determined that the power input voltage value is greater than the rated input voltage, and the controller is controlled to be powered off;
[0039] If not, determining the interval of the current value at the output side of the second optocoupler in the current loop module;
[0040] If the current value at the output side of the second optical coupler in the current loop module is within the first preset interval, it is determined that the power input voltage value is equal to the rated input voltage and the housing of the controller is grounded;
[0041] If the current value of the output side of the second optical coupler in the current loop module is within the second preset interval, it is determined that the power input voltage value is less than the rated input voltage, and the housing of the controller is grounded;
[0042] If the current value at the output side of the second optical coupler in the current loop module is within a third preset interval, it is determined that the power input voltage value is greater than or equal to the rated input voltage, and the controller housing is not grounded;
[0043] If the current value at the output side of the second optical coupler in the current loop module is within a fourth preset interval, it is determined that the power input voltage value is less than the rated input voltage and the controller housing is not grounded.
[0044] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the ground detection method is implemented.
[0045] The present invention also provides an electronic device, comprising:
[0046] one or more processors;
[0047] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned ground detection method.
[0048] By applying the technical solution of the present invention, the alternating current between the power ground wire and the power live wire is converted into direct current through a rectifier module, the grounding condition of the controller casing is characterized by a current loop module, and finally the on and off of the power ground wire is controlled by a grounding protection module according to the grounding condition of the controller. This can achieve the situation where the controller casing is not grounded, cutting off the power ground wire to avoid the situation where the casing is energized, eliminating safety hazards, and improving the reliability of the controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 A schematic diagram of the connection relationship between a controller and a power supply in the prior art;
[0050] Figure 2 It is a structural diagram of a control power conversion circuit in the prior art;
[0051] Figure 3 is a structural block diagram of a ground protection circuit according to an embodiment of the present invention;
[0052] Figure 4 is a structural diagram of a ground protection circuit according to another embodiment of the present invention;
[0053] Figure 5 is a flow chart of a grounding detection method according to an embodiment of the present invention;
[0054] Figure 6 is a flow chart of a grounding detection method according to another embodiment of the present invention;
[0055] Figure 7 The figure is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0058] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0059] It should be understood that although the terms first, second, third, etc. may be used to describe resistors in embodiments of the present invention, these resistors should not be limited to these terms. These terms are only used to distinguish different resistors. For example, without departing from the scope of embodiments of the present invention, a first resistor may also be referred to as a second resistor, and similarly, a second resistor may also be referred to as a first resistor.
[0060] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0061] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.
[0062] The optional embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0063] Example 1
[0064] The controller is an important control component in the air conditioning unit. Figure 1 FIG. 1 is a schematic diagram of the connection relationship between the controller and the power supply in the prior art. Because of electromagnetic interference, such as Figure 1 As shown, the controller ground wire must be connected to the casing, and the power cord must be connected to the controller casing. However, in actual use, if the controller casing is not reliably grounded due to poor contact, the casing will be electrified, causing safety hazards.
[0065] In view of the above problems in the prior art, this embodiment provides a ground protection circuit, which is applied to a controller. Figure 2 is a structural diagram of a control power conversion circuit in the prior art, such as Figure 2As shown, the live line L is grounded through the second Y capacitor CY2, the neutral line N is grounded through the first Y capacitor CY1, X capacitors CX1, CX3, and CX3 are arranged between the neutral line N and the live line L, and the output terminals AC_L and AC_N are connected to the power conversion circuit to obtain direct current.
[0066] Figure 3 : is a structural block diagram of a ground protection circuit according to an embodiment of the present invention. Figure 3 As shown, the ground protection circuit includes:
[0067] The rectifier module 10 is connected to the power ground wire and the power live wire, and is used to convert the alternating current between the power ground wire and the power live wire into direct current.
[0068] The current loop module 20 is connected to the rectifier module 10 and is used to characterize the grounding condition of the controller casing.
[0069] The grounding protection module 30 is connected to the current loop module 20 and is used to control the on and off of the switch K1 on the power grounding line according to the grounding condition of the controller.
[0070] The grounding protection circuit of this embodiment converts the alternating current between the power ground wire and the power live wire into direct current through the rectifier module 10, characterizes the grounding condition of the controller casing through the current loop module 20, and finally controls the on and off of the power ground wire according to the grounding condition of the controller through the grounding protection module 30. It can cut off the power ground wire when the controller casing is not grounded, avoid the situation where the casing is energized, eliminate safety hazards, and improve the reliability of the controller.
[0071] Figure 4 FIG. 4 is a structural diagram of a ground protection circuit according to another embodiment of the present invention. Figure 4 As shown, in order to convert the alternating current between the power ground wire and the power live wire into direct current, as shown in FIG. Figure 4 As shown, the first terminal of the input side of the rectifier module 10 is connected to the live power line, and the second terminal of the input side is connected to the ground power line, for converting the alternating current between the ground power line and the live power line into direct current;
[0072] A current loop module 20, wherein the first terminal thereof is connected to the first terminal of the output side of the rectifier module, the second terminal thereof is connected to the second terminal of the output side of the rectifier module, the third terminal thereof is connected to the first terminal of the ground protection module, the fourth terminal thereof is connected to the second terminal of the ground protection module, the fifth terminal thereof is connected to the first voltage source, and the sixth terminal thereof is input with a control signal, wherein the control signal is used to control the conduction state of the current loop module;
[0073] The grounding protection module 30 has a third terminal connected to the second voltage source and a fourth terminal connected to the control terminal of the switch K1, and is used to control the switch K1 to be turned on when the housing of the controller is grounded, and to be turned off when the housing of the controller is not grounded.
[0074] In this embodiment, half-wave rectification is used to convert the AC power between the power ground wire and the power live wire into DC power. In order to realize the half-wave rectification function, Figure 4 As shown, the rectifier module 10 comprises: a diode D1, whose anode is connected to the power live wire L; a first resistor R1, whose first end is connected to the cathode of the diode D1, and whose second end is connected to the power ground wire N;
[0075] A first capacitor C1, whose first end is connected to the first end of the first resistor R1, and whose second end is connected to the second end of the first resistor R2. The first end of the first capacitor C1 serves as the first terminal on the output side of the rectifier module 10, and the second end of the first capacitor C1 serves as the second terminal on the output side of the rectifier module; a voltage-stabilizing diode D2, whose first end is connected between the first end of the first resistor R1 and the cathode of the diode D1, and whose second end is connected between the second end of the first resistor R1 and the power ground line. Through the voltage-dividing effect of the first resistor R1, the unidirectional conduction effect of the diode D1, the energy storage and filtering effect of the first capacitor C1, and the voltage-stabilizing effect of the voltage-stabilizing diode D2, the alternating current between the power ground line and the power live line is converted into stable direct current, which is output to the current loop module.
[0076] In order to output different current signals when the housing of the controller is grounded or not grounded to indicate the grounding condition of the housing of the controller, the current loop module 20 includes:
[0077] The first optocoupler PC1, the first terminal of the output side thereof serves as the first terminal of the current loop module 20, connected to the first terminal of the output side of the rectifier module 10, the second terminal of the output side of the first optocoupler PC1 is connected to the first terminal of the input side of the second optocoupler PC2, in order to limit the current of the current loop module 20, a fourth resistor R4 can also be connected between the second terminal of the output side of the first optocoupler PC1 and the first terminal of the input side of the second optocoupler PC2 for current limiting. The first terminal of the input side of the first optocoupler PC1 is connected to the collector of the first switch tube Q1, the second terminal of the input side of the first optocoupler PC1 is grounded, in order to achieve current limiting, the fifth resistor R5 is connected between the second terminal of the input side of the first optocoupler PC1 and the reference ground; in order to achieve voltage stabilization and filtering, the second capacitor C2 is connected between the first terminal and the second terminal of the input side of the first optocoupler PC1.
[0078] The second optical coupler PC2, the second terminal of the input side thereof serves as the second terminal of the current loop module 20, connected to the second terminal of the output side of the rectifier module 10; the first terminal of the output side of the second optical coupler PC2 serves as the third terminal of the current loop module 20, and the second terminal of the output side of the second optical coupler PC2 serves as the fourth terminal of the current loop module;
[0079] The first switch tube Q1, whose emitter serves as the fifth terminal of the current loop module 20, is connected to the first voltage source Vcc1 (which can provide 5V voltage), and whose base serves as the sixth terminal of the current loop module, and inputs the control signal IC_CONTROL. In order to achieve a voltage division effect and further limit the base voltage of the first switch tube Q1, a sixth resistor R6 is connected between the base of the first switch tube Q1 and the first voltage source Vcc1, and a seventh resistor R7 is connected between the base of the first switch tube Q1 and the input terminal of the control signal IC_CONTROL.
[0080] In this embodiment, the first switch tube Q1 is a P-type transistor, which is turned on when IC_CONTROL is at a low level, and is turned off when IC_CONTROL is at a high level.
[0081] In other embodiments of the present invention, the first switch tube Q1 is an N-type transistor, which is turned on when IC_CONTROL is at a high level and is turned off when IC_CONTROL is at a low level.
[0082] In order to realize that the control switch K1 is turned on when the housing of the controller is grounded, and is turned off when the housing of the controller is not grounded, thereby realizing grounding protection, the grounding protection module 30 includes:
[0083] The second switch tube Q2, its base serves as the first terminal of the ground protection module 30, connected to the third terminal of the current loop module 20, the emitter of the second switch tube Q2 serves as the second terminal of the ground protection module 30, connected to the fourth terminal of the current loop module 20, the connection point between the collector and the base of the second switch tube Q2 serves as the third terminal of the ground protection module 30, connected to the second voltage source Vcc2 (which can provide 5V voltage). In order to achieve voltage division and current limiting, an eighth resistor R8, a ninth resistor R9, and a tenth resistor R10 are set, the ninth resistor R9 is connected between the base of the second switch tube Q2 and the third terminal of the current loop module 20, the first end of the eighth resistor R8 is connected between the ninth resistor R9 and the third terminal of the current loop module 20, the second end is connected to the second voltage source Vcc2, and the tenth resistor R10 is connected between the collector of the second switch tube Q2 and the second voltage source Vcc2. In order to achieve voltage stabilization and filtering, and ensure the voltage between the base and the emitter of the second switch tube Q2 is stable, a third capacitor C3 is further provided, the first end of which is connected to the base of the second switch tube Q2, and the second end of which is connected to the emitter of the second switch tube Q2. Similarly, in order to ensure the voltage between the collector and the emitter of the second switch tube Q2 is stable, a fourth capacitor C4 is further provided, the first end of which is connected to the collector of the second switch tube Q2, and the second end of which is connected to the emitter of the second switch tube Q2.
[0084] The second resistor R2 has a first end connected to the collector of the second switch tube Q2 and a second end connected to the base of the third switch tube Q3.
[0085] The third resistor R3 has a first end connected to the base of the third switch tube Q3 and a second end grounded.
[0086] The third switch tube Q3 has a collector connected to the control end of the switch K1 and an emitter connected to the ground.
[0087] In one embodiment of the present invention, the switch K1 is a normally closed relay, a first end 1 of the coil of the normally closed relay is connected to a third voltage source Vcc3 (which can provide 12V voltage), and a second end is connected to the collector of the third switch tube Q3.
[0088] In this embodiment, the second switch tube Q2 is an N-type transistor, and the third switch tube is a P-type transistor. Of course, in other embodiments of the present invention, the second switch tube Q2 can also be set to be a P-type transistor and the third switch tube can be an N-type transistor.
[0089] In order to detect the current value on the output side of the second optocoupler in the current loop module, so as to judge the input voltage of the power supply and the grounding condition of the controller casing according to the current value output by the current loop module 20, the above-mentioned grounding protection circuit also includes: a current detection module 40, connected to the current loop module 20, for detecting the current value on the output side of the second optocoupler in the current loop module.
[0090] Since the detected current signal may be weak and cannot be identified, in order to improve the accuracy of subsequent judgment, the current signal needs to be amplified. In order to achieve the signal amplification effect, the current detection module 40 includes: a signal amplifier U1, whose in-phase input terminal is connected to the third terminal of the current loop module 20 through the eleventh resistor R11, and its in-phase input terminal is also connected to the third terminal of the grounding protection module through the twelfth resistor R12, and its inverting input terminal is grounded through the resistor R13, and its output terminal is connected to its own inverting input terminal through the fourteenth resistor R14, and its output terminal is also connected to the current value detection signal output terminal through the fifteenth resistor R15, which is used to output the current value detection signal CURRENT_CHECK of the current loop module. In order to achieve the filtering effect, a fifth capacitor C5 is also provided, and its first end is connected between the fifteenth resistor R15 and the current value detection signal output terminal, and its second end is grounded.
[0091] The control principle of this embodiment is as follows:
[0092] First, a low-level control signal is sent to the base of the first switch tube Q1 to turn it on, thereby controlling the input side of the first optical coupler PC1 to turn on, and then turning on the output side of the first optical coupler PC1. When the casing of the controller is grounded, the casing is not electrified, and its potential is low. The potential of the power grounding wire connected to the casing is also low. The voltage difference between the power live wire and the power grounding wire is large. After rectification, the voltage can control the input side of the second optical coupler PC2 to turn on, thereby turning on the output side of the second optical coupler PC2, and then pulling the base voltage of the second switch tube Q2 down to the reference ground, and the second switch tube Q2 is turned off. Since the second resistor R2 is in parallel with the second switch tube Q2, when the second switch tube Q2 is turned off, the second resistor R2 is turned on, and the base voltage of the third switch tube Q3 is pulled up by the second voltage source Vcc2. Since the third switch tube Q3 is a P-type triode, The third switch tube Q3 is turned off, the switch K1 is not powered, maintained in a closed state, and the power ground line is turned on; when the casing of the controller is not grounded, the casing is powered, and its potential is relatively high, and the potential of the power ground line connected to the casing is also relatively high, and the voltage difference between the power live wire and the power ground line is relatively small. After rectification, the voltage cannot control the input side of the second optical coupler PC2 to be turned on, and thus the output side of the second optical coupler PC2 is also not turned on, so that the base voltage of the second switch tube Q2 is pulled up by the second voltage source Vcc2, and the second switch tube Q2 is turned on. Since the second resistor R2 is in a parallel relationship with the second switch tube Q2, when the second switch tube Q2 is turned on, the second resistor R2 is short-circuited, and the base voltage of the third switch tube Q3 cannot be maintained. Since the third switch tube Q3 is a P-type triode, the third switch tube Q3 is turned on, the switch K1 is powered on, switched to an off state, and the power ground line is disconnected.
[0093] Example 2
[0094] This embodiment provides a controller, including the grounding protection circuit of the above embodiment, which is used to cut off the power grounding line when the casing of the controller is not grounded, avoid the situation where the casing is energized, eliminate safety hazards, and improve the reliability of the controller.
[0095] Example 3
[0096] This embodiment provides an air conditioning unit, including the controller of the above embodiment, which is used to cut off the power grounding line when the casing of the controller is not grounded, avoid the situation where the casing is energized, eliminate safety hazards, and improve the reliability of the controller.
[0097] Example 4
[0098] This embodiment provides a grounding detection method, which is applied to the above-mentioned grounding protection circuit. Figure 5 is a flow chart of a grounding detection method according to an embodiment of the present invention. Figure 5 As shown, the ground detection method includes:
[0099] S101, detecting a current value at an output side of a second optocoupler in a current loop module.
[0100] S102, judging the power supply input voltage value and the grounding state of the controller housing according to the current value of the output side of the second optical coupler in the current loop module.
[0101] According to the foregoing, when the casing of the controller is grounded, the casing is not charged, its potential is low, the potential of the power grounding wire connected to the casing is also low, and the voltage difference between the power live wire and the power grounding wire is large. After rectification, the voltage can control the input side of the second optocoupler PC2 to be turned on, thereby turning on the output side of the second optocoupler PC2; when the casing of the controller is not grounded, the casing is charged, its potential is high, the potential of the power grounding wire connected to the casing is also high, and the voltage difference between the power live wire and the power grounding wire is small. After rectification, the voltage cannot control the input side of the second optocoupler PC2 to be turned on, and then the output side of the second optocoupler PC2 is also not turned on. It can be seen that the current on the output side of the second optocoupler PC2 can reflect the grounding condition of the casing of the controller. In addition, if the power input voltage value is too high, the current on the output side of the second optocoupler PC2 will also increase accordingly. If the power input voltage value is too low, the current on the output side of the second optocoupler PC2 will also decrease accordingly. In other words, the current on the output side of the second optocoupler PC2 can also reflect the power input voltage value. Therefore, the power input voltage value and the grounding state of the controller housing can be determined according to the current value of the output side of the second optical coupler in the current loop module.
[0102] In order to accurately judge the power input voltage value and the grounding state of the controller housing, the current threshold value can be pre-set to divide the entire current into several intervals, each current interval corresponds to a different situation. Therefore, judging the power input voltage value and the grounding state of the controller housing according to the current value of the output side of the second optocoupler in the current loop module includes: judging whether the current value of the output side of the second optocoupler in the current loop module is greater than the first threshold; if so, determining that the power input voltage value is greater than the rated input voltage, and controlling the controller to power off; if not, determining the interval of the current value of the output side of the second optocoupler in the current loop module;
[0103] If the current value at the output side of the second optical coupler in the current loop module is within the first preset interval, it is determined that the power input voltage value is equal to the rated input voltage and the housing of the controller is grounded;
[0104] If the current value at the output side of the second optical coupler in the current loop module is within a second preset interval, it is determined that the power input voltage value is less than the rated input voltage, and the housing of the controller is grounded;
[0105] If the current value at the output side of the second optical coupler in the current loop module is within a third preset interval, it is determined that the power input voltage value is greater than or equal to the rated input voltage, and the controller housing is not grounded;
[0106] If the current value at the output side of the second optical coupler in the current loop module is within a fourth preset interval, it is determined that the power input voltage value is less than the rated input voltage and the controller housing is not grounded.
[0107] Among them, the first preset interval is (second threshold, first threshold], the second preset interval is (third threshold, second threshold], the third preset interval is (fourth threshold, third threshold], and the fourth preset interval is (-∞, fourth threshold].
[0108] After determining that the current value on the output side of the second optocoupler in the current loop module is not greater than the first threshold, determine whether the current value on the output side of the second optocoupler in the current loop module is greater than the second threshold; if it is greater than the second threshold, determine that the power supply input voltage value is equal to the rated input voltage, and the controller casing is grounded, that is, the power supply input voltage value and the grounding conditions of the controller casing are normal; if it is not greater than the second threshold, determine whether the current value on the output side of the second optocoupler in the current loop module is greater than the third threshold; if it is greater than the third threshold, determine that the power supply input voltage value is less than the rated input voltage, and the controller casing is grounded; if it is not greater than the third threshold, determine whether the current value on the output side of the second optocoupler in the current loop module is greater than the fourth threshold; if it is greater than the fourth threshold, determine that the power supply input voltage value is greater than or equal to the rated input voltage, and the controller casing is not grounded; if it is not greater than the fourth threshold, determine that the power supply input voltage value is less than the rated input voltage, and the controller casing is not grounded.
[0109] Example 5
[0110] This embodiment provides another ground detection method. Figure 6 is a flow chart of a ground detection method according to another embodiment of the present invention. Figure 6 As shown, the method includes:
[0111] S1, controls the air conditioning unit to connect to the power supply so that the controller is powered.
[0112] S2, sends a low level to the IC_CONTROL signal input terminal to enable the current loop module to work.
[0113] S3, detecting the current value at the output side of the second optical coupler PC2.
[0114] S4, determine whether the following conditions are met: second threshold value < current value at the output side of the second optical coupler PC2 ≤ first threshold value; if yes, execute step S5; if no, execute step S6.
[0115] S5, determine whether the power input voltage value and the grounding condition of the controller casing are normal.
[0116] S6, determining whether the following is satisfied: the current value at the output side of the second optical coupler PC2 > the first threshold; if yes, executing step S7; if no, executing step S8.
[0117] S7, determines that the power input voltage value is greater than the rated input voltage, and controls the controller to cut off power.
[0118] The power input voltage is greater than the rated input voltage and the chassis is not grounded. In this case, the connected power voltage is ≥ twice the rated power voltage, and the controller power conversion system has self-protected so that the entire controller is powered off and does not work. This situation cannot be analyzed and is meaningless.
[0119] S8, determining whether the following conditions are satisfied: the third threshold value < the current value at the output side of the second optical coupler PC2 ≤ the second threshold value; if yes, executing step S9; if no, executing step S10.
[0120] S9, determines that the power input voltage value is less than the rated input voltage and the controller casing is grounded.
[0121] S10, determining whether the following is satisfied: fourth threshold < current value at the output side of the second optical coupler PC2 ≤ third threshold; if yes, executing step S11; if no, executing step S12.
[0122] S11, determining that the power input voltage value is greater than or equal to the rated input voltage, and the controller housing is not grounded.
[0123] S12, determines that the power input voltage value is less than the rated input voltage and the controller housing is not grounded.
[0124] The grounding detection method of this embodiment can determine the power supply status according to the detected current value, respond to abnormal problems in a timely manner, and avoid safety hazards.
[0125] Example 6
[0126] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the ground detection method of the above embodiment is implemented.
[0127] Example 7
[0128] This embodiment provides an electronic device, including:
[0129] one or more processors;
[0130] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the ground detection method of the above embodiment.
[0131] Figure 7 FIG. 1 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Figure 7 As shown, the device includes:
[0132] One or more processors 710 and memory 720, Figure 7 A processor 710 is taken as an example.
[0133] The electronic device implementing the above ground detection method may further include: an input device 730 and an output device 740 .
[0134] The processor 710, the memory 720, the input device 730 and the output device 740 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0135] The memory 720 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the grounding detection method in the embodiment of the present invention. The processor 710 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 720, that is, implementing the above method embodiment.
[0136] The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store an application required for operating the device and at least one function; the data storage area may store data created according to the use of the ground detection method, etc. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0137] The input device 730 may receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 740 may include a display device such as a display screen.
[0138] The one or more modules are stored in the memory 720, and when executed by the one or more processors 710, the ground detection method in any of the above method embodiments is executed.
[0139] The above product can execute the method provided by the embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the method provided by the embodiment of the present invention.
[0140] The electronic devices of the embodiments of the present invention exist in various forms, including but not limited to:
[0141] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0142] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0143] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
[0144] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, device bus, etc. The server is similar to the general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, manageability, etc.
[0145] (5) Other electronic devices with data interaction functions, such as televisions, large-screen cars, etc.
[0146] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0148] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A ground protection circuit, applied to a controller, characterized in that: The circuit comprises: A rectifier module, connected to a power ground wire and a power live wire, and used to convert the alternating current between the power ground wire and the power live wire into direct current; A current loop module, connected to the rectifier module, used to characterize the grounding condition of the housing of the controller; A grounding protection module is connected to the current loop module and is used to control the on and off of the switch on the power grounding line according to the grounding condition of the controller.
2. The ground protection circuit according to claim 1, characterized in that: The rectifier module has a first terminal on the input side connected to the live power line, and a second terminal on the input side connected to the ground power line, for converting the alternating current between the ground power line and the live power line into direct current; The current loop module, a first terminal of which is connected to a first terminal of an output side of the rectifier module, a second terminal of which is connected to a second terminal of an output side of the rectifier module, a third terminal of which is connected to a first terminal of a ground protection module, a fourth terminal of which is connected to a second terminal of the ground protection module, a fifth terminal of which is connected to a first voltage source, and a sixth terminal of which is input with a control signal, wherein the control signal is used to control a conduction state of the current loop module; The grounding protection module has a third terminal connected to the second voltage source and a fourth terminal connected to the switch, and is used to control the switch to be turned on when the housing of the controller is grounded, and to be turned off when the housing of the controller is not grounded.
3. The ground protection circuit according to claim 2, characterized in that: The rectifier module comprises: a diode, an anode of which is connected to the live wire of the power supply; A first resistor, a first end of which is connected to the cathode of the diode, and a second end of which is connected to a power supply ground line; a first capacitor, a first end of which is connected to the first end of the first resistor, and a second end of which is connected to the second end of the first resistor, the first end of the first capacitor serving as a first terminal on the output side of the rectifier module, and the second end of the first capacitor serving as a second terminal on the output side of the rectifier module; A voltage stabilizing diode has a first end connected between the first end of the first resistor and the cathode of the diode, and a second end connected between the second end of the first resistor and the power ground line.
4. The ground protection circuit according to claim 2, characterized in that: The current loop module comprises: A first optocoupler, wherein a first terminal on an output side thereof serves as a first terminal of the current loop module and is connected to a first terminal on an output side of the rectifier module, a second terminal on an output side of the first optocoupler is connected to a first terminal on an input side of a second optocoupler, a first terminal on an input side of the first optocoupler is connected to a collector of a first switch tube, and a second terminal on an input side of the first optocoupler is grounded; The second terminal of the second optocoupler at the input side serves as the second terminal of the current loop module and is connected to the second terminal of the output side of the rectifier module; the first terminal of the output side of the second optocoupler serves as the third terminal of the current loop module, and the second terminal of the output side of the second optocoupler serves as the fourth terminal of the current loop module; The emitter of the first switch tube serves as the fifth terminal of the current loop module and is connected to the first voltage source, and the base of the first switch tube serves as the sixth terminal of the current loop module and is input with the control signal.
5. The ground protection circuit according to claim 2, characterized in that: The grounding protection module comprises: a second switch tube, whose base serves as the first terminal of the ground protection module and is connected to the third terminal of the current loop module; an emitter of the second switch tube serves as the second terminal of the ground protection module and is connected to the fourth terminal of the current loop module; a connection point between the collector and the base of the second switch tube serves as the third terminal of the ground protection module and is connected to a second voltage source; a second resistor, a first end of which is connected to the collector of the second switch tube, and a second end of which is connected to the base of the third switch tube; A third resistor, a first end of which is connected to the base of the third switch tube, and a second end of which is grounded; The collector of the third switch tube is connected to the control end of the switch, and the emitter is grounded.
6. The ground protection circuit according to claim 5, characterized in that: The switch is a normally closed relay, a first end of a coil of the normally closed relay is connected to a third voltage source, and a second end is connected to a collector of the third switch tube.
7. The ground protection circuit according to claim 2, characterized in that: The ground protection circuit also includes: The current detection module is connected to the current loop module and is used to detect the current value at the output side of the second optical coupler in the current loop module.
8. The ground protection circuit according to claim 7, characterized in that: The current detection module comprises: A signal amplifier, whose in-phase input terminal is respectively connected to the third terminal of the current loop module and the third terminal of the ground protection module, whose inverting input terminal is grounded, whose output terminal is connected to its own inverting input terminal, and whose output terminal is also used to output the current value detection signal of the current loop module.
9. A controller, characterized in that: The invention comprises the ground protection circuit according to any one of claims 1 to 8.
10. An air conditioning unit, characterized in that: Comprising the controller as claimed in claim 9.
11. A grounding detection method, applied to the grounding protection circuit according to any one of claims 1 to 8, characterized in that: The method comprises: Detecting the current value at the output side of the second optocoupler in the current loop module; The power supply input voltage value and the grounding state of the controller housing are determined according to the current value of the output side of the second optical coupler in the current loop module.
12. The method according to claim 11, characterized in that The method comprises: judging the power supply input voltage value and the grounding state of the controller housing according to the current value of the output side of the second optical coupler in the current loop module, comprising: Determine whether the current value at the output side of the second optocoupler in the current loop module is greater than a first threshold; If yes, it is determined that the power input voltage value is greater than the rated input voltage, and the controller is controlled to be powered off; If not, determining the interval of the current value at the output side of the second optocoupler in the current loop module; If the current value at the output side of the second optical coupler in the current loop module is within the first preset interval, it is determined that the power input voltage value is equal to the rated input voltage and the housing of the controller is grounded; If the current value at the output side of the second optical coupler in the current loop module is within a second preset interval, it is determined that the power input voltage value is less than the rated input voltage, and the housing of the controller is grounded; If the current value at the output side of the second optical coupler in the current loop module is within a third preset interval, it is determined that the power input voltage value is greater than or equal to the rated input voltage, and the controller housing is not grounded; If the current value at the output side of the second optical coupler in the current loop module is within a fourth preset interval, it is determined that the power input voltage value is less than the rated input voltage and the controller housing is not grounded.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to claim 11 or 12 is implemented.
14. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method according to claim 11 or 12.
